Removing the need of a helper column

Marvo

Board Regular
Joined
Nov 27, 2023
Messages
172
Office Version
  1. 2021
Platform
  1. Windows
Good morning, yesterday I posed a question regarding the attached image and Stephen Crump kindly gave me the perfect solution.

=COUNTIFS(A2:A34,"League",B2:B34,"H",D2:D34,E14)

What has got me thinking is the solution doesn't reference column C at all and as column D is a helper column that refers to Column C, is it possible to "cut out the middle man" completely, meaning I could dispense with the helper column? It would be a great boon if so as the several helper columns (60 in all) really slow the workbook down.

The formula in D3 is =IF(($A3="League")*($B3="H"),IF($C3="W",SUM(1,D2),0),N(D2))

Copied down

Many thanks for any help offered and if it can't be done, so be it. Just wondered.
 

Attachments

  • Mr Excel.JPG
    Mr Excel.JPG
    79.2 KB · Views: 39

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Strange things going on. Tried the "DRAWS, wouldn't work with F2 but put a D in T3 and use that, it works! So strange.
 
Upvote 0
Okay...I don't see any reason why using C2 in the formula wouldn't work. I almost always avoid merged cells because it leads to confusion and can cause problems in certain formulas. I typically enter the value in the first cell and then select multiple cells and format them to "Center across selection", which gives the same appearance, but the first cell is always the one that contains the value, and it's easier to inspect. Try unmerging one of those cell groups and investigate further.
 
Upvote 0
Yes, I suspected that, didn't make any difference. I'll keep experimenting.
 
Upvote 0
So
C2 doesn't work in C4 but T2 does
F2 doesn't work in F4 but T3 does
I2 WORKS!!!!!!
This might be a case for Scully and Mulder.

