Formula Errors

How to Fix VLOOKUP Formula Treated as Text in Excel

Kushani NimanthikaKushani Nimanthika Nov 11, 2026 869 views

Question details

The user's VLOOKUP formula is displaying as plain text in the cell instead of executing the calculation and returning a result.

How to Fix VLOOKUP Formula Treated as Text in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the affected cells

Highlight the specific cell or the entire column (e.g., Column G) where the VLOOKUP formula is failing to calculate.

2
Change format to General

Go to the Home tab on the ribbon. Locate the Number formatting group, click the dropdown menu (which likely says 'Text'), and select 'General'.

3
Re-enter the formula

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.

Change Cell Format to General and Refresh the Formula
Quick Refresh Tip: Instead of deleting and retyping the equals sign, simply clicking into the formula bar and pressing Enter is often sufficient to refresh the calculation once the format is set to General.
Solve Formula Errors Easily

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. 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your problematic VLOOKUP formulas.
  2. 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. 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.
Fully compatible with Microsoft Excel formulas, functions, and the .xlsx format.Intuitive interface for quickly changing number formats to General, Text, or Custom.Built-in formula error checking helps identify and resolve calculation issues quickly.Free, lightweight, and fast alternative for all your spreadsheet data processing needs.
microsoft office alternative - wps office

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).