A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi, Lee Jefferies
I would not try to do this with the final league table itself. If the table is currently being built with VLOOKUP from a dummy table, the cleaner way is to filter the dummy table first, then rank the filtered results.
If you have Excel 365 or Excel 2021, it is recommended that you use FILTER with SORTBY, and put the formula outside an Excel Table, because spilled array formulas do not work inside tables.
For example, assuming your dummy table is in A2:H91, matches played is in column C, and average points is in column E:
=LET(d,A2:H91,
f,FILTER(d,INDEX(d,,3)>=25,""),
s,SORTBY(f,INDEX(f,,5),-1),
HSTACK(SEQUENCE(ROWS(s)),s))
This removes teams with fewer than 25 matches, sorts the remaining teams by average points, and then creates fresh position numbers starting from 1. So the ranking will not have gaps.
You would just need to change the column numbers in the formula to match your actual layout. If you are on an older Excel version without FILTER, then it is suggested that you add a helper column in the dummy table to mark teams with 25+ matches, then base the lookup/ranking only on those marked rows.
Thank you for your patience in reading, I hope this information has been helpful to you.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment."
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.