Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jack Sheet
 
Posts: n/a
Default Finding combinations to match a total

A range contains a list of numbers (one number per cell), in no particular
order (although if important it could be sorted). There are no blank cells
nor text cells within the range.

It is desired to identify those items in the list which add up to a
specified total.
There could be more than one solution, ie several combinations that add up
to that total, or there might be no solution. Where there is more than one
solution I would ideally like to have a report that lists all of the
solutions. Failing that, the next best option would be one that lists the
first found solution with a prompt to search for the next (if any). Failing
that it might be acceptable to have a report that just produces the first
identified solution.

I suppose that ideally I should be permitted to round the sum to a specified
precision prior to comparison with the target total, if only to avoid those
common rounding errors at the 15th significant figure. Alternatively I
might like to specify a range of values within which the sum should fall
(rather than a single target sum).

Somehow I suspect that something along these lines is a wheel that has
already been invented, if only because it would be a very useful utility in
practice. Anyone out there know of anything like this?

--
Return email address is not as DEEP as it appears


  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave O
 
Posts: n/a
Default Finding combinations to match a total

Hey... *I* know Jack Sheet!

Here's a recent discussion- it includes code and some other solutions.
http://groups.google.com/group/micro...ac95c8f74b5f06

  #3   Report Post  
Posted to microsoft.public.excel.misc
Jack Sheet
 
Posts: n/a
Default Finding combinations to match a total

Many thanks Dave O

"Dave O" wrote in message
oups.com...
Hey... *I* know Jack Sheet!

Here's a recent discussion- it includes code and some other solutions.
http://groups.google.com/group/micro...ac95c8f74b5f06



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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subtotals in a Pivot Table MarkM Excel Discussion (Misc queries) 0 December 20th 05 04:01 PM
Copying a total from another Sheet bcemail Excel Worksheet Functions 4 November 22nd 05 07:00 PM
Percent of total in Pivot tables Pallet1210A Excel Worksheet Functions 1 September 8th 05 07:12 PM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM
Finding a match Ken Excel Discussion (Misc queries) 4 March 18th 05 04:42 PM


All times are GMT +1. The time now is 05:22 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"