Removing the need of a helper column

Marvo

Board Regular
Joined
Nov 27, 2023
Messages
182
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: 40
Okay, that helps. So column A’s use by the formula is straightforward. For any given row, if the corresponding (same row) value in A is “all”, then use all (i.e., don’t apply a filter to the data for the match type criterion), otherwise apply the filter for “league”.
 
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Yes. I think its easier than you think.

It could be set up like this, All Matches together and then just League.

Cobblers.xlsm
ABCDEFGHIJKLMNOPQ
1ALL-TIME RECORDS
2ALL MATCHESWWinsDDrawsLDefeatsGFGA
3TOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATE
4ConsecutiveALL11128/12/1899621983 & 2011741972, 1985, 1988 & 199228103/10/190829128/12/1965
5H14116/04/19275121/03/1981621985 & 200254128/01/092816113/10/1900
6A622004 & 2015421913 & 199416127/10/190619127/03/195940101/09/1926
7NO LNO DNO WNO GANO GF
8Longest RunALL27123/01/201629105/02/19271921969 & 1993621910 & 19307107/04/1939
9Home33122/02/191328131/08/195711117/01/19909125/08/19236114/12/2002
10Away14113/02/201621112/04/190828127/01/19066112/04/1997721938 & 1995
11LeagueWinsDrawsDefeatsGFGA
12OnlyTOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATE
13ALL11128/12/1899621983 & 20118126/10/193528129/08/201527128/09/1965
14ConsecutiveHome1221899 & 20275121/03/1981551905, 1985, 1999, 2002 & 201675128/12/192619113/10/1900
15Away8121/11/20155106/09/199415127/10/190618127/03/195942120/02/1965
16NO LNO DNO WNO GANO GF
17ALL31128/12/201529105/02/19271821969 & 2011621930 & 19757107/04/1939
18Longest RunHome33122/02/19132621898 & 198411117/01/19909125/08/19235114/12/2002
19Way19131/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))))))
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))))))
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))))))
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))))))
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))))))
C8C8=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>I2,s),IF(t=I2,s))))
C9C9=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))))
C10C10=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))))
F8F8=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>F2,s),IF(t=F2,s))))
F9F9=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))))
F10F10=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))))
I8I8=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>C2,s),IF(t=C2,s))))
I9I9=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))))
I10I10=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))))
L8L8=LET(t,FILTER(ALL!$M:$M,(ALL!$M:$M<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
L9L9=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))))
L10L10=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))))
O8O8=LET(t,FILTER(ALL!$L:$L,(ALL!$L:$L<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
O9O9=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))))
O10O10=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))))
C13C13=LET(t,FILTER(ALL!$K:$K,ALL!$J:$J="League"),MAX(FREQUENCY(IF(t=C2,SEQUENCE(ROWS(t))),IF(t<>C2,SEQUENCE(ROWS(t))))))
C14C14=LET(t,FILTER(ALL!$K:$K,(ALL!$J:$J=A11)*(ALL!$E:$E=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=C2,s),IF(t<>"W",s))))
C15C15=LET(t,FILTER(ALL!$K:$K,(ALL!$J:$J=A11)*(ALL!$E:$E=B6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=C2,s),IF(t<>C2,s))))
F13F13=LET(t,FILTER(ALL!$K:$K,ALL!$J:$J=A11),MAX(FREQUENCY(IF(t=F2,SEQUENCE(ROWS(t))),IF(t<>F2,SEQUENCE(ROWS(t))))))
F14F14=LET(t,FILTER(ALL!$K:$K,(ALL!$J:$J=A11)*(ALL!$E:$E=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=F2,s),IF(t<>F2,s))))
F15F15=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))))
I13I13=LET(t,FILTER(ALL!$K:$K,ALL!$J:$J=A11),MAX(FREQUENCY(IF(t=I2,SEQUENCE(ROWS(t))),IF(t<>I2,SEQUENCE(ROWS(t))))))
I14I14=LET(t,FILTER(ALL!$K:$K,(ALL!$J:$J=A11)*(ALL!$E:$E=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=F2,s),IF(t<>F2,s))))
I15I15=LET(t,FILTER(ALL!$K:$K,(ALL!$J:$J=A11)*(ALL!$E:$E=B6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=I2,s),IF(t<>I2,s))))
L13L13=LET(t,FILTER(ALL!$L:$L,ALL!$J:$J="League"),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
L14L14=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))))))
L15L15=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))))))
O13O13=LET(t,FILTER(ALL!$M:$M,ALL!$J:$J="League"),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
O14O14=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))))))
O15O15=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))))))
C17C17=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J=A11)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>I2,s),IF(t=I2,s))))
C18C18=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J=A11)*(ALL!$E:$E=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>I2,s),IF(t=I2,s))))
C19C19=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J=A11)*(ALL!$E:$E=B6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>I2,s),IF(t=I2,s))))
F17F17=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J=A11)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>F2,s),IF(t=F2,s))))
F18F18=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J=A11)*(ALL!$E:$E=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>F2,s),IF(t=F2,s))))
F19F19=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J=A11)*(ALL!$E:$E=B6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>F2,s),IF(t=F2,s))))
I17I17=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J=A11)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>C2,s),IF(t=C2,s))))
I18I18=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J=A11)*(ALL!$E:$E=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>C2,s),IF(t=C2,s))))
I19I19=LET(t,FILTER(ALL!$K:$K,(ALL!$K:$K<>"")*(ALL!$J:$J=A11)*(ALL!$E:$E=B6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>C2,s),IF(t=C2,s))))
L17L17=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))))
L18L18=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))))
L19L19=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))))
O17O17=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))))
O18O18=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))))
O19O19=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
The previous layout would be easier to implement because the “only W’s” versus “no L’s” versions of the formula are different. So keeping Consecutive and Longest Runs in separate groupings requires less switching between formula types. The only issue I see is the streak dates are not easily determined using the current formulas.
 
