Number Combination Checker

TorFey

New Member
Joined
Sep 30, 2022
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Good day all;

Is it possible to get all the combinations of a set of numbers, for example I have a group of numbers: 1,2,4,8,16,32, how would I go about finding all the possible combinations for this data set? I have made a best guess seen below (20 combinations), but this doesn't seem right to me now:

1 2 4
1 2 8
1 4 8
2 4 8
1 2 16
1 4 16
2 4 16
1 8 16
2 8 16
4 8 16
1 2 32
1 4 32
2 4 32
1 8 32
2 8 32
4 8 32
1 16 32
2 16 32
4 16 32
8 16 32

Thanks for your help in advance
Kind Regards
Tor Fey
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
This is a recent thread about combinations, where you would type in the numbers that you want combinations of in Cells A2 through H2, for example, and then run that VBA code to give you the full list of combinations in the sheet to the right. There is an even more recent thread where an actual Excel formula is used in the spreadsheet, but that requires newer versions of office. (2021 or 365). So as far as I know, that VBA code is your only option (should you want to do this from Excel).
 
Upvote 0
This is a recent thread about combinations, where you would type in the numbers that you want combinations of in Cells A2 through H2, for example, and then run that VBA code to give you the full list of combinations in the sheet to the right. There is an even more recent thread where an actual Excel formula is used in the spreadsheet, but that requires newer versions of office. (2021 or 365). So as far as I know, that VBA code is your only option.
Thank you very cmowla, i will look at this post now :)
 
Upvote 0
You can also use Wolfram|Alpha (an online free-version . . . with limited capability of Wolfram's desktop application, Mathematica) to find combinations of objects, should the VBA be too much trouble. (That's an excellent resource for "symbolic" computations . . . Microsoft Office is slowly starting to incorporate Mathematica support into Microsoft Office products.)
 
Upvote 0
You can also use Wolfram|Alpha (an online free-version . . . with limited capability of Wolfram's desktop application, Mathematica) to find combinations of objects, should the VBA be too much trouble. (That's an excellent resource for "symbolic" computations . . . Microsoft Office is slowly starting to incorporate Mathematica support into Microsoft Office products.)
Thanks so much cmowla, the VBA worked a treat :)
 
Upvote 0

Forum statistics

Threads
1,215,745
Messages
6,126,630
Members
449,323
Latest member
Smarti1

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