[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Find numbers in a list that equal a specified number

Posted on 2016-10-11
9
Medium Priority
?
71 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
[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
  • 5
  • 3
9 Comments
 
LVL 49

Expert Comment

by:Martin Liss
ID: 41839314
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
ID: 41839329
I've seen a few solutions (including this one on EE). But none seem to work.
0
 
LVL 49

Expert Comment

by:Martin Liss
ID: 41839367
How many numbers are we talking about?
Will the total always be the sum of the same number of numbers?
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

Author Comment

by:baadayakazi
ID: 41839377
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
 
LVL 49

Expert Comment

by:Martin Liss
ID: 41839391
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
ID: 41839393
I couldn't get the solver to work either for some reason.
0
 
LVL 49

Accepted Solution

by:
Martin Liss earned 2000 total points (awarded by participants)
ID: 41839403
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 49

Expert Comment

by:Martin Liss
ID: 41839470
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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
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.

650 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