Upvote 0
I'll put it back to the former.

In the search box you can look for as many consecutive or longest runs you like. So logic says there must be a way there because it works.

I have an old copy somewhere which had working VBA but somewhere along the line cells/rows/columns got moved and it stopped working. Do you want me to have a look for it, maybe it could be edited to do the job now. It's all gobblegook to me.
 
Upvote 0
I discovered one issue with the formula you've been using. When the calculation type is a "NO" type (e.g., Longest Run with NO Draws), and the maximum run sought involves the first n items in the "outcome" column (whether that is the W/L/D results column or a GF or GA column), the formula will report a run of n+1. The reason is the formula uses a full column reference, so the column headers are included in the comparison logic. And since none of the headers are the same as the value that terminates the run (i.e., the results column headings are not W, L, D, 0, or some other number), the formula will consider that heading as part of the run. Typically this won't produce an incorrect run length because the longest run is found somewhere else in the list, far away for the first row. But to make the formula(s) more robust, something like this avoids the problem altogether:
Excel Formula:
=LET(t,FILTER($K2:$K10000,($K2:$K10000<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>"D",s),IF(t="D",s))))
An added benefit is that the full column reference is avoided, which should help with performance.

If you are interested in a single formula (albeit many parts) solution, the following formula determines where the upper and lower parts of the summary table are based on where the words "Consecutives" and "Longest Runs" are found. And then based on those row indexes, the outcomes involved in determining streaks reported by different sections of the table are determined from the first column subheaders where we find "W", "D", "L", "GF", "GA"...and all of the "NO" versions. So, other than adjusting the first few variables to adapt the formula to your worksheet(s), no further editing should be needed. But I don't know how this might perform on a much larger data set. The formula delivers max streak length, number of times, and dates for the streaks for upper and lower sections without any helper cells. The formula is copied into only the first cells in each sub-block column (e.g., C22:C27 and C30:C35, then corresponding cells in column F, and so on across the table). To make this formula work with the GF and GA columns, inside the formula, numeric scores for GF and GA are converted into letter codes, either "N" for nil, or "S" for something other than 0. In this way, the same algorithm can be used for determining streak lengths.

ALL-TIME RECORDS
CONSECUTIVESWWinsDDrawsLDefeatsGFGoals ForGAGoals Against
TOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATE
ALLALL7110/03/20242114/02/2024222024, 03/03/202422127/02/202415103/03/2024
H522024, 29/02/20241113/02/20242103/02/202413129/02/20247102/03/2024
A6110/03/2024132024, 2024, 27/02/20243111/02/202411127/02/20249103/03/2024
LeagueALL5126/02/20242114/02/20242103/02/202420127/02/202414103/03/2024
H6104/03/20241113/02/20242103/02/202413104/03/20246129/02/2024
A3126/02/2024132024, 2024, 27/02/20242107/02/202410127/02/20249103/03/2024
LONGEST RUNSNO LNO DNO WNO GANO GF
TOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATE
ALLALL9127/02/20241222024, 10/03/2024242024, 2024, 2024, 03/03/20242105/03/2024142024, 2024, 2024, 02/03/2024
H7115/02/20249104/03/20242103/02/2024132024, 2024, 04/03/2024122024, 02/03/2024
A6110/03/20249110/03/20243111/02/2024122024, 05/03/2024122024, 28/02/2024
LeagueALL9127/02/202410112/02/2024232024, 2024, 28/02/2024142024, 2024, 2024, 04/03/2024132024, 2024, 28/02/2024
H622024, 04/03/20248104/03/20242103/02/2024132024, 2024, 04/03/20241103/02/2024
A5127/02/20244112/02/2024232024, 2024, 28/02/20241117/02/2024122024, 28/02/2024

