Solved

MS Excel - Cells to Find Summary

Posted on 2014-09-16
4
109 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

809 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