Solved

MS Excel - Cells to Find Summary

Posted on 2014-09-16
4
102 Views
Last Modified: 2014-10-03
I am looking for an Excel function that identifies any combination of cells in a colum which when summarized will equate to a given number.  For example in the attached spreadsheet, the given is 177.41.  I need to find what combination of numbers equate to that.  The simple answer is 29.26 plus 148.15 (highlighted yellow in the attached).  But it could be a longer list and it could be a different combination of summarized numbers - not just two.

Is there such a function?
2014-300.216505-GL-SAMPLE.xlsx
0
Comment
Question by:CFMI
  • 2
  • 2
4 Comments
 
LVL 24

Assisted Solution

by:Phillip Burton
Phillip Burton earned 500 total points
ID: 40325871
No.

What you would have to do is a binary SUMIF - you would have an extra column which would show zero (don't include in the total) and one (include in the total). Then you would loop through all of the possibilities to see which of them would add up to the correct total.

However, as you have 141 different values, then the total number of possibilities would 2 to the power of 141 - that's a number with 42 digits. You can reduce that number by sorting them in order, and then pruning the tree when you get over the amount.
0
 
LVL 1

Author Comment

by:CFMI
ID: 40325891
"You can reduce that number by sorting them in order, and then pruning the tree when you get over the amount."  You're suggesting that the tree gets pruned by small to large.  Of course that's not always the case so besides the fact that your "2 to the power of 141" answer suggests we're looking for two numbers, I see how no combination that big is really possible.  I'll chew on this and either close if we're done looking or respond differently if we can tweak / simplify the question.  Thank you.
0
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40327460
No, 2 to the power of 141 does not suggest two numbers. That would be 141 * 140. 2^141 suggests every single permutation of numbers.

1st permutation - all no.
2nd permutation - all no, except the first one.
3rd permutation - all no, except the second one.
4th permutation - all no, except the first and second one.
5th permutation - all no, except the third one.
6th permutation - all no, except the third and first one.

etc.

If the tree is ordered by small to large, then once you are over the number, then you don't need to keep adding to the current list, and can stop there.
0
 
LVL 1

Author Closing Comment

by:CFMI
ID: 40359530
I apologize for the long delay.  It's agreed this is a hopeless concept.  Thanks for your thoughtful responses.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now