Here's another one.
This will only return multi-modal numbers (numbers that appear at least twice).
Data Range
|
A |
B |
C |
D |
E |
F |
G |
H |
I |
1 |
1 |
12 |
20 |
30 |
|
1-9 |
10-19 |
20-29 |
30-39 |
2 |
1 |
13 |
21 |
31 |
|
7 |
13 |
23 |
34 |
3 |
2 |
13 |
23 |
32 |
|
1 |
16 |
25 |
|
4 |
4 |
13 |
23 |
33 |
|
5 |
|
26 |
|
5 |
5 |
13 |
24 |
34 |
|
|
|
|
|
6 |
5 |
15 |
25 |
34 |
|
|
|
|
|
7 |
6 |
16 |
25 |
34 |
|
|
|
|
|
8 |
7 |
16 |
26 |
35 |
|
|
|
|
|
9 |
7 |
18 |
26 |
36 |
|
|
|
|
|
10 |
7 |
19 |
27 |
38 |
|
|
|
|
|
11 |
---- |
---- |
---- |
---- |
---- |
---- |
---- |
---- |
---- |
This array formula** entered in F2:
=IFERROR(MODE(IF(ISNA(MATCH($A$1:$D$10,F$1:F1,0)),IF($A$1:$D$10>=--SUBSTITUTE(LEFT(F$1,2),"-",""),IF($A$1:$D$10<=--SUBSTITUTE(RIGHT(F$1,2),"-",""),$A$1:$D$10)))),"")
** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
Copy across to I2 then down until you get a row full of blanks.
I have the numbers sorted just to make it easier to see what results you should expect.
Bookmarks