Forum Discussion
Match/Index or XLookup mixed in with IF and Large
- Jul 02, 2025
=TAKE(SORT( FILTER( HSTACK(B:B,F:F), (D:D="Sector")*(E:E="Sub Sector")*((V:V="active")+(V:V="on hold")+(V:V="unassigned"))), 2,-1), 3)
This formula returns the expected result in my Excel online sample file.
With FILTER, SORT and TAKE functions INDEX/MATCH and LARGE aren't needed.
If your data only has a few thousand rows then i'd reference e.g. B1:B50000 instead of B:B in order to increase performance. B:B is the same as B1:B1048576 and references 1048576 rows which can raise performance problems and therefore should be avoided if possible.
=TAKE(SORT(
FILTER(
HSTACK(B:B,F:F),
(D:D="Sector")*(E:E="Sub Sector")*((V:V="active")+(V:V="on hold")+(V:V="unassigned"))),
2,-1),
3)
This formula returns the expected result in my Excel online sample file.
With FILTER, SORT and TAKE functions INDEX/MATCH and LARGE aren't needed.
If your data only has a few thousand rows then i'd reference e.g. B1:B50000 instead of B:B in order to increase performance. B:B is the same as B1:B1048576 and references 1048576 rows which can raise performance problems and therefore should be avoided if possible.