Book1 | ||||
---|---|---|---|---|
A | B | |||
1 | 1 | 10 | ||
2 | 2 | |||
3 | 3 | |||
4 | 4 | |||
5 | 5 | |||
6 | 6 | |||
7 | 7 | |||
8 | 8 | |||
9 | ||||
10 | ||||
11 | ||||
12 | ||||
13 | 13 | |||
14 | ||||
15 | ||||
16 | ||||
17 | ||||
18 | ||||
19 | ||||
20 | ||||
21 | ||||
22 | ||||
23 | ||||
24 | 24 | |||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B1 | B1 | =LET(f,SUMPRODUCT(MAX((A1:A100<>"")*ROW(A1:A100))),f-SUMPRODUCT(MAX((INDIRECT("A1:A"&f-1)<>"")*ROW(INDIRECT("A1:A"&f-1)))))-1 |
23 07 16.xlsm | ||||
---|---|---|---|---|
A | B | |||
1 | a | 9 | ||
2 | 0 | |||
3 | c | 0 | ||
4 | 3 | |||
5 | e | 2 | ||
6 | 1 | |||
7 | 1 | |||
8 | h | |||
9 | ||||
10 | ||||
11 | ||||
12 | l | |||
13 | m | |||
14 | n | |||
15 | ||||
16 | ||||
17 | ||||
18 | ||||
19 | ||||
20 | ||||
21 | ||||
22 | ||||
23 | ||||
24 | x | |||
Blanks |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B1:B7 | B1 | =LET(d,SORT(FILTER(ROW(A1:A24),A1:A24<>""),,-1),s,SEQUENCE(ROWS(d)-1),INDEX(d,s)-INDEX(d,s+1)-1) |
Dynamic array formulas. |
Do you mean like column B below?when I used the formula it omitted the 0 values.
23 08 04.xlsm | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | a | 9 | 9 | ||
2 | 3 | ||||
3 | c | 2 | |||
4 | 3 | 1 | |||
5 | e | 2 | 1 | ||
6 | 1 | ||||
7 | 1 | ||||
8 | h | ||||
9 | |||||
10 | |||||
11 | |||||
12 | l | ||||
13 | m | ||||
14 | n | ||||
15 | |||||
16 | |||||
17 | |||||
18 | |||||
19 | |||||
20 | |||||
21 | |||||
22 | |||||
23 | |||||
24 | x | ||||
Sample |
Hmm, I can't see how that formula could produce a result like that - unless you don't have any consecutive non-blank cells in the range.Yes, column C is what I get.
GreenLake Summer Extravaganza 2023.xlsx | ||||||
---|---|---|---|---|---|---|
O | P | Q | R | |||
3 | **** R | Eddie E | Eric J | Glenn M | ||
4 | 2 | 3 | 2 | 2 | ||
5 | 10 | 8 | 10 | 10 | ||
6 | 16 | |||||
7 | ||||||
8 | ||||||
9 | ||||||
10 | ||||||
11 | ||||||
12 | A | |||||
13 | ||||||
14 | ||||||
15 | ||||||
16 | ||||||
17 | ||||||
18 | ||||||
19 | ||||||
20 | ||||||
21 | ||||||
22 | ||||||
23 | ||||||
24 | ||||||
25 | ||||||
26 | ||||||
27 | ||||||
28 | A | B | A | |||
29 | A | |||||
30 | ||||||
31 | ||||||
32 | ||||||
33 | ||||||
34 | ||||||
35 | ||||||
36 | ||||||
37 | ||||||
38 | A | |||||
39 | C | B | A | |||
40 | ||||||
41 | ||||||
42 | ||||||
43 | ||||||
44 | ||||||
Race schedule |
Cell Formulas | ||
---|---|---|
Range | Formula | |
O3:R3 | O3 | =OFFSET(Lineups!$AA$2,(COLUMN()-10),0) |
O4:R4 | O4 | =COUNTIF(O7:O42,"a")+COUNTIF(O7:O42,"b")+COUNTIF(O7:O42,"c")+COUNTIF(O7:O42,"d") |
O5,Q5:R5,P5:P6 | O5 | =IF(O4>1,LET(d,SORT(FILTER(ROW(O7:O43),O7:O43<>""),,-1),s,SEQUENCE(ROWS(d)-1),INDEX(d,s)-INDEX(d,s+1)-1),"") |
O7:R42 | O7 | =IFERROR(IF(COUNTIF(INDIRECT($D7&$E7&$F7&LEFT($G7,1)&"a"),O$3),"A",IF(COUNTIF(INDIRECT($D7&$E7&$F7&LEFT($G7,1)&"B"),O$3),"B",IF(COUNTIF(INDIRECT($D7&$E7&$F7&LEFT($G7,1)&"C"),O$3),"C",IF(COUNTIF(INDIRECT($D7&$E7&$F7&LEFT($G7,1)&"D"),O$3),"D","")))),"") |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
J7:AJ45 | Cell Value | ="A" | text | NO |
J7:AJ45 | Cell Value | ="B" | text | NO |
J7:AJ45 | Cell Value | ="C" | text | NO |
J7:AJ45 | Cell Value | ="D" | text | NO |
J7:AJ45 | Cell Value | ="E" | text | NO |
J7:AJ45 | Cell Value | ="F" | text | NO |
J7:AJ45 | Cell Value | ="x" | text | NO |
J4:AK4 | Cell Value | =1 | text | NO |
J4:AK4 | Cell Value | =2 | text | NO |
J4:AK4 | Cell Value | >2 | text | NO |
23 08 05.xlsm | ||||||
---|---|---|---|---|---|---|
O | P | Q | R | |||
3 | **** R | Eddie E | Eric J | Glenn M | ||
4 | 2 | 3 | 2 | 2 | ||
5 | 10 | 8 | 10 | 10 | ||
6 | 16 | |||||
7 | ||||||
8 | ||||||
9 | ||||||
10 | ||||||
11 | ||||||
12 | A | |||||
13 | ||||||
14 | ||||||
15 | ||||||
16 | ||||||
17 | ||||||
18 | ||||||
19 | ||||||
20 | ||||||
21 | ||||||
22 | ||||||
23 | ||||||
24 | ||||||
25 | ||||||
26 | ||||||
27 | ||||||
28 | A | B | A | |||
29 | A | |||||
30 | ||||||
31 | ||||||
32 | ||||||
33 | ||||||
34 | ||||||
35 | ||||||
36 | ||||||
37 | ||||||
38 | A | |||||
39 | C | B | A | |||
40 | ||||||
41 | ||||||
42 | ||||||
43 | ||||||
Count Blanks |
Cell Formulas | ||
---|---|---|
Range | Formula | |
O5,Q5:R5,P5:P6 | O5 | =IF(O4>1,LET(d,SORT(FILTER(ROW(O7:O43),O7:O43<>""),,-1),s,SEQUENCE(ROWS(d)-1),INDEX(d,s)-INDEX(d,s+1)-1),"") |