Raise how many source numbers there are to the power of 2.
(i) Make a sheet with a list of numbers up to this value in the left hand column starting at row 2.
(ii) Convert to binary text in column B2 downwards with something like "=text(dec2bin(A2),"00000000"). Only use as many zero's as you need for each source number.
(iii) Place the source numbers across row 1 starting at column B1.
(iv) Put the formula "=mid(B$2,1,1)*A$2" in C2.
(v) Copy this formula across to the right hand extent of your list.
(vi) Edit each C3,C4 etc. so that the ,1, in the mid function brackets becomes ,2, etc.
(vii) At the right hand column of this row enter a formula like "=sum(C2:Cn) where n is the last column of the formula in (vi). You might find it helpful to put a copy of the A2 value in the next column of this row.
(vii) Select all your formula cells and copy them down to the last row of your list.
(viii) Save this file
(ix) Now select all the list and copy then paste special values in place.
(x) Use data sort for the list and use the sum column as your index.
(xi) Look down this column for values and combinations which make them up.
(xii) Save this file as a different name.
Good Luck