Hello everyone
The formula in O6:O9:
=IFERROR(TEXTJOIN(";";1;IF(INDEX($C6:$L49;MATCH(1;($A6:$A49=M6)*($B6:$B49=N6);0);0)<>0;$C$1:$L$1;""));"")
is behaving differently when there is a direct input (from source sheet) (C6:L27) as opposed to a value drawn from a formula (C27:L27).
Specifically: all inputs in the range C6:L26 are direct input values (on the source sheet), whereas the inputs in C27:L27 are drawn from a formula (in the source sheet).
If working properly, in O9 it should not be "1;2;3;4;5;6;7;8;9;10" but rather "4;10"
Is there a fix for this? Thanks in advance!
The formula in O6:O9:
=IFERROR(TEXTJOIN(";";1;IF(INDEX($C6:$L49;MATCH(1;($A6:$A49=M6)*($B6:$B49=N6);0);0)<>0;$C$1:$L$1;""));"")
is behaving differently when there is a direct input (from source sheet) (C6:L27) as opposed to a value drawn from a formula (C27:L27).
Specifically: all inputs in the range C6:L26 are direct input values (on the source sheet), whereas the inputs in C27:L27 are drawn from a formula (in the source sheet).
If working properly, in O9 it should not be "1;2;3;4;5;6;7;8;9;10" but rather "4;10"
Is there a fix for this? Thanks in advance!
2020-21 segundona.xlsx | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |||
1 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | |||||||
2 | |||||||||||||||||
3 | |||||||||||||||||
4 | |||||||||||||||||
5 | |||||||||||||||||
6 | AGU | Alvin | AGU | FX | 5 | ||||||||||||
7 | AGU | Calvin | AGU | Ibra | 1 | ||||||||||||
8 | AGU | Dibala | AGU | Ted | 7 | ||||||||||||
9 | AGU | FX | ꞁ | AGU | zMissingAGU | 1;2;3;4;5;6;7;8;9;10 | |||||||||||
10 | AGU | Ibra | Ձ | ||||||||||||||
11 | AGU | Jack | |||||||||||||||
12 | AGU | Lelis | |||||||||||||||
13 | AGU | Mark | |||||||||||||||
14 | AGU | Mel | |||||||||||||||
15 | AGU | Melvin | |||||||||||||||
16 | AGU | Meduso | |||||||||||||||
17 | AGU | Mervin | |||||||||||||||
18 | AGU | Mob | |||||||||||||||
19 | AGU | Nat | |||||||||||||||
20 | AGU | Neyde | |||||||||||||||
21 | AGU | Paul | |||||||||||||||
22 | AGU | Romeo | |||||||||||||||
23 | AGU | Sawa | |||||||||||||||
24 | AGU | Stone | |||||||||||||||
25 | AGU | Ted | ꞁ | ||||||||||||||
26 | AGU | Titanic | |||||||||||||||
27 | AGU | zMissingAGU | Ձ | ꞁ | |||||||||||||
STATS4 (2) |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A6 | A6 | =INDIRECT("STATS2!AE1") |
B6 | B6 | =INDIRECT("STATS2!AG1") |
C6:L6 | C6 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B6,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
M6:N9 | M6 | =IFERROR(FILTER(A6:B49,MMULT(--(C6:L49<>0)*(C6:L49<>""),SEQUENCE(COLUMNS(C6:L49)))),"") |
A7 | A7 | =INDIRECT("STATS2!AE2") |
B7 | B7 | =INDIRECT("STATS2!AG2") |
C7:L7 | C7 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B7,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A8 | A8 | =INDIRECT("STATS2!AE3") |
B8 | B8 | =INDIRECT("STATS2!AG3") |
C8:L8 | C8 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B8,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A9 | A9 | =INDIRECT("STATS2!AE4") |
B9 | B9 | =INDIRECT("STATS2!AG4") |
C9:L9 | C9 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B9,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A10 | A10 | =INDIRECT("STATS2!AE5") |
B10 | B10 | =INDIRECT("STATS2!AG5") |
C10:L10 | C10 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B10,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A11 | A11 | =INDIRECT("STATS2!AE6") |
B11 | B11 | =INDIRECT("STATS2!AG6") |
C11:L11 | C11 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B11,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A12 | A12 | =INDIRECT("STATS2!AE7") |
B12 | B12 | =INDIRECT("STATS2!AG7") |
C12:L12 | C12 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B12,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A13 | A13 | =INDIRECT("STATS2!AE8") |
B13 | B13 | =INDIRECT("STATS2!AG8") |
C13:L13 | C13 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B13,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A14 | A14 | =INDIRECT("STATS2!AE9") |
B14 | B14 | =INDIRECT("STATS2!AG9") |
C14:L14 | C14 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B14,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A15 | A15 | =INDIRECT("STATS2!AE10") |
B15 | B15 | =INDIRECT("STATS2!AG10") |
C15:L15 | C15 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B15,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A16 | A16 | =INDIRECT("STATS2!AE11") |
B16 | B16 | =INDIRECT("STATS2!AG11") |
C16:L16 | C16 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B16,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A17 | A17 | =INDIRECT("STATS2!AE12") |
B17 | B17 | =INDIRECT("STATS2!AG12") |
C17:L17 | C17 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B17,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A18 | A18 | =INDIRECT("STATS2!AE13") |
B18 | B18 | =INDIRECT("STATS2!AG13") |
C18:L18 | C18 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B18,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A19 | A19 | =INDIRECT("STATS2!AE14") |
B19 | B19 | =INDIRECT("STATS2!AG14") |
C19:L19 | C19 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B19,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A20 | A20 | =INDIRECT("STATS2!AE15") |
B20 | B20 | =INDIRECT("STATS2!AG15") |
C20:L20 | C20 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B20,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A21 | A21 | =INDIRECT("STATS2!AE16") |
B21 | B21 | =INDIRECT("STATS2!AG16") |
C21:L21 | C21 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B21,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A22 | A22 | =INDIRECT("STATS2!AE17") |
B22 | B22 | =INDIRECT("STATS2!AG17") |
C22:L22 | C22 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B22,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A23 | A23 | =INDIRECT("STATS2!AE18") |
B23 | B23 | =INDIRECT("STATS2!AG18") |
C23:L23 | C23 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B23,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A24 | A24 | =INDIRECT("STATS2!AE19") |
B24 | B24 | =INDIRECT("STATS2!AG19") |
C24:L24 | C24 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B24,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A25 | A25 | =INDIRECT("STATS2!AE20") |
B25 | B25 | =INDIRECT("STATS2!AG20") |
C25:L25 | C25 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B25,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A26 | A26 | =INDIRECT("STATS2!AE21") |
B26 | B26 | =INDIRECT("STATS2!AG21") |
C26:L26 | C26 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B26,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
A27 | A27 | =INDIRECT("STATS2!AE22") |
B27 | B27 | =INDIRECT("STATS2!AG22") |
C27:L27 | C27 | =IFERROR(INDEX(INDIRECT($A6&"!$R$5:$FL$48"),MATCH($B27,INDIRECT($A6&"!$B$5:$B$48"),0),MATCH(C$1,INDIRECT($A6&"!$R$2:$FL$2"),0)+2),"") |
O6 | O6 | =IFERROR(TEXTJOIN(";",1,IF(INDEX($C6:$L49,MATCH(1,($A6:$A49=M6)*($B6:$B49=N6),0),0)<>0,$C$1:$L$1,"")),"") |
O7:O27 | O7 | =IFERROR(TEXTJOIN(";",1,IF(INDEX($C$6:$L$49,MATCH(1,($A$6:$A$49=M7)*($B$6:$B$49=N7),0),0)<>0,$C$1:$L$1,"")),"") |
Dynamic array formulas. |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
B6:B49 | Cell Value | =0 | text | NO |