Hi
I need your big help here.
I have a set of data in a column which have vary numbers, both positive or negative values. What I want to do is to find the match combination of that data which sum to a target value.
For example in column A has value which range is from -3 to 500, and I want to find only one possible combination that will sum to 300.
I had find and use the code from below web:
http://www.tushar-mehta.com/excel/templates/match_values/index.html
but I find some problem when it has a negative value, because the code's creator said that negative value should be at the first line.
My data was sorted based on the date, so the negative value can be in the middle of the data.
When I ran the code, the excel will not responding for very long time and it ends with error.
How should I build the macro ?
Many thanks for your help.
I need your big help here.
I have a set of data in a column which have vary numbers, both positive or negative values. What I want to do is to find the match combination of that data which sum to a target value.
For example in column A has value which range is from -3 to 500, and I want to find only one possible combination that will sum to 300.
I had find and use the code from below web:
http://www.tushar-mehta.com/excel/templates/match_values/index.html
but I find some problem when it has a negative value, because the code's creator said that negative value should be at the first line.
My data was sorted based on the date, so the negative value can be in the middle of the data.
When I ran the code, the excel will not responding for very long time and it ends with error.
How should I build the macro ?
Many thanks for your help.