Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"