Solved

MS Excel - Cells to Find Summary

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

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 …
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

770 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