ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   howto_find _values_in_sum? (https://www.excelbanter.com/excel-programming/279974-howto_find-_values_in_sum.html)

M Randall

howto_find _values_in_sum?
 
if you have a array of numbers and want to identify
which of those numbers add up to a specified value, is there a function
in excel (or has anyone written one) that can help find the correct
combination of numbers.

eg in a simple example; if the array of values was 2,3,5,6 and the
specified value was 9, we know the only combination of numbers from this
array that would sum to give the value 9 are 6 & 3, however
with larger arrays of numbers (30) or more, it would be more difficult
solve the problem manually.



Tom Ogilvy

howto_find _values_in_sum?
 
To find a single solution
See a previous posting by me:

http://groups.google.com/groups?thre...2msftngp13.phx.
gbl

Note the cautions by Harlan Grove at the bottom of the thread - so it
doesn't scale to any problem, but would be workable for 30.

See Dana DeLouis' post as well.

--
Regards,
Tom Ogilvy


M Randall wrote in message
...
if you have a array of numbers and want to identify
which of those numbers add up to a specified value, is there a function
in excel (or has anyone written one) that can help find the correct
combination of numbers.

eg in a simple example; if the array of values was 2,3,5,6 and the
specified value was 9, we know the only combination of numbers from this
array that would sum to give the value 9 are 6 & 3, however
with larger arrays of numbers (30) or more, it would be more difficult
solve the problem manually.






All times are GMT +1. The time now is 08:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com