ststern45
Well-known Member
- Joined
- Sep 17, 2005
- Messages
- 974
- Office Version
- 365
- 2010
- Platform
- Windows
Hello everyone,
I wanted to ask if a formula or vba code could calculate the following:
1>I have a random set of digits 0 through 9 in cell range F3:F23. The digits in the cell range are in the order/sequence. So cell F3 is 1st, F4 = 2nd, etc.
F3 = 2
F4 = 5
F5 = 0
F6 = 5
F7 = 0
F8 = 6
F9 = 4
F10 = 7
F11 = 8
F12 = 4
F13 = 9
F14 = 1
F15 = 0
F16 = 0
F17 = 0
F18 = 5
F19 = 1
F20 = 0
F21 = 8
F22 = 8
F23 = 7
Digit 0 = 6 Times
Digit 1 = 2
Digit 2 = 1
Digit 3 = 0
Digit 4 = 2
Digit 5 = 3
Digit 6 = 1
Digit 7 = 2
Digit 8 = 3
Digit 9 = 1
I would like to arrange the digits as follows:
Digit(s) with the highest total at the top, and then going downward by appearance in the cell range from F3:F23.
For example, the final result would look like the following:
0 = 6 times
5 = 3
8 = 3
4 = 2
7 = 2
1 = 2
2 = 1
6 = 1
9 = 1
3 = 0 times
Here is the question. Notice the digits 5 and 8 appeared 3 times each. The 5 needs to go below the digit 0 since this was the next digit in the string from F3:F23 followed by the 8.
The digits 4, 7, and 1 appeared 2 times each. The 4 appeared 1st then the 7, then the 1 in the string from F3:F23
The digits 2, 6, and 9 appeared 1 time each. The 2 appeared 1st then the 6, then the 9 in the string from F3:F23.
Thank you in advance!!
I wanted to ask if a formula or vba code could calculate the following:
1>I have a random set of digits 0 through 9 in cell range F3:F23. The digits in the cell range are in the order/sequence. So cell F3 is 1st, F4 = 2nd, etc.
F3 = 2
F4 = 5
F5 = 0
F6 = 5
F7 = 0
F8 = 6
F9 = 4
F10 = 7
F11 = 8
F12 = 4
F13 = 9
F14 = 1
F15 = 0
F16 = 0
F17 = 0
F18 = 5
F19 = 1
F20 = 0
F21 = 8
F22 = 8
F23 = 7
Digit 0 = 6 Times
Digit 1 = 2
Digit 2 = 1
Digit 3 = 0
Digit 4 = 2
Digit 5 = 3
Digit 6 = 1
Digit 7 = 2
Digit 8 = 3
Digit 9 = 1
I would like to arrange the digits as follows:
Digit(s) with the highest total at the top, and then going downward by appearance in the cell range from F3:F23.
For example, the final result would look like the following:
0 = 6 times
5 = 3
8 = 3
4 = 2
7 = 2
1 = 2
2 = 1
6 = 1
9 = 1
3 = 0 times
Here is the question. Notice the digits 5 and 8 appeared 3 times each. The 5 needs to go below the digit 0 since this was the next digit in the string from F3:F23 followed by the 8.
The digits 4, 7, and 1 appeared 2 times each. The 4 appeared 1st then the 7, then the 1 in the string from F3:F23
The digits 2, 6, and 9 appeared 1 time each. The 2 appeared 1st then the 6, then the 9 in the string from F3:F23.
Thank you in advance!!