Cobblers.xlsm
ABCDEFGHIJKLMNOPQRST
1ALL-TIME RECORDS
2CONSECUTIVESW D LGFGAW
3TOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATED
4ALLALL11128/12/1899621983 & 2011741972, 1985, 1988 & 199228103/10/190829128/12/1965L
5MatchesH14116/04/19275121/03/1981621985 & 200254128/01/092816113/10/1900GF
6A622004 & 2015421913 & 199416127/10/190619127/03/195940101/09/1926GA
7lgeALL11128/12/1899621983 & 20118126/10/193528129/08/201527128/09/1965ALL
8MatchesH1221899 & 20275121/03/1981551905, 1985, 1999, 2002 & 201675128/12/192619113/10/1900LGE
9A8121/11/20155106/09/199415127/10/190618127/03/195942120/02/1965H
10LONGEST RUNSNO LNO DNO WNO GANO GFA
11TOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATE
12ALLALL27123/01/201629105/02/19271921969 & 1993621910 & 19307107/04/1939
13MatchesH33122/02/191328131/08/195711117/01/19909125/08/19236114/12/2002
14A14113/02/201621112/04/190828127/01/19066112/04/1997721938 & 1995
15lgeALL31128/12/201529105/02/19271821969 & 2011621930 & 19757107/04/1939
16MatchesH33122/02/19132621898 & 198411117/01/19909125/08/19235114/12/2002
17A19131/10/201523130/04/196633101/01/19216112/04/19978128/03/1967
Records
Cell Formulas
RangeFormula
C4C4=LET(t,ALL!$K:$K,s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=$T$2,s),IF(t<>$T$2,s))))
C5C5=LET(t,FILTER(ALL!$K:$K,ALL!$E:$E="H"),MAX(FREQUENCY(IF(t=T2,SEQUENCE(ROWS(t))),IF(t<>"W",SEQUENCE(ROWS(t))))))
C6C6=LET(t,FILTER(ALL!$K:$K,ALL!$E:$E="A"),MAX(FREQUENCY(IF(t="W",SEQUENCE(ROWS(t))),IF(t<>"W",SEQUENCE(ROWS(t))))))
C7C7=LET(t,FILTER(ALL!$K:$K,ALL!$J:$J="League"),MAX(FREQUENCY(IF(t="W",SEQUENCE(ROWS(t))),IF(t<>"W",SEQUENCE(ROWS(t))))))
C8C8=LET(t,FILTER(ALL!$K:$K,(ALL!$J:$J="League")*(ALL!$E:$E="H")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t="W",s),IF(t<>"W",s))))
C9C9=LET(t,FILTER(ALL!$K:$K,(ALL!$J:$J="League")*(ALL!$E:$E="A")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t="W",s),IF(t<>"W",s))))
F4F4=LET(t,ALL!$K:$K,s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=T3,s),IF(t<>T3,s))))
F5F5=LET(t,FILTER(ALL!$K:$K,ALL!$E:$E="H"),MAX(FREQUENCY(IF(t=T3,SEQUENCE(ROWS(t))),IF(t<>T3,SEQUENCE(ROWS(t))))))
F6F6=LET(t,FILTER(ALL!$K:$K,ALL!$E:$E="A"),MAX(FREQUENCY(IF(t="D",SEQUENCE(ROWS(t))),IF(t<>"D",SEQUENCE(ROWS(t))))))
F7F7=LET(t,FILTER(ALL!$K:$K,ALL!$J:$J="League"),MAX(FREQUENCY(IF(t="D",SEQUENCE(ROWS(t))),IF(t<>"D",SEQUENCE(ROWS(t))))))
F8F8=LET(t,FILTER(ALL!$K:$K,(ALL!$J:$J="League")*(ALL!$E:$E="H")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t="D",s),IF(t<>"D",s))))
F9F9=LET(t,FILTER(ALL!$K:$K,(ALL!$J:$J="League")*(ALL!$E:$E="A")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t="D",s),IF(t<>"D",s))))
I4I4=LET(t,ALL!K:K,s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=I2,s),IF(t<>I2,s))))
I5I5=LET(t,FILTER(ALL!$K:$K,ALL!$E:$E="H"),MAX(FREQUENCY(IF(t=I2,SEQUENCE(ROWS(t))),IF(t<>I2,SEQUENCE(ROWS(t))))))
I6I6=LET(t,FILTER(ALL!$K:$K,ALL!$E:$E="A"),MAX(FREQUENCY(IF(t="L",SEQUENCE(ROWS(t))),IF(t<>"L",SEQUENCE(ROWS(t))))))
I7I7=LET(t,FILTER(ALL!$K:$K,ALL!$J:$J="League"),MAX(FREQUENCY(IF(t="L",SEQUENCE(ROWS(t))),IF(t<>"L",SEQUENCE(ROWS(t))))))
I8I8=LET(t,FILTER(ALL!$K:$K,(ALL!$J:$J="League")*(ALL!$E:$E="H")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t="L",s),IF(t<>"L",s))))
I9I9=LET(t,FILTER(ALL!$K:$K,(ALL!$J:$J="League")*(ALL!$E:$E="A")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t="L",s),IF(t<>"L",s))))
L4L4=LET(t,ALL!L:L,s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>0,s),IF(t=0,s))))
L5L5=LET(t,FILTER(ALL!L:L,ALL!$E:$E="H"),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
L6L6=LET(t,FILTER(ALL!L:L,ALL!E:E="A"),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
L7L7=LET(t,FILTER(ALL!$L:$L,ALL!$J:$J="League"),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
L8L8=LET(t,FILTER(ALL!$L:$L,(ALL!$J:$J="League")*(ALL!$E:$E="H")),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
L9L9=LET(t,FILTER(ALL!$L:$L,(ALL!$J:$J="League")*(ALL!$E:$E="A")),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
O4O4=LET(t,ALL!$M:$M,s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>0,s),IF(t=0,s))))
O5O5=LET(t,FILTER(ALL!M:M,ALL!$E:$E="H"),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
O6O6=LET(t,FILTER(ALL!M:M,ALL!E:E="A"),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
O7O7=LET(t,FILTER(ALL!$M:$M,ALL!$J:$J="League"),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
O8O8=LET(t,FILTER(ALL!$M:$M,(ALL!$J:$J="League")*(ALL!$E:$E="H")),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
O9O9=LET(t,FILTER(ALL!$M:$M,(ALL!$J:$J="League")*(ALL!$E:$E="A")),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
C12C12=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>"L",s),IF(t="L",s))))
C13C13=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$E:$E="H")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>"L",s),IF(t="L",s))))
C14C14=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$E:$E="A")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>"L",s),IF(t="L",s))))
C15C15=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J="League")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>"L",s),IF(t="L",s))))
C16C16=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J="League")*(ALL!$E:$E="H")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>"L",s),IF(t="L",s))))
C17C17=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J="League")*(ALL!$E:$E="A")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>"L",s),IF(t="L",s))))
F12F12=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>"D",s),IF(t="D",s))))
F13F13=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$E:$E="H")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>"D",s),IF(t="D",s))))
F14F14=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$E:$E="A")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>"D",s),IF(t="D",s))))
F15F15=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J="League")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>"D",s),IF(t="D",s))))
F16F16=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J="League")*(ALL!$E:$E="H")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>"D",s),IF(t="D",s))))
F17F17=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J="League")*(ALL!$E:$E="A")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>"D",s),IF(t="D",s))))
I12I12=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>"W",s),IF(t="W",s))))
I13I13=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$E:$E="H")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>"W",s),IF(t="W",s))))
I14I14=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$E:$E="A")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>"W",s),IF(t="W",s))))
I15I15=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J="League")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>"W",s),IF(t="W",s))))
I16I16=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J="League")*(ALL!$E:$E="H")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>"W",s),IF(t="W",s))))
I17I17=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J="League")*(ALL!$E:$E="A")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>"W",s),IF(t="W",s))))
L12L12=LET(t,FILTER(ALL!$M:$M,(ALL!$M:$M<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
L13L13=LET(t,FILTER(ALL!$M:$M,(ALL!$M:$M<>"")*(ALL!$E:$E="H")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
L14L14=LET(t,FILTER(ALL!$M:$M,(ALL!$M:$M<>"")*(ALL!$E:$E="A")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
L15L15=LET(t,FILTER(ALL!$M:$M,(ALL!$M:$M<>"")*(ALL!$J:$J="League")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
L16L16=LET(t,FILTER(ALL!$M:$M,(ALL!$M:$M<>"")*(ALL!$J:$J="League")*(ALL!$E:$E="H")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
L17L17=LET(t,FILTER(ALL!$M:$M,(ALL!$M:$M<>"")*(ALL!$J:$J="League")*(ALL!$E:$E="A")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
O12O12=LET(t,FILTER(ALL!$L:$L,(ALL!$L:$L<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
O13O13=LET(t,FILTER(ALL!$L:$L,(ALL!$L:$L<>"")*(ALL!$E:$E="H")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
O14O14=LET(t,FILTER(ALL!$L:$L,(ALL!$L:$L<>"")*(ALL!$E:$E="A")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
O15O15=LET(t,FILTER(ALL!$L:$L,(ALL!$L:$L<>"")*(ALL!$J:$J="League")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
O16O16=LET(t,FILTER(ALL!$L:$L,(ALL!$L:$L<>"")*(ALL!$J:$J="League")*(ALL!$E:$E="H")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
O17O17=LET(t,FILTER(ALL!$L:$L,(ALL!$L:$L<>"")*(ALL!$J:$J="League")*(ALL!$E:$E="A")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
 
Upvote 0
So listen, I cleared everything out of the cell in C2 with the eraser thing, then put a W back and it worked. Super. Did the same with F2, no joy. This is crazy.
 
Upvote 0
And now I've moved the "D" to G2 and it works. Mind-blowing. Anyway it means I do not need a helper column now in T.
 
Upvote 0
Okay, I've completed the box, the primaries are in PINK. I've realised you don't need ALL because if you don't have League in the formula it defaults to all.

Just to let you know, I completed the Draws using G2, then when I'd done, cut and pasted G2 into F2 and it worked. If you know why you're a better man than me.

Cobblers.xlsm
ABCDEFGHIJKLMNOPQ
1ALL-TIME RECORDS
2CONSECUTIVESWWinsDDrawsLDefeatsGFGA
3TOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATE
4ALLALL11128/12/1899621983 & 2011741972, 1985, 1988 & 199228103/10/190829128/12/1965
5MatchesH14116/04/19275121/03/1981621985 & 200254128/01/092816113/10/1900
6A622004 & 2015421913 & 199416127/10/190619127/03/195940101/09/1926
7LeagueALL11128/12/1899621983 & 20118126/10/193528129/08/201527128/09/1965
8MatchesHome1221899 & 20275121/03/1981551905, 1985, 1999, 2002 & 201675128/12/192619113/10/1900
9Away8121/11/20155106/09/199415127/10/190618127/03/195942120/02/1965
10LONGEST RUNSNO LNO DNO WNO GANO GF
11TOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATE
12ALLALL27123/01/201629105/02/19271921969 & 1993621910 & 19307107/04/1939
13MatchesH33122/02/191328131/08/195711117/01/19909125/08/19236114/12/2002
14A14113/02/201621112/04/190828127/01/19066112/04/1997721938 & 1995
15lgeALL31128/12/201529105/02/19271821969 & 2011621930 & 19757107/04/1939
16MatchesH33122/02/19132621898 & 198411117/01/19909125/08/19235114/12/2002
17A19131/10/201523130/04/196633101/01/19216112/04/19978128/03/1967
Records
Cell Formulas
RangeFormula
C4C4=LET(t,ALL!$K:$K,s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=$C$2,s),IF(t<>$C$2,s))))
C5C5=LET(t,FILTER(ALL!$K:$K,ALL!$E:$E=B5),MAX(FREQUENCY(IF(t=C2,SEQUENCE(ROWS(t))),IF(t<>C2,SEQUENCE(ROWS(t))))))
C6C6=LET(t,FILTER(ALL!$K:$K,ALL!$E:$E=B6),MAX(FREQUENCY(IF(t=C2,SEQUENCE(ROWS(t))),IF(t<>C2,SEQUENCE(ROWS(t))))))
C7C7=LET(t,FILTER(ALL!$K:$K,ALL!$J:$J="League"),MAX(FREQUENCY(IF(t=C2,SEQUENCE(ROWS(t))),IF(t<>C2,SEQUENCE(ROWS(t))))))
C8C8=LET(t,FILTER(ALL!$K:$K,(ALL!$J:$J=A7)*(ALL!$E:$E=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=C2,s),IF(t<>"W",s))))
C9C9=LET(t,FILTER(ALL!$K:$K,(ALL!$J:$J=A7)*(ALL!$E:$E=B6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=C2,s),IF(t<>C2,s))))
F4F4=LET(t,ALL!$K:$K,s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=F2,s),IF(t<>F2,s))))
F5F5=LET(t,FILTER(ALL!$K:$K,ALL!$E:$E=B5),MAX(FREQUENCY(IF(t=F2,SEQUENCE(ROWS(t))),IF(t<>F2,SEQUENCE(ROWS(t))))))
F6F6=LET(t,FILTER(ALL!$K:$K,ALL!$E:$E=B6),MAX(FREQUENCY(IF(t=F2,SEQUENCE(ROWS(t))),IF(t<>F2,SEQUENCE(ROWS(t))))))
F7F7=LET(t,FILTER(ALL!$K:$K,ALL!$J:$J=A7),MAX(FREQUENCY(IF(t=F2,SEQUENCE(ROWS(t))),IF(t<>F2,SEQUENCE(ROWS(t))))))
F8F8=LET(t,FILTER(ALL!$K:$K,(ALL!$J:$J=A7)*(ALL!$E:$E=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=F2,s),IF(t<>F2,s))))
F9F9=LET(t,FILTER(ALL!$K:$K,(ALL!$J:$J="League")*(ALL!$E:$E="A")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t="D",s),IF(t<>"D",s))))
I4I4=LET(t,ALL!K:K,s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=I2,s),IF(t<>I2,s))))
I5I5=LET(t,FILTER(ALL!$K:$K,ALL!$E:$E=B5),MAX(FREQUENCY(IF(t=I2,SEQUENCE(ROWS(t))),IF(t<>I2,SEQUENCE(ROWS(t))))))
I6I6=LET(t,FILTER(ALL!$K:$K,ALL!$E:$E=B6),MAX(FREQUENCY(IF(t=I2,SEQUENCE(ROWS(t))),IF(t<>I2,SEQUENCE(ROWS(t))))))
I7I7=LET(t,FILTER(ALL!$K:$K,ALL!$J:$J=A7),MAX(FREQUENCY(IF(t=I2,SEQUENCE(ROWS(t))),IF(t<>I2,SEQUENCE(ROWS(t))))))
I8I8=LET(t,FILTER(ALL!$K:$K,(ALL!$J:$J=A7)*(ALL!$E:$E=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=F2,s),IF(t<>F2,s))))
I9I9=LET(t,FILTER(ALL!$K:$K,(ALL!$J:$J=A7)*(ALL!$E:$E=B6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=I2,s),IF(t<>I2,s))))
L4L4=LET(t,ALL!L:L,s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>0,s),IF(t=0,s))))
L5L5=LET(t,FILTER(ALL!L:L,ALL!$E:$E="H"),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
L6L6=LET(t,FILTER(ALL!L:L,ALL!E:E="A"),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
L7L7=LET(t,FILTER(ALL!$L:$L,ALL!$J:$J="League"),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
L8L8=LET(t,FILTER(ALL!$L:$L,(ALL!$J:$J="League")*(ALL!$E:$E="H")),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
L9L9=LET(t,FILTER(ALL!$L:$L,(ALL!$J:$J="League")*(ALL!$E:$E="A")),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
O4O4=LET(t,ALL!$M:$M,s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>0,s),IF(t=0,s))))
O5O5=LET(t,FILTER(ALL!M:M,ALL!$E:$E="H"),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
O6O6=LET(t,FILTER(ALL!M:M,ALL!E:E="A"),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
O7O7=LET(t,FILTER(ALL!$M:$M,ALL!$J:$J="League"),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
O8O8=LET(t,FILTER(ALL!$M:$M,(ALL!$J:$J="League")*(ALL!$E:$E="H")),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
O9O9=LET(t,FILTER(ALL!$M:$M,(ALL!$J:$J="League")*(ALL!$E:$E="A")),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
C12C12=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>I2,s),IF(t=I2,s))))
C13C13=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$E:$E=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>I2,s),IF(t=I2,s))))
C14C14=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$E:$E=B6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>I2,s),IF(t=I2,s))))
C15C15=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J=A7)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>I2,s),IF(t=I2,s))))
C16C16=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J=A7)*(ALL!$E:$E=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>I2,s),IF(t=I2,s))))
C17C17=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J=A7)*(ALL!$E:$E=B6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>I2,s),IF(t=I2,s))))
F12F12=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>F2,s),IF(t=F2,s))))
F13F13=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$E:$E=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>F2,s),IF(t=F2,s))))
F14F14=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$E:$E=B6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>F2,s),IF(t=F2,s))))
F15F15=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J=A7)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>F2,s),IF(t=F2,s))))
F16F16=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J=A7)*(ALL!$E:$E=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>F2,s),IF(t=F2,s))))
F17F17=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J=A7)*(ALL!$E:$E=B6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>F2,s),IF(t=F2,s))))
I12I12=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>C2,s),IF(t=C2,s))))
I13I13=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$E:$E=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>C2,s),IF(t=C2,s))))
I14I14=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$E:$E=B6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>C2,s),IF(t=C2,s))))
I15I15=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J=A7)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>C2,s),IF(t=C2,s))))
I16I16=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J=A7)*(ALL!$E:$E=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>C2,s),IF(t=C2,s))))
I17I17=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J=A7)*(ALL!$E:$E=B6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>C2,s),IF(t=C2,s))))
L12L12=LET(t,FILTER(ALL!$M:$M,(ALL!$M:$M<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
L13L13=LET(t,FILTER(ALL!$M:$M,(ALL!$M:$M<>"")*(ALL!$E:$E="H")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
L14L14=LET(t,FILTER(ALL!$M:$M,(ALL!$M:$M<>"")*(ALL!$E:$E="A")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
L15L15=LET(t,FILTER(ALL!$M:$M,(ALL!$M:$M<>"")*(ALL!$J:$J="League")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
L16L16=LET(t,FILTER(ALL!$M:$M,(ALL!$M:$M<>"")*(ALL!$J:$J="League")*(ALL!$E:$E="H")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
L17L17=LET(t,FILTER(ALL!$M:$M,(ALL!$M:$M<>"")*(ALL!$J:$J="League")*(ALL!$E:$E="A")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
O12O12=LET(t,FILTER(ALL!$L:$L,(ALL!$L:$L<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
O13O13=LET(t,FILTER(ALL!$L:$L,(ALL!$L:$L<>"")*(ALL!$E:$E="H")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
O14O14=LET(t,FILTER(ALL!$L:$L,(ALL!$L:$L<>"")*(ALL!$E:$E="A")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
O15O15=LET(t,FILTER(ALL!$L:$L,(ALL!$L:$L<>"")*(ALL!$J:$J="League")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
O16O16=LET(t,FILTER(ALL!$L:$L,(ALL!$L:$L<>"")*(ALL!$J:$J="League")*(ALL!$E:$E="H")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
O17O17=LET(t,FILTER(ALL!$L:$L,(ALL!$L:$L<>"")*(ALL!$J:$J="League")*(ALL!$E:$E="A")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
 
Upvote 0
I haven't been able to reproduce the odd cell referencing behavior, but suspect it's due to merged cells. Although after unmerging them and confirming that the desired lookup value is in the correct cells, I don't understand why the formula would not work. At times, I've had formulas that seem to not compute correctly, and out of desperation have copied nearly the entire formula to the clipboard, deleted the cell contents...then repasted the bulk of the formula, and manually enter the few characters before/after to complete it...and discovered that it then works correctly. But I don't know why.

I still do not follow the column A idea. You have All, League, Matches, and lge in that column. Going row-by-row, how would you know which of those to apply to your match-type filter? You have how many different categories there?...I suppose the data table might show many: league matchups, and maybe tournaments with various names? But in the summary table, don't you have just two: either League or All?
 
Upvote 0
Yes, that's all it is. It's either all games or it's League games. Just two variables.
You wouldn't have consecutive Cup games, they are too far apart and the data would not make any sense anyway. Think of it like this. You've got a team in the bottom division going great guns, haven't lost for 30 games. They then get drawn away at Manchester City and unsurprisingly they lose. So their long unbeaten is over but not if you are counting just League games, then the run continues.

Column A can be safely ignored, the only date that matters within in it is A7 and I can move that if its a problem? The boxes could be set up differently and given a heading League or All.
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,173
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top