Formula Fixer

How to Fix the #VALUE! Error in Excel and Google Sheets

Updated 2026-12-04

TL;DR: #VALUE! means a formula got the wrong kind of value, almost always text where it expected a number or date. The usual culprits are a cell containing a space or a word in =A2+B2, numbers with hidden non-breaking spaces copied from the web, dates stored as text, and ranges of different sizes in SUMPRODUCT. Find the bad cell with =ISTEXT(A2), clean it with =VALUE(TRIM(SUBSTITUTE(A2,UNICHAR(160),""))), use SUM instead of + so text is ignored, and only wrap the formula in IFERROR once you know why it fails.

#VALUE! is the spreadsheet's way of saying "you gave me the wrong type of thing". Unlike #N/A, which means a lookup found nothing, #VALUE! nearly always points to text hiding where a number or date should be. Here is how to find it and fix it.

The most common causes

CauseExampleFix
Text in a + - * / formula=A2+B2 where B2 is "n/a" or a single spaceDelete the space or use =SUM(A2:B2), which ignores text
Hidden non-breaking spaceA number pasted from a web page or PDF, such as "1,234" plus a non-breaking space=VALUE(SUBSTITUTE(A2,UNICHAR(160),""))
Leading or trailing spaces" 42 " typed or imported=VALUE(TRIM(A2))
Date stored as text"31/12/2026" in a US-format sheetRe-enter the date, or use DATE with the parts
Ranges of different sizes=SUMPRODUCT(A2:A10,B2:B9)Make every range the same size
Wrong argument typeA text string where a function expects a numberCheck each argument with ISNUMBER

Step 1: Find the cell that is text

Click the formula and use Evaluate Formula (Excel: Formulas > Evaluate Formula) to step through it, or test the inputs one by one:

Is it text?           =ISTEXT(A2)
Is it a number?       =ISNUMBER(A2)
How long is it?       =LEN(A2)
Text cells in range:  =SUMPRODUCT(--ISTEXT(A2:A100))

A number that sits on the left of the cell by default, or shows a small green triangle in Excel, is often stored as text. LEN helps spot hidden characters: "42" should have a length of 2, so 3 or 4 means there are extra spaces.

Step 2: Clean numbers stored as text

Ordinary spaces:        =VALUE(TRIM(A2))
Non-breaking spaces:    =VALUE(SUBSTITUTE(A2,UNICHAR(160),""))
Both, plus line breaks: =VALUE(TRIM(CLEAN(SUBSTITUTE(A2,UNICHAR(160)," "))))
European 1.234,56 (Excel): =NUMBERVALUE(A2,",",".")

TRIM removes ordinary spaces but not the non-breaking space (character 160) that web pages use, which is why SUBSTITUTE comes first. UNICHAR works in Excel 2013 and later and in Google Sheets; CHAR(160) also works in Excel for Windows. To fix a whole column in place, Excel's Data > Text to Columns > Finish converts text numbers back to numbers; in Google Sheets, put the cleaning formula in a helper column, then copy it and use Paste special > Values only.

Step 3: Use SUM instead of plus

=A2+B2+C2 returns #VALUE! if any of the cells holds text, even a single space. =SUM(A2:C2) ignores text and adds the numbers. With 5, "abc" and 2 in three cells, the plus formula gives #VALUE! while SUM gives 7. That is handy for totals, but it can also hide data problems, so check why the text is there.

Dates that cause #VALUE!

Date functions such as DATEDIF, NETWORKDAYS and EDATE need real dates. A date imported as text, or typed in a different order from your sheet's locale (31/12/2026 in a US sheet), makes them fail. Fix it by re-entering the dates, building them with =DATE(2026,12,31), or changing the file's locale (Google Sheets: File > Settings). See days between dates for more.

#VALUE! in SUMPRODUCT and array formulas

SUMPRODUCT needs every range to be the same size. =SUMPRODUCT(A2:A10,B2:B9) returns #VALUE! because one range has 9 rows and the other 8. The same applies when you multiply ranges inside FILTER or other array formulas. Use full matching ranges such as A2:A100 and B2:B100.

Should I just use IFERROR?

=IFERROR(A2+B2,0) hides the error and shows 0, but it also hides genuine mistakes, so a wrong total can look right. Fix the cause first; use IFERROR only where a blank or zero is truly the right answer, and prefer a visible message such as =IFERROR(A2+B2,"check inputs").

Quick FAQ

What does #VALUE! mean in Excel? A formula received the wrong type of value, usually text where it needed a number or a date.

Why does my SUM work but + gives #VALUE!? SUM ignores text cells, while + tries to add them and fails. One of your cells contains text, often a space.

How do I remove non-breaking spaces? =SUBSTITUTE(A2,UNICHAR(160),""), then wrap it in VALUE to turn the result into a number. TRIM alone does not remove them.

Is #VALUE! the same in Google Sheets? Yes. Google Sheets shows #VALUE! and the error tooltip names the function and the argument that could not be read as a number.

How do I find all #VALUE! errors in a sheet? In Excel use Home > Find & Select > Go To Special > Formulas > Errors. In either app, =SUMPRODUCT(--ISERROR(A2:Z500)) counts error cells in a range.

Related fixes: #N/A errors in lookups and splitting and cleaning text.

Seeing #SPILL! instead? See how to fix the #SPILL! error.

Numbers that will not add up? See numbers stored as text: 7 fixes.

Sources: Microsoft Support: How to correct a #VALUE! error; Microsoft Support: TRIM function.

Prefer a ready-made file?

Templates we sell: see all downloads and prices.

← More guides