16 character permutation possible???

wacked

New Member
Joined
Jun 14, 2011
Messages
16
Im new to Excel and was wondering if it were possible to make or find a copy/paste code that would generate 16 different characters either permutation or combination with repitition. The 16 characters consist of 6 letters (A-F)and 10 numbers (0-9)
Ive found permutation calculators but 16 is to large and will only hold 10.:(
Please help even if its to learn the code. Thanks
 
Ive installed the analysis toolpak, and pasted the code. Wow it works! Thanks both for your help! Can all million hexadecimals generate themselves or do i have to expand them manuely and do i use one column or use both coumns and rows? Because i would like to add a name to each one.
Also can they be ranked though not a nessecity.
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Since you are running a version of Excel prior to XL2007, it will take 16 columns to list them all. If you want to do that, do you just want to list them all in order?
 
Upvote 0
In A1:
=DEC2HEX((ROW()-1)+((COLUMN(A1)-1)*65536),5)

Copy to A1:P65536

 
Upvote 0
Since you are running a version of Excel prior to XL2007, it will take 16 columns to list them all. If you want to do that, do you just want to list them all in order?


I am running Excel 2007 that came with Office Enterprise 2007 if that helps
 
Upvote 0
Then you don't need to load the Analysis Toolpak, the functions are built into XL2007 and later.

If you are not running in Compatibility Mode, then in A1:

=DEC2HEX(ROW()-1,5)

Copy down.

Otherwise, use the previous solution.
 
Upvote 0
I dont know how you figured this out or even how Excel reads that code but it works! Its exactly what i was looking for. Thank you
 
Upvote 0
Would anyone happen to know how to spread those numbers onto different worksheets as copy and pasting doesnt work. Id like to be able to spread these out to where work sheet number1 is just all 1's another work sheet is for the 2's etc etc or however i want to spread them being that its a lot of permutations for one page.
 
Upvote 0
As to how it works:

ROW() with no arguments returns the row number.

So in cell A1, it would return 1, we are going to subtract 1 from this because we want to start from 0.

DEC2HEX converts a decimal number into a hexadecimal number

The 5 at the end of this indicates that we want 5 hexadecimal places in the number.

When the formula is copied down, it increases the row number and therefore the result.
 
Upvote 0
As to how it works:

ROW() with no arguments returns the row number.

So in cell A1, it would return 1, we are going to subtract 1 from this because we want to start from 0.

DEC2HEX converts a decimal number into a hexadecimal number

The 5 at the end of this indicates that we want 5 hexadecimal places in the number.

When the formula is copied down, it increases the row number and therefore the result.

Very informative, thanks!
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,749
Members
452,940
Latest member
rootytrip

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