How to Fix VLOOKUP Formula Treated as Text in Excel
Question details
The user's VLOOKUP formula is displaying as plain text in the cell instead of executing the calculation and returning a result.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Entering a VLOOKUP formula to retrieve data from another range or table.
- Observed behavior
- Excel displays the formula text literally (e.g., =VLOOKUP(...)) in the cell instead of evaluating it to show the calculated value.
Ensure that you don't have a space or an apostrophe (') placed right before the equals sign (=) in your formula cell, as this forces the program to treat the cell contents as a text string automatically.
Change Cell Format to General and Refresh the Formula
This method resolves the most common cause of the issue, which is the cell or entire column being pre-formatted as 'Text'.
When a cell is formatted as Text, any formula entered into it will be treated as standard text rather than an equation. Changing the format back to General and re-registering the formula forces the application to calculate it.
Highlight the specific cell or the entire column (e.g., Column G) where the VLOOKUP formula is failing to calculate.
Go to the Home tab on the ribbon. Locate the Number formatting group, click the dropdown menu (which likely says 'Text'), and select 'General'.
Double-click the cell containing the VLOOKUP formula, or click inside the Formula Bar at the top. Delete the equals sign (=), type it again, and press Enter to evaluate.

Ensure Lookup Values Use Compatible Data Types
Sometimes the formula calculates, but the data being matched has a formatting mismatch, causing errors or text-like behavior.
Use WPS Spreadsheet for Seamless Formula Calculations
WPS Office provides a powerful and highly compatible Spreadsheet application that makes managing formulas like VLOOKUP simple. With intuitive formatting tools, you can easily ensure your formulas calculate correctly every time.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your problematic VLOOKUP formulas.
- 2. Format cells as General: Highlight the affected cells, right-click, and select 'Format Cells'. Under the Number tab, choose 'General' and click OK.
- 3. Refresh calculations: Select the cell, press the F2 key on your keyboard to enter edit mode, and press Enter to instantly evaluate the formula.

Frequently Asked Questions
Why does changing the format to 'General' not immediately calculate the formula?
Simply changing the cell format from the ribbon doesn't trigger a recalculation for existing text data. You must actively edit the cell (by pressing F2, double-clicking, or clicking the formula bar) and hit Enter to force the application to recognize the new format and evaluate the formula.
Can 'Show Formulas' mode cause my VLOOKUP to appear as text?
Yes. If the 'Show Formulas' feature is accidentally toggled on, the spreadsheet will display all formulas as raw text instead of their calculated results. You can turn this off by going to the Formulas tab and clicking 'Show Formulas', or by pressing Ctrl + ` (grave accent) on your keyboard.
What if the VLOOKUP formula gives an #N/A error instead of showing as text?
An #N/A error means the formula is successfully calculating, but it cannot find the lookup value in your source table. Ensure the lookup value exists in the first column of your table array, check for hidden trailing spaces, and make sure there are no mismatched data types (such as comparing a number to a number stored as text).




