Why does my Excel formula show as text, or my VLOOKUP give #N/A, and what can I try?

If a cell shows the formula itself, check that Show Formulas is off, that the entry starts with an equal sign and that the cell is not formatted as Text. If a lookup gives #N/A, Excel usually cannot find the value: check the spelling, the number or text type, extra spaces and the match setting.

A formula shows as text

1. Turn off Show Formulas

This is the likely cause if many formulas are showing at once. On the Formulas tab, in the Formula Auditing group, select Show Formulas to switch it off. In Windows you can also press Ctrl+` (the grave accent key, usually above Tab).

2. Start with an equal sign

Without it, Excel treats the entry as text or a date. SUM(A1:A10) stays as typed; =SUM(A1:A10) calculates. Likewise, 11/2 becomes a date, while =11/2 divides.

3. Change a Text cell

  1. Select the cell and press Ctrl+1, or right-click and choose Format Cells.
  2. Choose General and select OK.
  3. Press F2, then Enter. Changing the format alone may leave the formula showing.

For a whole column of formulas, select it, apply the number format you want, then choose Data, Text to Columns, Finish.

Before you use Text to Columns, save a copy of the workbook and work on the copy. Do not use these steps to turn codes with leading zeros or long account numbers into numbers: zeros are dropped, and digits after the fifteenth become zeros.

The formula shows an old result

If you see a number but it does not update, calculation may be set to manual. In Windows, go to File, Options, Formulas, and under Workbook Calculation select Automatic.

VLOOKUP, XLOOKUP or MATCH gives #N/A

1. Confirm the value is there

Search the source list for it. Check the spelling, and check that the formula's range includes that row. With VLOOKUP, the value must be in the first column of the range. If you filled the formula down, make sure the range did not shift: $A$2:$B$7 stays fixed.

2. Match numbers with numbers

A number will not match the same digits stored as text. Make both sides the same type. For ordinary quantities stored as text, changing the format may not be enough; on a copy of the workbook, use Text to Columns as above, or follow Microsoft's page on converting numbers stored as text, linked below.

For codes with leading zeros or long account numbers, do not convert to numbers: make both sides text. Set cells to the Text format before you type the values in. Changing the format afterward does not bring back zeros or digits already lost.

3. Remove extra spaces

In a spare column, use =TRIM(A2) and look up against the cleaned values. TRIM does not remove the non-breaking spaces that often come with text copied from web pages. Microsoft also shows TRIM inside the lookup. Use this form only when the value you look up and the result you want back are both text, because TRIM returns text:

=VLOOKUP(D2, TRIM(A2:B7), 2, FALSE)

In versions of Excel without dynamic arrays, a formula like this must be confirmed with Ctrl+Shift+Enter.

4. Ask for an exact match

In VLOOKUP and HLOOKUP, end with FALSE. If you leave it out, Excel looks for an approximate match, which needs sorted data and can return a wrong value as well as #N/A. In MATCH, set the last part to 0. XLOOKUP is exact unless you change its match mode.

5. Less common causes

Show a message instead of #N/A

When a missing value is expected, you can replace the error:

IFERROR also works, but it hides every kind of error, including ones that point to a broken formula. Fix the cause first.

Official Microsoft pages

If you want someone to talk you through the problem

Want someone to talk you through it? The Application tutor is a Zoom video call: $60 for one hour, $120 for two. You need to book at least 24 hours ahead. List the applications you need help with when you book. We talk you through them, as many as time allows. We never ask for a password or a sign-in code. We cannot promise a fix. We are not part of the companies named here, and they do not endorse us.

The page "Why does my Excel formula show as text, or my VLOOKUP give #N/A, and what can I try?" was last changed on December 5, 2026.

Terms and refunds

Privacy