Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
mrharlow
 
Posts: n/a
Default Please Help with Summing


I have a large list of data, and certain subtotals.

Is there any way to have excel calculate which combination(s) of the
data sum to form a subtotal? This is really important, and if anyone
could help I would appreciate it!


--
mrharlow
------------------------------------------------------------------------
mrharlow's Profile: http://www.excelforum.com/member.php...o&userid=31423
View this thread: http://www.excelforum.com/showthread...hreadid=511256

  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default Please Help with Summing

Use walking ones to generate the combinations:

For example, you have five items: 1,3,5,7,11 and you want to know which
sub-set will add up to 24.

In A1 put:
=ROW()
in B1 put:
=DEC2BIN(A1,5)

and copy down thru row 31. In C1 thru G1 put:
=(LEFT(B1,1))*1
=(MID(B1,2,1))*1
=(MID(B1,3,1))*1
=(MID(B1,4,1))*1
=(RIGHT(B1))*1 and also copy down thru row 31

In H1 thru L1 put your data:
1, 3, 5, 7, 11 and copy down

In K1 put:
=SUMPRODUCT(C1:G1,H1:L1) and copy down

Look for the 24 and get your sub-set.



--
Gary''s Student


"mrharlow" wrote:


I have a large list of data, and certain subtotals.

Is there any way to have excel calculate which combination(s) of the
data sum to form a subtotal? This is really important, and if anyone
could help I would appreciate it!


--
mrharlow
------------------------------------------------------------------------
mrharlow's Profile: http://www.excelforum.com/member.php...o&userid=31423
View this thread: http://www.excelforum.com/showthread...hreadid=511256


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
SUMMING COLUMNS IN DIFFERENT WORKSHEETS Peggy Excel Discussion (Misc queries) 3 June 22nd 05 06:29 AM
Not summing a columns? Nicole Excel Worksheet Functions 2 April 23rd 05 03:30 PM
Cumulative Summing Carpie Excel Discussion (Misc queries) 3 February 11th 05 04:35 PM
Summing Sheets - SUMIF ? Steve W Excel Worksheet Functions 8 December 20th 04 06:49 AM
Summing Formula Steve W Excel Worksheet Functions 4 November 4th 04 12:06 PM


All times are GMT +1. The time now is 09:32 AM.

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"