Hello,
I want to create all possible combinations of numbers (for example 45,90,50,30,..)from a define list with and without repetition whose sum is between a define criteria. (say 150 to 180) with criteria that use maximum five numbers with and without repetitive.
Like
90 + 90 = 180
90 + 45 + 45 = 180
45 + 45 + 45 + 45 = 180
....
I have an excel file. In which I am doing all things manually which is very time consuming and also error chances. Kindly help me for a excel vba code that can help. I am new to vba so don't know how to do.
In the current file following are the inputs.
Number to sum in column range A3:A200.
Cell D2 is the input of maximum sum value required.
Cell D3 is the input of minimum sum value required.
Cell D4 is the input of maximum number that can be used to find sum
Output
C8:L1000 or more than 1000 depending on the output.
I have attached the file.
Thanks
I want to create all possible combinations of numbers (for example 45,90,50,30,..)from a define list with and without repetition whose sum is between a define criteria. (say 150 to 180) with criteria that use maximum five numbers with and without repetitive.
Like
90 + 90 = 180
90 + 45 + 45 = 180
45 + 45 + 45 + 45 = 180
....
I have an excel file. In which I am doing all things manually which is very time consuming and also error chances. Kindly help me for a excel vba code that can help. I am new to vba so don't know how to do.
In the current file following are the inputs.
Number to sum in column range A3:A200.
Cell D2 is the input of maximum sum value required.
Cell D3 is the input of minimum sum value required.
Cell D4 is the input of maximum number that can be used to find sum
Output
C8:L1000 or more than 1000 depending on the output.
I have attached the file.
Thanks