Every numeric possibility with 8 Digits

selant

Board Regular
Joined
Mar 26, 2009
Messages
109
I want to create a list of every possibility of 8 digit numbers consisting of 0,1,2,3,4,5,6,7,8,9
There must have been 10^8 = 100,000,000 combinations if i am not wrong. Is it possible to create such list ?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Can you do the following.

in cell a1 put 0
in cell a2 put =a1+1

drag this down untilyou get to 99999999

in cell1 put =text(a1,"00000000")

drag this formula down

you should have a list of 8 digits of all possible combinations.

On excel 2003 you will only have 65k rows so you'll have to split them up over multiple columns.
 
Upvote 0
Can you do the following.

in cell a1 put 0
in cell a2 put =a1+1

drag this down untilyou get to 99999999

in cell1 put =text(a1,"00000000")

drag this formula down

you should have a list of 8 digits of all possible combinations.

On excel 2003 you will only have 65k rows so you'll have to split them up over multiple columns.

Thank you for your help but it didnt work for me, may be i'm doing something mistaken but there should have been an easier way to get the combinations with a macro or something :(
 
Upvote 0
S8utt's method should work? Did you follow his directions exactly?

In A1 put:

=text(0,"00000000")

Then in A2 put:

=text(A1+1,"00000000")

Then copy that all the way down column A.

Again like they S8utt said it will also depend on what version of Excel you are using as far as how many columns you will need to list this out.
 
Upvote 0
I will try it again schielrn, i am using excel 2007. Thank you.

Edit : I used ";" instead of "," in the formula and it worked.. The maximum number of rows in my worksheet is 1048576. How can i exceed this limit ?
 
Last edited:
Upvote 0
You will not be able to exceed this limit. You will have to in column B, start your numbers where they ended off in column A, but you will need to do this for almost 100 columns?

May I ask what you are using or needing this list for? There may be a better way than listing everything out?
 
Upvote 0
I am trying to create a wordlist of each 8 number combinations to test my own wireless network security.
 
Upvote 0
So are you planning on looping through the entire wordlist? If so you can just incremement the number by one in the code if that is what you are trying to do?

Code:
for i = 0 to 99999999
'your code goes here
'maybe something like:
'format(i,"00000000")
next i
Hope that helps?
 
Upvote 0
I think the best is to use a wordlist generator, because its possibly gonna be very big in size like 762 megabytes or so.. Thanks anyway
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,989
Messages
6,122,622
Members
449,093
Latest member
catterz66

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