formula for finding the right combination

neveu

Board Regular
Joined
Jan 27, 2009
Messages
225
hello to all mr/mrs excel,

I have the following excel problem for you all:

i have a list with several numbers:

x1,
x2,
x3,
...
x30 lets say

and a number Y which is a sum of one of the numbers above but don't know which.

is there a formula or a macro to find out which sum combination between x1,...x30 represents the Y?


any ideeas your be appreciated.

thanks in advance
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
This works great, but does anyone know how I would expand it? I have more than 30 items. I tried changing stat, statb, and elems to 90 from 30, but it still doesn't work for more than 30.

Thanks!
 
Upvote 0
Hi, that one only gets the first combination, to find all combinations try this one:
<TABLE style="WIDTH: 485pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=646 border=0 x:str><COLGROUP><COL style="WIDTH: 485pt; mso-width-source: userset; mso-width-alt: 23625" width=646><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD class=xl23 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 485pt; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" width=646 height=17>http://www.mediafire.com/file/a4lnmuzomtz/Sum_Combins.xlsm</TD></TR></TBODY></TABLE>
 
Upvote 0

Forum statistics

Threads
1,215,220
Messages
6,123,697
Members
449,117
Latest member
Aaagu

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
Back
Top