Fix VALUE Error in Excel: 6 Causes and Formula Fixes

Fix VALUE error in Excel: order table showing #VALUE! results next to correct totals

A #VALUE! result is one of the most common messages in a spreadsheet, and also one of the vaguest. It simply means a formula received a value of the wrong type. This guide shows how to fix VALUE error in Excel by finding the real cause, from prices stored as text to dates Excel cannot read, with formula fixes you can copy into your own workbook.

Everything below works in Excel for Microsoft 365, Excel 2024, 2021 and 2019 on Windows and Mac, and Excel for the web. Google Sheets and LibreOffice Calc show the same #VALUE! error for most of these cases, so the fixes carry over.

What the #VALUE! Error Means

Excel returns #VALUE! when an argument or operand is the wrong kind of data. The classic example is multiplying a number by a word: =4*"TBD" cannot be calculated, so Excel stops and shows the error instead of guessing.

Unlike #N/A, which says a lookup found nothing (see our guide to fixing the #N/A error), #VALUE! points to the data or the formula structure itself. That is why hiding it straight away is rarely the right move.

Common Causes of #VALUE! at a Glance

CauseBroken formulaFix
Text in a number cell (TBD, N/A, a dash)=C7*D7=IF(ISNUMBER(D7),C7*D7,0)
Hidden non-breaking space after a number=C8*D8=C8*SUBSTITUTE(D8,CHAR(160),"")
Date stored as text=F6-E6=F6-DATE(RIGHT(E6,4),MID(E6,4,2),LEFT(E6,2))
FIND or SEARCH cannot locate the text=FIND("-",A9)=IF(ISNUMBER(FIND("-",A9)),…,"No hyphen")
Ranges of different sizes=SUMPRODUCT(C6:C11,I6:I10)=SUMPRODUCT(C6:C11,I6:I11)
SUMIF/COUNTIF pointing to a closed workbookExternal reference to a closed fileOpen the source file, or switch to SUM(IF()) logic

The examples use a small order sheet: Order ID in column A, Item in B, Qty in C, Unit Price in D, Order Date in E (imported as text) and Ship Date in F, with data in rows 6 to 11.

How to Fix VALUE Error in Excel, Cause by Cause

1. Text in cells that should hold numbers

Row 7 has a unit price of TBD, so =C7*D7 returns #VALUE!. Start by finding every cell that is text rather than a number:

=ISTEXT(D6)

Copy it down the column. Any TRUE result is a cell that arithmetic operators cannot use. Once you know where they are, decide how missing values should behave. This formula multiplies only real numbers and returns 0 otherwise:

=IF(ISNUMBER(D6),C6*D6,0)

Another option is to use a function instead of an operator. =SUM(D6:D11) skips text, while =D6+D7+D8 fails on the first text cell.

2. Hidden spaces and non-breaking characters

Row 8 looks like 18.75, but the value was pasted from a web page and ends with a non-breaking space (character 160). Excel treats the whole entry as text, and TRIM does not remove that character. SUBSTITUTE does:

=IF(ISNUMBER(D6),D6,IFERROR(--SUBSTITUTE(D6,CHAR(160),""),0))

The double minus converts the cleaned text to a number. For values that use a different decimal or group separator, such as 1.234,50, use NUMBERVALUE and name the separators: =NUMBERVALUE(D6,",",".").

3. Dates stored as text

Order dates exported as 03.11.2026 are just text in most regional settings, so =F6-E6 returns #VALUE!. A quick sign is left alignment in the cell. Rebuild a real date from the pieces:

=F6-DATE(RIGHT(E6,4),MID(E6,4,2),LEFT(E6,2))

The result is the number of days to ship: 3, 5, 2, 4, 1 and 4 for the sample rows. Adjust the MID and LEFT positions if your text date uses a different pattern.

4. FIND or SEARCH returns #VALUE!

