I have a list of numbers as such:
5
1
3
6
100
I need to add up rows in order to reach a target figure. At the moment I'm manually going through the list and adding the numbers. Great fun.
So say I want 101, I want the system to return row no.2 and row no.5.
I'm pretty sure this can be done via VBA but I'm no code jocky. On the code front, the solution needs to be decently scalable as the list can be up to 20 variables long.
Many thanks
Bookmarks