Excel Formula:
=LET(loc, $B22, src, All!$B$2:$M$10000, t, $A$20:$Q$35, a, INDEX(t, , 1),
idxCon, MATCH("Consecutives", a, 0), idxLR, MATCH("Longest Runs", a, 0), curridx, ROW() - ROW(INDEX(a, 1)) + 1,
dyna, INDEX(a, SEQUENCE(curridx)),
mt, INDEX(dyna, XMATCH(TRUE, dyna <> "", 0, -1)),
ct, IF(curridx >= idxLR, "Longest Runs", "Consecutives"),
oc_input, IF(curridx >= idxLR, INDEX(t, idxLR, COLUMN()), INDEX(t, idxCon, COLUMN())),
oc, XLOOKUP(oc_input, {"W","NO L","D","NO D","L","NO W","GF","NO GA","GA","NO GF"}, {"W","L","D","D","L","W","S","S","S","S"}),
sect, IFS(OR(oc_input = {"W","D","L","NO L","NO D","NO W"}), 1, OR(oc_input = {"GF","NO GF"}), 2, OR(oc_input = {"GA","NO GA"}), 3),
fsrc_cols, CHOOSE(sect, {1,4,9,10}, {1,4,9,11}, {1,4,9,12}),
fsrc, FILTER(src, INDEX(src, , 10) <> ""),
data, INDEX(fsrc, SEQUENCE(ROWS(fsrc)), fsrc_cols),
allr_data, SEQUENCE(ROWS(data), , 1, 0),
loc_ary, IF(loc = "All", allr_data, INDEX(data, , 2) = loc),
mt_ary, IF(mt = "All", allr_data, INDEX(data, , 3) = mt),
fd, FILTER(INDEX(data, SEQUENCE(ROWS(data)), {1,4}), loc_ary * mt_ary),
allr_fd, SEQUENCE(ROWS(fd)),
oc_col, IFS(sect = 1, INDEX(fd, , 2), OR(sect = 2, sect = 3), IF(INDEX(fd, , 2) > 0, "S", "N")),
revfd, IF(SWITCH(ct, "Consecutives", oc_col = oc, "Longest Runs", oc_col <> oc), CHOOSE({1,2}, INDEX(fd, allr_fd, 1), oc_col), {"|","|"}),
rstr, CONCAT(INDEX(revfd, , 2)),
rary, IFERROR(FILTERXML("<x><y>" & SUBSTITUTE(rstr, "|", "</y><y>") & "</y></x>", "//y"), ""),
ls, LEN(rary),
maxs, MAX(ls),
nmaxs, SUM(--(ls = maxs)),
csum_ls, MMULT(--(SEQUENCE(1, ROWS(ls)) <= SEQUENCE(ROWS(ls))), ls),
idxs_ls, FILTER(SEQUENCE(ROWS(ls)), ls = maxs),
idxs_dts, INDEX(csum_ls, idxs_ls),
seds, INDEX(FILTER(INDEX(revfd, , 1), INDEX(revfd, , 1) <> "|"), idxs_dts),
dt_comp, TEXTJOIN(", ", , IFERROR(TEXT(INDEX(seds, SEQUENCE(nmaxs - 1)), "yyyy"), ""), TEXT(INDEX(seds, nmaxs), "dd/mm/yyyy")),
finres, IF(maxs = 0, {"none","",""}, CHOOSE({1,2,3}, maxs, nmaxs, dt_comp)), finres)

Here are the data used in the above minisheet:
MrExcel_20240321 (version 1) (version 1).xlsx
ABEJKLM
1DateLocation (B)Match Type (A)Result (C)GFGA
21-FebALeagueW61
32-FebHLeagueL13
43-FebHLeagueL02
54-FebHLeagueW92
65-FebALeagueL05
76-FebHLeagueW63
87-FebALeagueL24
98-FebHLeagueW54
109-FebHLeagueW50
1110-FebHFA CupW75
1211-FebAFA CupL13
1312-FebALeagueW65
1413-FebHLeagueD11
1514-FebALeagueD22
1615-FebHLeagueW10
1716-FebHLeagueL34
1817-FebALeagueW50
1918-FebALeagueL12
2019-FebHLeagueW75
2120-FebHLeagueW92
2221-FebALeagueD44
2322-FebHLeagueW82
2423-FebALeagueW21
2524-FebHLeagueW61
2625-FebALeagueW85
2726-FebALeagueW93
2827-FebALeagueD11
2928-FebALeagueL02
3029-FebHLeagueW65
311-MarALeagueW81
322-MarHFA CupL01
333-MarALeagueL13
344-MarHLeagueW10
355-MarAFA CupW60
366-MarAFA CupW81
377-MarAFA CupW85
388-MarAFA CupW85
399-MarAFA CupW53
4010-MarAFA CupW95
All
 
Upvote 0
Thank you. I've utilised the first formula, just changed it to 7000 as that is going to take me way past my personal sell-by-date and it will then fall on someone else to carry the torch.

The larger formula is tricky for me as my All-Time record boxes don't use any helper columns (I don't think), they are in the search boxes.