FIND and SEARCH return #VALUE! when the text is not there. Order ORD 1044 uses a space instead of a hyphen, so =MID(A9,FIND("-",A9)+1,10) breaks. Test first, then extract:

=IF(ISNUMBER(FIND("-",A6)),MID(A6,FIND("-",A6)+1,10),"No hyphen")

Use SEARCH instead of FIND when the match should ignore upper and lower case.

5. Ranges that are not the same size

SUMPRODUCT, SUMIFS and similar functions expect ranges of matching dimensions. =SUMPRODUCT(C6:C11,I6:I10) mixes six rows with five and returns #VALUE!. Make both ranges cover rows 6 to 11:

=SUMPRODUCT(C6:C11,I6:I11)

With the cleaned prices in column I, the order total is 1,119.70. Converting the data into an Excel table and using structured references helps prevent this mismatch when rows are added.

6. Links to closed workbooks

SUMIF, SUMIFS, COUNTIF and COUNTIFS return #VALUE! when they refer to cells in another workbook that is closed. Open the source file and the results recalculate. For a permanent fix, Microsoft suggests replacing them with SUM and IF in an array formula, which works with closed files.

Tools That Locate the Problem Faster

  • Evaluate Formula (Formulas > Evaluate Formula) steps through a formula and shows exactly which part turns into #VALUE!.
  • Error Checking (Formulas > Error Checking) jumps between error cells and offers a Show Calculation Steps button.
  • Trace Precedents draws arrows to the cells a formula depends on, so you can inspect each input.
  • In the formula bar on Windows, select part of a formula and press F9 to see its result. Press Esc afterwards so the formula is not overwritten.

When to Use IFERROR

Wrapping the whole formula in IFERROR makes the error disappear, but it hides every error type, including real mistakes. Fix the data first, then add IFERROR only where a blank or a label is the right answer for genuinely missing values:

=IFERROR(C6*D6,"Price missing")

Microsoft gives the same advice in its official guide on how to correct a #VALUE! error.

#VALUE! in Google Sheets and LibreOffice Calc

Google Sheets shows #VALUE! for the same causes, and hovering over the cell reveals a helpful note such as a function parameter expecting a number but receiving text. The ISTEXT, SUBSTITUTE, DATE and FIND fixes above work unchanged.

LibreOffice Calc displays #VALUE! (internally Err:519). Calc is sometimes more lenient when converting text that contains stray spaces, so a file that calculates in Calc can still show #VALUE! in Excel. Clean the data rather than relying on automatic conversion. If an error spills across a range in Microsoft 365, our guide to fixing the #SPILL! error covers that case.

Practice Workbook

Download the practice workbook to try all six fixes on the order sheet used in this guide. The Practice sheet has the original broken formulas and yellow answer cells, and the Solutions sheet contains working formulas for every task.

FAQ

Why does a simple subtraction return #VALUE!?

One of the cells is text, often a date typed in a format your system does not recognize or a number with a hidden character. On Windows, it can also happen when the list separator in regional settings is set to the minus sign.

Does TRIM fix the #VALUE! error?

Only for normal spaces. Non-breaking spaces from web data need SUBSTITUTE(cell,CHAR(160),""), and CLEAN removes non-printing characters.

What is the difference between #VALUE! and #N/A?

#VALUE! means a formula received the wrong type of data. #N/A means a lookup could not find the value it searched for.

Should I hide #VALUE! errors with IFERROR?

Only after the cause is fixed and the remaining errors represent truly missing data. Otherwise IFERROR can hide wrong totals.

Download the practice workbook

The same data as this tutorial, with empty answer cells and a Solutions sheet.

Team Xl in Excel

Team Xl in Excel

Spreadsheet Architect & Educator at Xl in Excel. Sharing advanced formulas, dynamic arrays, and clean data modeling techniques.

Learn More About Team Xl in Excel →

Leave a Reply

Your email address will not be published. Required fields are marked *

Zoom: 100% | UTF-8 | Xl in Excel