VLOOKUP alone can only return one matching value, so to return multiple values you need a different approach: use FILTER for a dynamic list, or INDEX with SMALL and IF (entered as an array formula) for a formula that works in older Sheets versions. The simplest modern method is =FILTER(return_range, lookup_range = lookup_value), which spills all matches into adjacent rows. This guide shows both methods, plus how to handle errors and common pitfalls.
What You'll Need
- A Google account with access to Google Sheets (free).
- A spreadsheet with at least two columns: one containing the lookup key (e.g., product ID, employee name) and one or more columns containing the values you want to return.
- Basic familiarity with cell references and formulas.
Step-by-Step
- Set up your data. Put your lookup keys in column A and the values you want to return in column B (or further right). For example, A2:A10 contains department names, B2:B10 contains employee names. Ensure no blank rows inside the data range.
- Choose your method. If you are on a current version of Google Sheets (most users), use FILTER. If you need compatibility with older sheets or want a single formula that works without spilling, use INDEX/SMALL/IF. We cover both.
- Method 1: FILTER (recommended). Click the cell where you want the first result. Type
=FILTER(B2:B10, A2:A10 = "Sales")and press Enter. ReplaceB2:B10with your return range,A2:A10with your lookup range, and"Sales"with your lookup value (or a cell reference likeD1). The formula will output all matching values in a vertical list, spilling into rows below. If there are no matches, it returns#N/A; wrap withIFERRORto show a blank or custom message. - Method 2: INDEX/SMALL/IF (array formula). This works in any Sheets version and returns one value per formula, so you copy it down. In the first output cell, type:
=IFERROR(INDEX($B$2:$B$10, SMALL(IF($A$2:$A$10 = $D$1, ROW($A$2:$A$10) - ROW($A$2) + 1), ROWS($E$1:E1))), "")
Here$D$1holds the lookup value,$B$2:$B$10is the return range,$A$2:$A$10is the lookup range. TheROWS($E$1:E1)part increments as you copy down. After typing, press Ctrl+Shift+Enter (Windows) or Cmd+Shift+Enter (Mac) to make it an array formula (in current Sheets, regular Enter often works, but array entry is safer). Then drag the fill handle down as many rows as you expect matches. - Test with a lookup value that has multiple matches. For example, if "Sales" appears three times in column A, FILTER should show three names; the INDEX method should show one name per row until matches run out, then blank.
- Handle errors. Wrap FILTER in
IFERROR(..., "No matches")to avoid #N/A. For the INDEX method, theIFERRORalready returns blank when no more matches exist. - Adjust ranges. If your data grows, either extend the ranges (e.g., B2:B100) or convert your data to a named range or table (using Insert > Named ranges) and reference that. FILTER works with whole-column references like
B:Bbut may slow down large sheets. - Optional: return multiple columns. FILTER can return several columns at once:
=FILTER(B2:C10, A2:A10 = "Sales")spills a 2-column result. The INDEX method returns one column at a time; copy the formula and change the return range for each column.
Common Mistakes
- Forgetting to lock ranges. When copying the INDEX formula down, use absolute references (with $) for the lookup and return ranges, or they will shift and return wrong values.
- Not entering as array formula. In older Sheets, the INDEX/SMALL/IF formula must be entered with Ctrl+Shift+Enter; otherwise it returns only the first match or an error.
- Using VLOOKUP with a helper column incorrectly. Some guides suggest adding a helper column that counts occurrences (e.g.,
=COUNTIF($A$2:A2, A2)) and then using VLOOKUP with a concatenated key. This works but is fragile if data is sorted or filtered; FILTER is simpler. - Mismatched range sizes. FILTER requires the lookup range and return range to have the same number of rows. If they differ, you get a #VALUE! error.
- Ignoring case sensitivity. FILTER and VLOOKUP are not case-sensitive; "Sales" and "sales" match. If you need case-sensitive matching, use
EXACTinside FILTER:=FILTER(B2:B10, EXACT(A2:A10, "Sales")). - Spill range blocked. FILTER needs empty cells below to spill into. If there is existing data, you get a #REF! error. Clear the cells or move the formula.
Tips
- Use
FILTERwithSORTto return sorted results:=SORT(FILTER(B2:B10, A2:A10 = "Sales")). - To return a comma-separated list in one cell (instead of a spilled list), use
TEXTJOINwith an array:=TEXTJOIN(", ", TRUE, FILTER(B2:B10, A2:A10 = "Sales")). - For large datasets, avoid whole-column references in FILTER; use specific ranges or named ranges for better performance.
- If you need to return values from multiple criteria (e.g., department and location), combine conditions with multiplication:
=FILTER(B2:B10, (A2:A10="Sales") * (C2:C10="East")). - Remember that FILTER is dynamic: if you add new data within the referenced range, the results update automatically.
Troubleshooting
If FILTER returns #N/A, check that your lookup value exists exactly (no extra spaces) and that the ranges are correct. If you see #REF!, the spill range is blocked; clear cells below. If the INDEX formula returns #NUM!, you have copied it down more times than there are matches; that is expected—IFERROR handles it. If you get #VALUE!, ensure ranges are the same size. If the formula returns only the first match, you likely forgot to enter it as an array formula (Ctrl+Shift+Enter) or you are using a version of Sheets that requires it. If results are wrong, verify that absolute references are used and that the lookup column is the first column in the range for VLOOKUP (though we are not using VLOOKUP here). For persistent issues, try retyping the formula in a clean cell.
Frequently Asked Questions
Can VLOOKUP return multiple values without a helper column?
No, standard VLOOKUP returns only the first match. You need FILTER or an INDEX/SMALL/IF array formula to return multiple values.
Does FILTER work in all versions of Google Sheets?
FILTER is available in current versions of Google Sheets. If you are using an older version or a different spreadsheet app, use the INDEX/SMALL/IF method.
How do I return multiple values horizontally instead of vertically?
Wrap FILTER in TRANSPOSE: =TRANSPOSE(FILTER(B2:B10, A2:A10="Sales")). The results will spill across columns.
Can I use FILTER with wildcards?
Yes, use SEARCH or REGEXMATCH inside the condition. For example: =FILTER(B2:B10, SEARCH("Sal", A2:A10)) returns rows where A contains "Sal".
Why does my FILTER formula return a #N/A error?
#N/A means no matching records were found. Check for typos, extra spaces, or mismatched data types (e.g., text vs. number).
Can I return multiple values from multiple sheets?
Yes, but you need to combine data first. Use {Sheet1!A2:B10; Sheet2!A2:B10} to stack ranges, then apply FILTER. Ensure both sheets have the same column structure.