Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
Heads up: Excel and Google Sheets do this differently.
=IFERROR(INDEX(B2:B6,SMALL(IF(A2:A6="Alpha",ROW(A2:A6)-ROW(A2)+1),ROW()-ROW(C2)+1)),"")=FILTER(B2:B6,A2:A6="Alpha")Computed by a real spreadsheet engine on the sample data below.
| Category | Item |
| Alpha | Apple |
| Beta | Banana |
| Alpha | Avocado |
| Gamma | Grape |
| Alpha | Apricot |
=IFERROR(INDEX(B2:B6,SMALL(IF(A2:A6="Alpha",ROW(A2:A6)-ROW(A2)+1),ROW()-ROW(C2)+1)),"")→
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need the Google Sheets version instead? Open Sheets variant in workspace →
Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.
Wrap FILTER in IFERROR to display a custom message: =IFERROR(FILTER(B2:B6,A2:A6="X"),"No results").
Yes — expand the return range to include all desired columns, e.g. =FILTER(A2:B6,A2:A6="Alpha").
Look up a value in the top row of a table and return a value from a row below it — the horizontal cousin of VLOOKUP.
How-toUse LOOKUP with a search trick or XLOOKUP with search mode -1 to find the last occurrence of a value in a list.
How-toUse VLOOKUP or MATCH with wildcard characters (* and ?) to perform partial-match lookups on text values.
How-toUse INDEX with MATCH and the EXACT function to perform a lookup that distinguishes between uppercase and lowercase text.
How-toUse SUMIF or SUMIFS to sum all values that match a lookup criterion, returning the total of all matching rows rather than a single result.
How-toUse INDEX and MATCH with ABS and MIN to find the value in a list that is numerically closest to a target number.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: