Spreadsheet: 828022d1683193249-repeat-certain-numbers-2-times-and-sort-everything-ascending-numbers-i-want-repeated-and-sorted_gregb11-formula
Sheet: Blad1

 | THESE NUMBERS ONLY REPEAT 2 TIMES IF 1 DECIMAL IS USED. I WANT THE NUMBERS TO REPEAT 2 TIMES DESPITE NUMBER OF DECIMALS |  | THESE NUMBERS ONLY REPEAT 2 TIMES IF 1 DECIMAL IS USED. I WANT THE NUMBERS TO REPEAT 2 TIMES DESPITE NUMBER OF DECIMALS |  | THESE NUMBERS ONLY REPEAT 2 TIMES IF 1 DECIMAL IS USED. I WANT THE NUMBERS TO REPEAT 2 TIMES DESPITE NUMBER OF DECIMALS |  | ONLY THE FIRST CELL H4 IS SHOWING UP IN THE LIST A16 TO A1002. I WANT THESE NUMBERS TO REPEAT IN THE ASCENDING ORDER LIST A16 TO 1002 EVEN IF THEY ARE NOT IN ASCENDING ORDER IN ELL H4 TO H12
 | Dataset 1 (Ascending order) |  | Dataset 2 (Ascending order) |  | Dataset 3 (Ascending order) |  | Dataset 4 (Random depths and NOT ASCENDING ORDER)
Thickness of each layer | Depth [m] |  | Depth [m] |  | Depth [m] |  | Depth [m]
1.1 |  |  | 1.7 |  | 1 |  | 5.9 | THIS NUMBER SHOWS UP 1 TIME BUT DOES NOT REPEAT 2 TIMES
2 |  |  | 4 |  | 3.5 |  | 1.1 | I WANT THIS NUMBERS TO REPEAT 2 TIMES. THE CELL TO THE LEFT COULD BE LEFT EMPTY
4.2 |  |  | 5.5 |  |  |  | 8.7 | I WANT THIS NUMBERS TO REPEAT 2 TIMES. THE CELL TO THE LEFT COULD BE LEFT EMPTY
5.6 |  |  |  |  |  |  | 0 | I WANT THIS NUMBERS TO REPEAT 2 TIMES. THE CELL TO THE LEFT COULD BE LEFT EMPTY
 |  |  |  |  |  |  |  | I WANT THIS NUMBERS TO REPEAT 2 TIMES. THE CELL TO THE LEFT COULD BE LEFT EMPTY
 |  |  |  |  |  |  |  | I WANT THIS NUMBERS TO REPEAT 2 TIMES. THE CELL TO THE LEFT COULD BE LEFT EMPTY
 |  |  |  |  |  |  |  | I WANT THIS NUMBERS TO REPEAT 2 TIMES. THE CELL TO THE LEFT COULD BE LEFT EMPTY
 |  |  |  |  |  |  |  | I WANT THIS NUMBERS TO REPEAT 2 TIMES. THE CELL TO THE LEFT COULD BE LEFT EMPTY
 |  |  |  |  |  |  |  | I WANT THIS NUMBERS TO REPEAT 2 TIMES. THE CELL TO THE LEFT COULD BE LEFT EMPTY
0.1 | THIS CAN BE THE NORMAL INCREMENT USED IN A16 TO A1002. IF FOR EXAMPLE 2 DECIMALS ARE USED OR MORE THEN THE INCREMENT SHOULD BE TO THE CLOSEST VALUE IN THE ASCENDING ORDER WITH REGARDS TO THE INCREMENT IN A13, SEE EXAMPLE IN CELL A16 TO A1002 OF HOW I WANT EVERYTHING TO BE SORTED
ASCENDING ORDER BELOW SHOULD BE WITH A NORMAL INCREMENT I WANT TO SET IN CELL A13 |  |  | HOW I WANT IT TO SORT IN ASCENDING ORDER WITH ALL THE ABOVE NUMBERS IN EACH COLOURED FIELD
Depth [m] | c | e | Depth [m]
0 |  |  | 0
 |  |  | 0.1 | 0
 |  |  | 0.2 | 0.1
 |  |  | 0.3 | 0.2
 |  |  | 0.33 | 0.3
 |  |  | 0.33 | 0.4
 |  |  | 0.4 | 0.5
 |  |  | 0.5 | 0.6
 |  |  | 0.5 | 0.7
 |  |  | 0.6 | 0.8
 |  |  | 0.7 | 0.9
 |  |  | 0.8 | 1
 |  |  | 0.9 | 1
 |  |  | 1 | 1.1
 |  |  | 1.1 | 1.1
 |  |  | 1.2 | 1.2
 |  |  | 1.3 | 1.3
 |  |  | 1.33 | 1.4
 |  |  | 1.33 | 1.5
 |  |  | 1.4 | 1.6
 |  |  | 1.5 | 1.7
 |  |  | 1.6 | 1.7
 |  |  | 1.7 | 1.8
 |  |  | 1.8 | 1.9
 |  |  | 1.9 | 2
 |  |  | 2 | 2.1
 |  |  | 2.1 | 2.2
 |  |  | 2.2 | 2.3
 |  |  | 2.3 | 2.4
 |  |  | 2.4 | 2.5
 |  |  | 2.5 | 2.6
 |  |  | 2.57 | 2.7
 |  |  | 2.57 | 2.8
 |  |  | 2.6 | 2.9
 |  |  | 2.7 | 3
 |  |  | 2.7 | 3.1
 |  |  | 2.8 | 3.1
 |  |  | 2.9 | 3.2
 |  |  | 3 | 3.3
 |  |  | 3 | 3.4
 |  |  | 3.1 | 3.5
 |  |  | 3.2 | 3.5
 |  |  | 3.3 | 3.6
 |  |  | 3.4 | 3.7
 |  |  | 3.5 | 3.8
 |  |  | 3.6 | 3.9
 |  |  | 3.7 | 4
 |  |  | 3.8 | 4
 |  |  | 3.9 | 4.1
 |  |  | 4 | 4.2
 |  |  | 4.1 | 4.3
 |  |  | 4.2 | 4.4
 |  |  | 4.3 | 4.5
 |  |  | 4.4 | 4.6
 |  |  | 4.5 | 4.7
 |  |  | 4.6 | 4.8
 |  |  | 4.7 | 4.9
 |  |  | 4.7 | 5
 |  |  | 4.8 | 5.1
 |  |  | 4.9 | 5.2
 |  |  | 5 | 5.3
 |  |  | 5.1 | 5.4
 |  |  | 5.2 | 5.5
 |  |  | 5.3 | 5.5
 |  |  | 5.4 | 5.6
 |  |  | 5.5 | 5.7
 |  |  | 5.6 | 5.8
 |  |  | 5.7 | 5.9
 |  |  | 5.8 | 5.9
 |  |  | 5.9 | 6
 |  |  | 6 | 6.1
 |  |  | 6.1 | 6.2
 |  |  | 6.2 | 6.3
 |  |  | 6.3 | 6.4
 |  |  | 6.4 | 6.5
 |  |  | 6.5 | 6.6
 |  |  | 6.6 | 6.7
 |  |  | 6.7 | 6.8
 |  |  | 6.8 | 6.9
 |  |  | 6.9 | 7
 |  |  | 7 | 7.1
 |  |  | 7.1 | 7.2
 |  |  | 7.2 | 7.3 | REPEATS 3 TIMES
 |  |  | 7.3 | 7.300000000000001 | REPEATS 3 TIMES
 |  |  | 7.4 | 7.300000000000001 | REPEATS 3 TIMES
 |  |  | 7.5 | 7.4
 | SHOULD BE REPEATED TWICE |  | 7.5 | 7.5
 |  |  | 7.6 | 7.6
 |  |  | 7.7 | 7.7
 |  |  | 7.8 | 7.8
 |  |  | 7.9 | 7.9
 |  |  | 8 | 8
 |  |  | 8 | 8.1
 |  |  |  | 8.2
 |  |  |  | 8.3
 |  |  |  | 8.4
 |  |  |  | 8.5
 |  |  |  | 8.6
 |  |  |  | 8.7
 |  |  |  | 8.7
 |  |  |  | 8.8
 |  |  |  | 8.9
 |  |  |  | 9
 |  |  |  | 9.1
 |  |  |  | 9.2
 |  |  |  | 9.3
 |  |  |  | 9.4
 |  |  |  | 9.5
 |  |  |  | 9.6
 |  |  |  | 9.7
 |  |  |  | 9.8
 |  |  |  | 9.9
 |  |  |  | 10
 |  |  |  | 10.1
 |  |  |  | 10.2
 |  |  |  | 10.3
 |  |  |  | 10.4
 |  |  |  | 10.5
 |  |  |  | 10.6
 |  |  |  | 10.7
 |  |  |  | 10.8
 |  |  |  | 10.9
 |  |  |  | 11
 |  |  |  | 11.1
 |  |  |  | 11.2
 |  |  |  | 11.3
 |  |  |  | 11.4
 |  |  |  | 11.5
 |  |  |  | 11.6
 |  |  |  | 11.7
 |  |  |  | 11.8
 |  |  |  | 11.9
 |  |  |  | 12
 |  |  |  | 12.1
 |  |  |  | 12.2
 |  |  |  | 12.3
 |  |  |  | 12.4
 |  |  |  | 12.5
 |  |  |  | 12.6
 |  |  |  | 12.7
 |  |  |  | 12.8
 |  |  |  | 12.9
 |  |  |  | 12.9