Solved

Find numbers in a list that equal a specified number

Posted on 2016-10-11
9
25 Views
Last Modified: 2016-10-31
I have a list of numbers in Excel (for Mac) that add up to a specific number, but I'm not sure which numbers equal that number. How do I isolate the numbers in the list that add up to the specific number?
0
Comment
Question by:baadayakazi
  • 5
  • 3
9 Comments
 
LVL 45

Expert Comment

by:Martin Liss
Comment Utility
Depending on the list length you might have more than one combination. Also with anything but a very short list it would probably take some time to check all the combinations, which if I remember my math, if the were 15 numbers there would be 15 x 14 x 13 x 12 x etc numbers to check. My calculator tells me that that's 1.3 trillion combinations!
0
 

Author Comment

by:baadayakazi
Comment Utility
I've seen a few solutions (including this one on EE). But none seem to work.
0
 
LVL 45

Expert Comment

by:Martin Liss
Comment Utility
How many numbers are we talking about?
Will the total always be the sum of the same number of numbers?
0
 

Author Comment

by:baadayakazi
Comment Utility
Approx 100 numbers. Its for a list of transactions that ended up on a report with a total - the total came from some subset of those 100 numbers. I need to run this a few different times.
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 45

Expert Comment

by:Martin Liss
Comment Utility
I haven't gotten it to work yet but from what I read, you can use the Solver add-in to do what you want.
0
 

Author Comment

by:baadayakazi
Comment Utility
I couldn't get the solver to work either for some reason.
0
 
LVL 45

Accepted Solution

by:
Martin Liss earned 500 total points (awarded by participants)
Comment Utility
I found an example on the web that works it's in the attached workbook where I wanted to find the numbers that added to 24. Solver changed column B to 1 for the numbers that added to 24 (there's at least one other solution). I'm going to try to post a picture of the web page because EE doesn't like me posting "blind links".
28975810.xlsx
0
 
LVL 45

Expert Comment

by:Martin Liss
Comment Utility
BTW the site says
Using more than 20 values (Column A) is not recommended unless you have a lot of spare time.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

772 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

12 Experts available now in Live!

Get 1:1 Help Now