Four Digit Possibilities

EssKayKay

Board Regular
Joined
Jan 5, 2003
Messages
233
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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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
A​
B​
C​
1​
Combo
OK
2​
0000
FALSE​
B2: =AND(MID(A2, {1,2,3}, 1) < MID(A2, {2,3,4}, 1))
3​
0001
FALSE​
4​
0002
FALSE​
5​
0003
FALSE​
124​
0122
FALSE​
125​
0123
TRUE​
126​
0124
TRUE​
127​
0125
TRUE​
128​
0126
TRUE​
129​
0127
TRUE​
130​
0128
TRUE​
131​
0129
TRUE​
132​
0130
FALSE​
135​
0133
FALSE​
136​
0134
TRUE​
137​
0135
TRUE​
 
Upvote 0
Thank you SHG I got it - much appreciated.

Again, my thanks...
SKK
 
Upvote 0

Forum statistics

Threads
1,215,003
Messages
6,122,655
Members
449,091
Latest member
peppernaut

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