Fix VLOOKUP in Excel Online and Use Lookup Alternatives
Question details
The user needs to troubleshoot a VLOOKUP formula in Excel Online or use an alternative for a cross-sheet lookup.

- Product
- Microsoft Excel Online
- Device & OS
- not provided
- Scenario
- Looking up a value in a range on another worksheet and returning a matching result.
- Observed behavior
- VLOOKUP may fail when the formula, sheet reference, lookup range, match type, or data format is incorrect.
Open the workbook in Excel for the web and identify the lookup value, source sheet, and column containing the result. Check the formula in the formula bar so you can compare its references with the actual worksheet names and data.
Check the VLOOKUP Formula and Source Data
Use these checks when VLOOKUP returns an error or an unexpected result in Excel Online.
Select the result cell and inspect the formula bar. For a value in A2, use =VLOOKUP(A2,Sheet2!A:B,2,FALSE) to find an exact match in Sheet2 column A and return the value from column B.
Open the source sheet and confirm that its name and columns match the formula. If the sheet name contains spaces, put it in single quotes, as in =VLOOKUP(A2,'Sales Data'!A:B,2,FALSE).
Check the source range: VLOOKUP searches its first column, and the column index must point to a column within that range. In A:B, an index of 2 returns a value from column B.
Select the lookup cell and matching source cells to check for differences such as numbers stored as text or extra spaces. Correct the values or their data types, then recalculate the formula.
In the formula bar, use FALSE as the fourth argument when you need an exact match. An #N/A result can mean that no exact match was found.

Use INDEX and MATCH for a Cross-Sheet Lookup
Use INDEX and MATCH when you want an alternative that can return a value from a column to the left or right of the lookup column.
Work With Lookup Formulas in WPS Spreadsheet
WPS Office is a free, lightweight Office alternative with a familiar interface. Open compatible Excel workbooks in WPS Spreadsheet to work with lookup formulas and move between office suites.

Frequently Asked Questions
Does Excel Online support VLOOKUP?
Yes. Enter a VLOOKUP formula in a worksheet cell or the formula bar. If it fails, check the sheet name, lookup range, column index, match type, and source values.
Why does my VLOOKUP return #N/A?
With FALSE as the fourth argument, #N/A can mean Excel did not find an exact match. Compare the lookup cell with the first column of the source range for extra spaces or numbers stored as text.
How do I reference a sheet with spaces in its name?
Enclose the sheet name in single quotes in the formula, for example: =VLOOKUP(A2,'Sales Data'!A:B,2,FALSE).
Can VLOOKUP return a value from a column to the left?
VLOOKUP searches the first column of its selected range and returns from a column to its right. Use INDEX and MATCH or, if available, XLOOKUP to return a value from a column to the left.




