Strange sum question

empty2276

New Member
Joined
Oct 16, 2006
Messages
1
I have a total. And I have 85 data points. Some sum of the 85 points equals the total. I dont know how many of the points are used to make the sum...any ideas? I thought Solver might be able to do it, but I havent used it so long. an example is below.

7
5
9
6
24

sum=16

the only combination of numbers would be 9+7.
but the population is 85...and it involves more then 2 of the numbers, but not all.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,010
Office Version
  1. 365
Welcome to the board.

If column A is your values (7,5,9,6,24, etc.), set D1 = SUMPRODUCT(A1:A85,B1:B85)

Then, configure your solver model so you set D1 to a value of 16 by changing B1:B85 with the constraint that B1:B85 are binary.
 

Forum statistics

Threads
1,136,420
Messages
5,675,751
Members
419,585
Latest member
popsin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top