Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default permutations of six digit number

Hi,

I'm hoping someone could help me.

I need to generate all of the permutations of a six digit number using 0-9
where every number can be repeated and in any order. Is there any way to do
that in Excel or Access?

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default permutations of six digit number

that is a million numbers.
do you really need all million at once or just a random selection from them.

one way to generate them is
select all the cells format-gell-number-custom 000000
in Cell A1
enter 0
in A2 enter =A1+1

select A2
copy
select A2:A50000
paste
Select B1
enter=A1+50000
copy
select B1:T50000
paste
Select A1:T50000
copy and paste special values

now what do you want to do with them?

"steed800" wrote:

Hi,

I'm hoping someone could help me.

I need to generate all of the permutations of a six digit number using 0-9
where every number can be repeated and in any order. Is there any way to do
that in Excel or Access?

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default permutations of six digit number

Dont need anthing but this, there will be 1 million permutations from
000000 to 999999.

steed800 wrote:

Hi,

I'm hoping someone could help me.

I need to generate all of the permutations of a six digit number using 0-9
where every number can be repeated and in any order. Is there any way to do
that in Excel or Access?

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default permutations of six digit number

thanks! that worked great.

i didn't realize that was a million numbers so i'll have to just use a sample.

"bj" wrote:

that is a million numbers.
do you really need all million at once or just a random selection from them.

one way to generate them is
select all the cells format-gell-number-custom 000000
in Cell A1
enter 0
in A2 enter =A1+1

select A2
copy
select A2:A50000
paste
Select B1
enter=A1+50000
copy
select B1:T50000
paste
Select A1:T50000
copy and paste special values

now what do you want to do with them?

"steed800" wrote:

Hi,

I'm hoping someone could help me.

I need to generate all of the permutations of a six digit number using 0-9
where every number can be repeated and in any order. Is there any way to do
that in Excel or Access?

Thanks


  #5   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default permutations of six digit number

one possibility for a sample is randbetween(0,999999)
each time it is calculated a new one will be generated
I would copy it about 10 times cause a calc, copy and paste special values
somewhere else.
you may have duplicate numbers:


"steed800" wrote:

thanks! that worked great.

i didn't realize that was a million numbers so i'll have to just use a sample.

"bj" wrote:

that is a million numbers.
do you really need all million at once or just a random selection from them.

one way to generate them is
select all the cells format-gell-number-custom 000000
in Cell A1
enter 0
in A2 enter =A1+1

select A2
copy
select A2:A50000
paste
Select B1
enter=A1+50000
copy
select B1:T50000
paste
Select A1:T50000
copy and paste special values

now what do you want to do with them?

"steed800" wrote:

Hi,

I'm hoping someone could help me.

I need to generate all of the permutations of a six digit number using 0-9
where every number can be repeated and in any order. Is there any way to do
that in Excel or Access?

Thanks


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to validate a cell to insert from 9 digit number to 13 digit number. ramulu via OfficeKB.com Excel Worksheet Functions 1 February 21st 07 02:32 PM
How to validate a cell to insert from 9 digit number to 13 digit number. ramulu Excel Worksheet Functions 1 February 21st 07 10:00 AM
Number permutations cassian New Users to Excel 1 August 8th 06 10:17 PM
Color a single digit in a mult-digit number cell Phyllis Excel Discussion (Misc queries) 6 November 17th 05 12:46 AM
When we enter a 16 digit number (credit card) the last digit chan. ceking Excel Discussion (Misc queries) 5 December 8th 04 11:45 PM


All times are GMT +1. The time now is 02:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"