However I would like to put all your hard work to good use so in the mini-sheet, where does the formula go? Is it C4?

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
18SEARCH BOX (Enter amount of games required under TOTAL and date of most recent record will appear and how many times its happened)
19CONSECUTIVESWD LGFGA
20TOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATE
21ALL          
22ALLH          
23A          
24ALL          
25LEAGUEH          
26A          
27LONGEST RUNSNO LNO DNO WNO GANO GF
28TOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATETOTALTIMESSTART/END DATE
29ALL          
30ALLH          
31A          
32ALL          
33LEAGUEH          
34A          
Records
Cell Formulas
RangeFormula
C4C4=LET(t,ALL!$K2:$K7000,s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=$C$2,s),IF(t<>$C$2,s))))
C5,I5,F5C5=LET(t,FILTER(ALL!$K2:$K7000,ALL!$E2:$E7000=$B$5),MAX(FREQUENCY(IF(t=C2,SEQUENCE(ROWS(t))),IF(t<>C2,SEQUENCE(ROWS(t))))))
C6,I6,F6C6=LET(t,FILTER(ALL!$K2:$K7000,ALL!$E2:$E7000=$B$6),MAX(FREQUENCY(IF(t=C2,SEQUENCE(ROWS(t))),IF(t<>C2,SEQUENCE(ROWS(t))))))
C7,I7,F7C7=LET(t,FILTER(ALL!$K2:$K7000,ALL!$J2:$J7000=$A$7),MAX(FREQUENCY(IF(t=C2,SEQUENCE(ROWS(t))),IF(t<>C2,SEQUENCE(ROWS(t))))))
C8C8=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$J2:$J7000=$A$7)*(ALL!$E2:$E7000=$B$5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=C2,s),IF(t<>"W",s))))
C9,I9C9=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$J2:$J7000=$A$7)*(ALL!$E2:$E7000=$B$6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=C2,s),IF(t<>C2,s))))
F4F4=LET(t,ALL!$K2:$K7000,s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=F2,s),IF(t<>F2,s))))
F8F8=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$J2:$J7000=$A$7)*(ALL!$E2:$E7000=$B$5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=F2,s),IF(t<>F2,s))))
F9F9=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$J2:$J7000=$A$7)*(ALL!$E2:$E7000=$B$6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t="D",s),IF(t<>"D",s))))
I4I4=LET(t,ALL!K2:K7000,s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=I2,s),IF(t<>I2,s))))
I8I8=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$J2:$J7000=$A$7)*(ALL!$E2:$E7000=$B$5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=F2,s),IF(t<>F2,s))))
L4L4=LET(t,ALL!L2:L7000,s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>0,s),IF(t=0,s))))
L5L5=LET(t,FILTER(ALL!$L$2:$L$7000,ALL!$E2:$E7000=$B$5),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
L6L6=LET(t,FILTER(ALL!$L$2:$L$7000,ALL!$E$2:$E$7000=$B$6),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!$L2:$L7000,(ALL!$J2:$J7000=$A$7)*(ALL!$E2:$E7000=$B$5)),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
L9L9=LET(t,FILTER(ALL!$L2:$L7000,(ALL!$J2:$J7000=$A$7)*(ALL!$E2:$E7000=$B$6)),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
O4O4=LET(t,ALL!$M2:$M7000,s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>0,s),IF(t=0,s))))
O5O5=LET(t,FILTER(ALL!M2:M7000,ALL!$E2:$E7000=$B$5),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
O6O6=LET(t,FILTER(ALL!M2:M7000,ALL!E2:E7000=$B$6),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
O7O7=LET(t,FILTER(ALL!$M2:$M7000,ALL!$J2:$J7000=$A$7),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
O8O8=LET(t,FILTER(ALL!$M2:$M7000,(ALL!$J2:$J7000=$A$7)*(ALL!$E2:$E7000=$B$5)),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
O9O9=LET(t,FILTER(ALL!$M2:$M7000,(ALL!$J2:$J7000=$A$7)*(ALL!$E2:$E7000=$B$6)),MAX(FREQUENCY(IF(t<>0,SEQUENCE(ROWS(t))),IF(t=0,SEQUENCE(ROWS(t))))))
C12C12=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$K2:$K7000<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>I2,s),IF(t=I2,s))))
C13C13=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$K2:$K7000<>"")*(ALL!$E2:$E7000=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>I2,s),IF(t=I2,s))))
C14C14=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$K2:$K7000<>"")*(ALL!$E2:$E7000=B6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>I2,s),IF(t=I2,s))))
C15C15=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$K2:$K7000<>"")*(ALL!$J2:$J7000=A7)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>I2,s),IF(t=I2,s))))
C16C16=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$K2:$K7000<>"")*(ALL!$J2:$J7000=A7)*(ALL!$E2:$E7000=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>I2,s),IF(t=I2,s))))
C17C17=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$K2:$K7000<>"")*(ALL!$J2:$J7000=A7)*(ALL!$E2:$E7000=B6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>I2,s),IF(t=I2,s))))
F12F12=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$K2:$K7000<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>F2,s),IF(t=F2,s))))
F13F13=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$K2:$K7000<>"")*(ALL!$E2:$E7000=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>F2,s),IF(t=F2,s))))
F14F14=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$K2:$K7000<>"")*(ALL!$E2:$E7000=B6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>F2,s),IF(t=F2,s))))
F15F15=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$K2:$K7000<>"")*(ALL!$J2:$J7000=A7)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>F2,s),IF(t=F2,s))))
F16F16=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$K2:$K7000<>"")*(ALL!$J2:$J7000=A7)*(ALL!$E2:$E7000=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>F2,s),IF(t=F2,s))))
F17F17=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$K2:$K7000<>"")*(ALL!$J2:$J7000=A7)*(ALL!$E2:$E7000=B6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>F2,s),IF(t=F2,s))))
I12I12=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$K2:$K7000<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>C2,s),IF(t=C2,s))))
I13I13=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$K2:$K7000<>"")*(ALL!$E2:$E7000=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>C2,s),IF(t=C2,s))))
I14I14=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$K2:$K7000<>"")*(ALL!$E2:$E7000=B6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>C2,s),IF(t=C2,s))))
I15I15=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$K2:$K7000<>"")*(ALL!$J2:$J7000=A7)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>C2,s),IF(t=C2,s))))
I16I16=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$K2:$K7000<>"")*(ALL!$J2:$J7000=A7)*(ALL!$E2:$E7000=B5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>C2,s),IF(t=C2,s))))
I17I17=LET(t,FILTER(ALL!$K2:$K7000,(ALL!$K2:$K7000<>"")*(ALL!$J2:$J7000=A7)*(ALL!$E2:$E7000=B6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t<>C2,s),IF(t=C2,s))))
L12L12=LET(t,FILTER(ALL!$M2:$M7000,(ALL!$M2:$M7000<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
L13L13=LET(t,FILTER(ALL!$M2:$M7000,(ALL!$M2:$M7000<>"")*(ALL!$E2:$E7000=$B$5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
L14L14=LET(t,FILTER(ALL!$M2:$M7000,(ALL!$M2:$M7000<>"")*(ALL!$E2:$E7000=$B$6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
L15L15=LET(t,FILTER(ALL!$M2:$M7000,(ALL!$M2:$M7000<>"")*(ALL!$J2:$J7000=$A$7)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
L16L16=LET(t,FILTER(ALL!$M2:$M7000,(ALL!$M2:$M7000<>"")*(ALL!$J2:$J7000=$A$7)*(ALL!$E2:$E7000=$B$5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
L17L17=LET(t,FILTER(ALL!$M2:$M7000,(ALL!$M2:$M7000<>"")*(ALL!$J2:$J7000=$A$7)*(ALL!$E2:$E7000=$B$6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
O12O12=LET(t,FILTER(ALL!$L2:$L7000,(ALL!$L2:$L7000<>"")),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
O13O13=LET(t,FILTER(ALL!$L2:$L7000,(ALL!$L2:$L7000<>"")*(ALL!$E2:$E7000=$B$5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
O14O14=LET(t,FILTER(ALL!$L2:$L7000,(ALL!$L2:$L7000<>"")*(ALL!$E2:$E7000=$B$6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
O15O15=LET(t,FILTER(ALL!$L2:$L7000,(ALL!$L2:$L7000<>"")*(ALL!$J2:$J7000=$A$7)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
O16O16=LET(t,FILTER(ALL!$L2:$L7000,(ALL!$L2:$L7000<>"")*(ALL!$J2:$J7000=$A$7)*(ALL!$E2:$E7000=$B$5)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
O17O17=LET(t,FILTER(ALL!$L2:$L7000,(ALL!$L2:$L7000<>"")*(ALL!$J2:$J7000=$A$7)*(ALL!$E2:$E7000=$B$6)),s,SEQUENCE(ROWS(t)),MAX(FREQUENCY(IF(t=0,s),IF(t<>0,s))))
D21D21=IF(C21="","",COUNTIFS(ALL!$AH$2:$AH$5558,C21))
E21E21=IF(C21="","",LET(XL,XLOOKUP(C21,ALL!$AH$2:$AH$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
D22D22=IF(C22="","",COUNTIFS(ALL!$E$2:$E$5558,$B$22,ALL!$AM$2:$AM$5558,C22))
E22E22=IF(C22="","",LET(XL,XLOOKUP(C22,ALL!$AM$2:$AM$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
D23D23=IF(C23="","",COUNTIFS(ALL!$E$2:$E$5558,$B$23,ALL!$AR$2:$AR$5558,C23))
E23E23=IF(C23="","",LET(XL,XLOOKUP(C23,ALL!$AR$2:$AR$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
D24D24=IF(C24="","",COUNTIFS(ALL!$J$2:$J$5558,$A$25,ALL!$AW$2:$AW$5558,C24))
E24E24=IF(C24="","",LET(XL,XLOOKUP(C24,ALL!$AW$2:$AW$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
D25D25=IF(C25="","",COUNTIFS(ALL!$J$2:$J$5558,$A$25,ALL!$E$2:$E$5558,$B$25,ALL!$BB$2:$BB$5558,C25))
E25E25=IF(C25="","",LET(XL,XLOOKUP(C25,ALL!$BB$2:$BB$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
D26D26=IF(C26="","",COUNTIFS(ALL!$J$2:$J$5558,$A$25,ALL!$E$2:$E$5558,$B$26,ALL!$BG$2:$BG$5558,C26))
E26E26=IF(C26="","",LET(XL,XLOOKUP(C26,ALL!$BG$2:$BG$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
G21G21=IF(F21="","",COUNTIFS(ALL!$AI$2:$AI$5558,F21))
H21H21=IF(F21="","",LET(XL,XLOOKUP(F21,ALL!$AI$2:$AI$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
G22G22=IF(F22="","",COUNTIFS(ALL!$E$2:$E$5558,$B$22,ALL!$AN$2:$AN$5558,F22))
H22H22=IF(F22="","",LET(XL,XLOOKUP(F22,ALL!$AN$2:$AN$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
G23G23=IF(F23="","",COUNTIFS(ALL!$E$2:$E$5558,$B$23,ALL!$AS$2:$AS$5558,F23))
H23H23=IF(F23="","",LET(XL,XLOOKUP(F23,ALL!$AS$2:$AS$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
G24G24=IF(F24="","",COUNTIFS(ALL!$J$2:$J$5558,$A$25,ALL!$AX$2:$AX$5558,F24))
H24H24=IF(F24="","",LET(XL,XLOOKUP(F24,ALL!$AX$2:$AX$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
G25G25=IF(F25="","",COUNTIFS(ALL!$J2:$J5558,A25,ALL!$E2:$E5558,B25,ALL!$BC$2:$BC$5558,F25))
H25H25=IF(F25="","",LET(XL,XLOOKUP(F25,ALL!$BC$2:$BC$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
G26G26=IF(F26="","",COUNTIFS(ALL!$J$2:$J$5558,$A$25,ALL!$E$2:$E$5558,$B$26,ALL!$BH$2:$BH$5558,F26))
H26H26=IF(F26="","",LET(XL,XLOOKUP(F26,ALL!$BH$2:$BH$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
J21J21=IF(I21="","",COUNTIFS(ALL!$AJ$2:$AJ$5558,I21))
K21K21=IF(I21="","",LET(XL,XLOOKUP(I21,ALL!$AJ$2:$AJ$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
J22J22=IF(I22="","",COUNTIFS(ALL!$E$2:$E$5558,$B$22,ALL!$AO$2:$AO$5558,I22))
K22K22=IF(I22="","",LET(XL,XLOOKUP(I22,ALL!$AO$2:$AO$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
J23J23=IF(I23="","",COUNTIFS(ALL!$E$2:$E$5558,$B$23,ALL!$AT$2:$AT$5558,I23))
K23K23=IF(I23="","",LET(XL,XLOOKUP(I23,ALL!$AT$2:$AT$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
J24J24=IF(I24="","",COUNTIFS(ALL!$J$2:$J$5558,$A$25,ALL!$AY$2:$AY$5558,I24))
K24K24=IF(I24="","",LET(XL,XLOOKUP(I24,ALL!$AY$2:$AY$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
J25J25=IF(I25="","",COUNTIFS(ALL!$J2:$J5558,$A$25,ALL!$E2:$E5558,$B$25,ALL!$BD$2:$BD$5558,I25))
K25K25=IF(I25="","",LET(XL,XLOOKUP(I25,ALL!$BD$2:$BD$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
J26J26=IF(I26="","",COUNTIFS(ALL!$J$2:$J$5558,$A$25,ALL!$E$2:$E$5558,$B$26,ALL!$BI$2:$BI$5558,I26))
K26K26=IF(I26="","",LET(XL,XLOOKUP(I26,ALL!$BI$2:$BI$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
M21M21=IF(L21="","",COUNTIFS(ALL!$AK$2:$AK$5558,L21))
N21N21=IF(L21="","",LET(XL,XLOOKUP(L21,ALL!$AK$2:$AK$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
M22M22=IF(L22="","",COUNTIFS(ALL!$E$2:$E$5558,$B$22,ALL!$AP$2:$AP$5558,L22))
N22N22=IF(L22="","",LET(XL,XLOOKUP(L22,ALL!$AP$2:$AP$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
M23M23=IF(L23="","",COUNTIFS(ALL!$E$2:$E$5558,$B$23,ALL!$AU$2:$AU$5558,L23))
N23N23=IF(L23="","",LET(XL,XLOOKUP(L23,ALL!$AU$2:$AU$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
M24M24=IF(L24="","",COUNTIFS(ALL!$J$2:$J$5558,$A$25,ALL!$AZ$2:$AZ$5558,L24))
N24N24=IF(L24="","",LET(XL,XLOOKUP(L24,ALL!$AZ$2:$AZ$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
M25M25=IF(L25="","",COUNTIFS(ALL!$J2:$J5558,$A$25,ALL!$E2:$E5558,$B$25,ALL!$BE$2:$BE$5558,L25))
N25N25=IF(L25="","",LET(XL,XLOOKUP(L25,ALL!$BE$2:$BE$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
M26M26=IF(L26="","",COUNTIFS(ALL!$J$2:$J$5558,$A$25,ALL!$E$2:$E$5558,$B$26,ALL!$BJ$2:$BJ$5558,L26))
N26N26=IF(L26="","",LET(XL,XLOOKUP(L26,ALL!$BJ$2:$BJ$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
P21P21=IF(O21="","",COUNTIFS(ALL!$AL$2:$AL$5558,O21))
Q21Q21=IF(O21="","",LET(XL,XLOOKUP(O21,ALL!$AL$2:$AL$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
P22P22=IF(O22="","",COUNTIFS(ALL!$E$2:$E$5558,$B$22,ALL!$AQ$2:$AQ$5558,O22))
Q22Q22=IF(O22="","",LET(XL,XLOOKUP(O22,ALL!$AQ$2:$AQ$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
P23P23=IF(O23="","",COUNTIFS(ALL!$E$2:$E$5558,$B$23,ALL!$AV$2:$AV$5558,O23))
Q23Q23=IF(O23="","",LET(XL,XLOOKUP(O23,ALL!$AV$2:$AV$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
P24P24=IF(O24="","",COUNTIFS(ALL!$J$2:$J$5558,$A$25,ALL!$BA$2:$BA$5558,O24))
Q24Q24=IF(O24="","",LET(XL,XLOOKUP(O24,ALL!$BA$2:$BA$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
P25P25=IF(O25="","",COUNTIFS(ALL!$J2:$J5558,$A$25,ALL!$E2:$E5558,$B$25,ALL!$BF$2:$BF$5558,O25))
Q25Q25=IF(O25="","",LET(XL,XLOOKUP(O25,ALL!$BF$2:$BF$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
P26P26=IF(O26="","",COUNTIFS(ALL!$J$2:$J$5558,$A$25,ALL!$E$2:$E$5558,$B$26,ALL!$BK$2:$BK$5558,O26))
Q26Q26=IF(O26="","",LET(XL,XLOOKUP(O26,ALL!$BK$2:$BK$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
D29D29=IF(C29="","",COUNTIFS(ALL!$BL$2:$BL$5558,C29))
E29E29=IF(C29="","",LET(XL,XLOOKUP(C29,ALL!$BL$2:$BL$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
D30D30=IF(C30="","",COUNTIFS(ALL!$E$2:$E$5558,$B$30,ALL!$BQ$2:$BQ$5558,C30))
E30E30=IF(C30="","",LET(XL,XLOOKUP(C30,ALL!$BQ$2:$BQ$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
D31D31=IF(C31="","",COUNTIFS(ALL!$E$2:$E$5558,$B$31,ALL!$BV$2:$BV$5558,C31))
E31E31=IF(C31="","",LET(XL,XLOOKUP(C31,ALL!$BV$2:$BV$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
D32D32=IF(C32="","",COUNTIFS(ALL!$J$2:$J$5558,$A$33,ALL!$CA$2:$CA$5558,C32))
E32E32=IF(C32="","",LET(XL,XLOOKUP(C32,ALL!$CA$2:$CA$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
D33D33=IF(C33="","",COUNTIFS(ALL!$J$2:$J$5558,$A$33,ALL!$E$2:$E$5558,$B$33,ALL!$CF$2:$CF$5558,C33))
E33E33=IF(C33="","",LET(XL,XLOOKUP(C33,ALL!$CF$2:$CF$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
D34D34=IF(C34="","",COUNTIFS(ALL!$J$2:$J$5558,$A$33,ALL!$E$2:$E$5558,$B$34,ALL!$CK$2:$CK$5558,C34))
E34E34=IF(C34="","",LET(XL,XLOOKUP(C34,ALL!$CK$2:$CK$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
G29G29=IF(F29="","",COUNTIFS(ALL!$BM$2:$BM$5558,F29))
H29H29=IF(F29="","",LET(XL,XLOOKUP(F29,ALL!$BM$2:$BM$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
G30G30=IF(F30="","",COUNTIFS(ALL!$E$2:$E$5558,$B$30,ALL!$BR$2:$BR$5558,F30))
H30H30=IF(F30="","",LET(XL,XLOOKUP(F30,ALL!$BR$2:$BR$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
G31G31=IF(F31="","",COUNTIFS(ALL!$E$2:$E$5558,$B$31,ALL!$BW$2:$BW$5558,F31))
H31H31=IF(F31="","",LET(XL,XLOOKUP(F31,ALL!$BW$2:$BW$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
G32G32=IF(F32="","",COUNTIFS(ALL!$J$2:$J$5558,$A$33,ALL!$CB$2:$CB$5558,F32))
H32H32=IF(F32="","",LET(XL,XLOOKUP(F32,ALL!$BC$2:$CB$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
G33G33=IF(F33="","",COUNTIFS(ALL!$J$2:$J$5558,$A$33,ALL!$E$2:$E$5558,$B$33,ALL!$CG$2:$CG$5558,F33))
H33H33=IF(F33="","",LET(XL,XLOOKUP(F33,ALL!$CG$2:$CG$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
G34G34=IF(F34="","",COUNTIFS(ALL!$J$2:$J$5558,$A$33,ALL!$E$2:$E$5558,$B$34,ALL!$CL$2:$CL$5558,F34))
H34H34=IF(F34="","",LET(XL,XLOOKUP(F34,ALL!$CL$2:$CL$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
J29J29=IF(I29="","",COUNTIFS(ALL!$BN$2:$BN$5558,I29))
K29K29=IF(I29="","",LET(XL,XLOOKUP(I29,ALL!$BN$2:$BN$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
J30J30=IF(I30="","",COUNTIFS(ALL!$E$2:$E$5558,$B$30,ALL!$BS$2:$BS$5558,I30))
K30K30=IF(I30="","",LET(XL,XLOOKUP(I30,ALL!$BS$2:$BS$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
J31J31=IF(I31="","",COUNTIFS(ALL!$E$2:$E$5558,$B$31,ALL!$BX$2:$BX$5558,I31))
K31K31=IF(I31="","",LET(XL,XLOOKUP(I31,ALL!$BX$2:$BX$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
J32J32=IF(I32="","",COUNTIFS(ALL!$J$2:$J$5558,$A$33,ALL!$CC$2:$CC$5558,I32))
K32K32=IF(I32="","",LET(XL,XLOOKUP(I32,ALL!$CC$2:$CC$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
J33J33=IF(I33="","",COUNTIFS(ALL!$J$2:$J$5558,$A$33,ALL!$E$2:$E$5558,$B$33,ALL!$CH$2:$CH$5558,I33))
K33K33=IF(I33="","",LET(XL,XLOOKUP(I33,ALL!$CH$2:$CH$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
J34J34=IF(I34="","",COUNTIFS(ALL!$J$2:$J$5558,$A$33,ALL!$E$2:$E$5558,$B$34,ALL!$CM$2:$CM$5558,I34))
K34K34=IF(I34="","",LET(XL,XLOOKUP(I34,ALL!$CM$2:$CM$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
M29M29=IF(L29="","",COUNTIFS(ALL!$BO$2:$BO$5558,L29))
N29N29=IF(L29="","",LET(XL,XLOOKUP(L29,ALL!$BO$2:$BO$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
M30M30=IF(L30="","",COUNTIFS(ALL!$E$2:$E$5558,$B$30,ALL!$BT$2:$BT$5558,L30))
N30N30=IF(L30="","",LET(XL,XLOOKUP(L30,ALL!$BT$2:$BT$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
M31M31=IF(L31="","",COUNTIFS(ALL!$E$2:$E$5558,$B$31,ALL!$BY$2:$BY$5558,L31))
N31N31=IF(L31="","",LET(XL,XLOOKUP(L31,ALL!$BY$2:$BY$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
M32M32=IF(L32="","",COUNTIFS(ALL!$J$2:$J$5558,$A$33,ALL!$CD$2:$CD$5558,L32))
N32N32=IF(L32="","",LET(XL,XLOOKUP(L32,ALL!$CD$2:$CD$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
M33M33=IF(L33="","",COUNTIFS(ALL!$J$2:$J$5558,$A$33,ALL!$E$2:$E$5558,$B$33,ALL!$CI$2:$CI$5558,L33))
N33N33=IF(L33="","",LET(XL,XLOOKUP(L33,ALL!$CI$2:$CI$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
M34M34=IF(L34="","",COUNTIFS(ALL!$J$2:$J$5558,$A$33,ALL!$E$2:$E$5558,$B$34,ALL!$CN$2:$CN$5558,L34))
N34N34=IF(L34="","",LET(XL,XLOOKUP(L34,ALL!$CN$2:$CN$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
P29P29=IF(O29="","",COUNTIFS(ALL!$BP$2:$BP$5558,O29))
Q29Q29=IF(O29="","",LET(XL,XLOOKUP(O29,ALL!$BP$2:$BP$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
P30P30=IF(O30="","",COUNTIFS(ALL!$E$2:$E$5558,$B$30,ALL!$BU$2:$BU$5558,O30))
Q30Q30=IF(O30="","",LET(XL,XLOOKUP(O30,ALL!$BU$2:$BU$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
P31P31=IF(O31="","",COUNTIFS(ALL!$E$2:$E$5558,$B$31,ALL!$BZ$2:$BZ$5558,O31))
Q31Q31=IF(O31="","",LET(XL,XLOOKUP(O31,ALL!$BZ$2:$BZ$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
P32P32=IF(O32="","",COUNTIFS(ALL!$J$2:$J$5558,$A$33,ALL!$CE$2:$CE$5558,O32))
Q32Q32=IF(O32="","",LET(XL,XLOOKUP(O32,ALL!$CE$2:$CE$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
P33P33=IF(O33="","",COUNTIFS(ALL!$J$2:$J$5558,$A$33,ALL!$E$2:$E$5558,$B$33,ALL!$CJ$2:$CJ$5558,O33))
Q33Q33=IF(O33="","",LET(XL,XLOOKUP(O33,ALL!$CJ$2:$CJ$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
P34P34=IF(O34="","",COUNTIFS(ALL!$J$2:$J$5558,$A$33,ALL!$E$2:$E$5558,$B$34,ALL!$CO$2:$CO$5558,O34))
Q34Q34=IF(O34="","",LET(XL,XLOOKUP(O34,ALL!$CO$2:$CO$5558,ALL!$B$2:$B$5558,,0,-1),HYPERLINK(CELL("address",XL),XL)))
 
Upvote 0
Yes, delete the results in the table, as the formula will need empty cells for spilling the result arrays. One note about column A where All or League appears: Because those words are not on every line where needed, the formula assumes that the word appears in the uppermost cell where it applies, and then the formula carries down that same value until until it changes. So you may need to delete anything else in those column A cells. And if you have vertically merged cells there, just confirm that the uppermost of those merged cells contains All or League. In the example you posted, All would be in A4, then nothing in A5:A6 (you can merge those cells I believe, and All will appear to be centered, but actually still reside in A4. The formula then "sees" A4=All and applies "All" until the value changes in A7, where "League" would appear...followed by blanks in A8:A9 (again, those three cells can be merged, and "League" will appear centered, but actually reside in A7). Then the formula would be pasted into C4:C9, C12:C17, F4:F9, F12:F17, etc...everywhere directly below the outcome codes (W, NO L, etc.).

The formula also assumes that "Consecutives" and "Longest Runs" appear on the same row as the outcome codes, so confirm those are on rows 2 and 10 (again, those appear to be vertically merged cells, but I believe the values appear the same rows as the W, D, L.... outcome codes.
 
Upvote 0
I tired to put the formula into C4 but I get the message

"We cant do that to a merged cell".

Of course C4 isn't a merged cell so.........
 
Upvote 0
That’s odd. Did you copy just the formula to the clipboard and attempt to paste it only into C4? Or did you have multiple cells selected?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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