ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   permutations (https://www.excelbanter.com/excel-discussion-misc-queries/53128-permutations.html)

newyorkjoy

permutations
 
I need a list of permutations for all 4 digits numbers using numerals 1-6.
How do I go about doing this?

Jonathan Cooper

permutations
 
In cell A1, type in the number 1111. This is your lowest number.
In cel A2, use the following formula.

=IF(A1=6666,"stop",IF(--RIGHT(A1,3)=666,A1+445,IF(--RIGHT(A1,2)=66,A1+45,IF(--RIGHT(A1,1)=6,A1+5,A1+1))))

copy/paste this formula downward. Should error out at row 1297.

double check it, but I think this is the list you are looking for.


"newyorkjoy" wrote:

I need a list of permutations for all 4 digits numbers using numerals 1-6.
How do I go about doing this?


Bernard Liengme

permutations
 
Has been covered many times. Suggest a Google newsgroup search
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"newyorkjoy" wrote in message
...
I need a list of permutations for all 4 digits numbers using numerals 1-6.
How do I go about doing this?




newyorkjoy

permutations
 
Thank you Jonathan!! It worked. It went a bit further than 1297. It ended
at 1378. It is appreciated.

"Jonathan Cooper" wrote:

In cell A1, type in the number 1111. This is your lowest number.
In cel A2, use the following formula.

=IF(A1=6666,"stop",IF(--RIGHT(A1,3)=666,A1+445,IF(--RIGHT(A1,2)=66,A1+45,IF(--RIGHT(A1,1)=6,A1+5,A1+1))))

copy/paste this formula downward. Should error out at row 1297.

double check it, but I think this is the list you are looking for.


"newyorkjoy" wrote:

I need a list of permutations for all 4 digits numbers using numerals 1-6.
How do I go about doing this?



All times are GMT +1. The time now is 07:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com