Four Digit Possibilities

EssKayKay

Active Member
Joined
Jan 5, 2003
Messages
402
Office Version
  1. 2007
Platform
  1. Windows
Hello,


I’m looking for the total number of possibilities for a four digit entry where:

1. Available digits = 0,1,2,3,4,5,6,7,8,9.
2. Any single digit can only be used once.
3. Any combination of four digits are equal and only counted as one possibility (i.e., 0123, 3210, 1230, 2130 etc. are all only one option).

Any suggestion would be appreciated,

Thanks,
SKK
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
So that tells me 210 possibilities. Is there a way to list these in a spreadsheet?

Thanks,
SKK
 
Upvote 0
Enter 0000 into a cell formatted as text, drag down 10000 rows, and write a formula to tells you the digits are in order. Filter on that, clear the ones that aren't, and sort to move blanks to the bottom.
 
Upvote 0
Sorry for being a pain here but I have no idea how to write a formula to test if digits are in order.
 
Upvote 0
[Table="width:, class:grid"][tr][td="bgcolor:#C0C0C0"][/td][td="bgcolor:#C0C0C0"]
A​
[/td][td="bgcolor:#C0C0C0"]
B​
[/td][td="bgcolor:#C0C0C0"]
C​
[/td][/tr][tr][td="bgcolor:#C0C0C0"]
1​
[/td][td="bgcolor:#F3F3F3"]
Combo
[/td][td="bgcolor:#F3F3F3"]
OK
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
2​
[/td][td]0000[/td][td]
FALSE​
[/td][td]B2: =AND(MID(A2, {1,2,3}, 1) < MID(A2, {2,3,4}, 1))[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
3​
[/td][td]0001[/td][td]
FALSE​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
4​
[/td][td]0002[/td][td]
FALSE​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
5​
[/td][td]0003[/td][td]
FALSE​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
124​
[/td][td]0122[/td][td]
FALSE​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
125​
[/td][td]0123[/td][td]
TRUE​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
126​
[/td][td]0124[/td][td]
TRUE​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
127​
[/td][td]0125[/td][td]
TRUE​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
128​
[/td][td]0126[/td][td]
TRUE​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
129​
[/td][td]0127[/td][td]
TRUE​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
130​
[/td][td]0128[/td][td]
TRUE​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
131​
[/td][td]0129[/td][td]
TRUE​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
132​
[/td][td]0130[/td][td]
FALSE​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
135​
[/td][td]0133[/td][td]
FALSE​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
136​
[/td][td]0134[/td][td]
TRUE​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
137​
[/td][td]0135[/td][td]
TRUE​
[/td][td][/td][/tr]
[/table]
 
Upvote 0
Thank you SHG I got it - much appreciated.

Again, my thanks...
SKK
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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