Solved

MS Excel - Cells to Find Summary

Posted on 2014-09-16
4
110 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
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.

730 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