help with array formula

pluribus

New Member
Joined
Mar 17, 2010
Messages
4
Hi

I have a formula which generates every combination of letters between a and zzz. This is below:

Code:
=IF(ROW(A1)<=(26^3),CHAR(65+INT((ROW(A1)-1)/26^2))&CHAR(65+MOD(INT((ROW(A1)-1)/26),26))&CHAR(65+MOD(ROW(A1)-1,26)),"")

What I now need to do is adjust the formula so that it includes the numbers 1 to 999.

I want to end up with a list of alphanumerics from a to zzz999.

I know this will take ages to do and its simply to generate a brute force list to test my home server security. I just dont want to type it all out as I dont have a spare couple of months...

If anyone can help I would really appreciate it.

Cheers

Ian
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Does this do what you want? :
Code:
=IF(ROW(A1)<=((26^3)*999),CHAR(65+INT((MOD(ROW(A1),26^3))/26^2))&CHAR(65+MOD(INT((ROW(A1)-1)/26),26))&CHAR(65+MOD(ROW(A1)-1,26))&ROUNDUP(ROW(A1)/26^3,0),"")
 
Upvote 0
Does this do what you want? :
Code:
=IF(ROW(A1)<=((26^3)*999),CHAR(65+INT((MOD(ROW(A1),26^3))/26^2))&CHAR(65+MOD(INT((ROW(A1)-1)/26),26))&CHAR(65+MOD(ROW(A1)-1,26))&ROUNDUP(ROW(A1)/26^3,0),"")

Thanks Glenn, did the job perfectly!
 
Upvote 0

Forum statistics

Threads
1,224,560
Messages
6,179,520
Members
452,923
Latest member
JackiG

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