#VALUE! error in Excel: causes and how to fix it
Fix #VALUE! in Excel: text in maths, hidden spaces, numbers with units, text dates, ranges of different sizes, FIND failures and links to closed files.
#VALUE! means "wrong kind of value". A formula received something it cannot work with: text where it needed a number, a date Excel does not recognise, two ranges of different shapes, or an argument outside what the function accepts. It is the most general error Excel has, which is why it can feel vague. The good news is that the list of real-world causes is short. Below, each one is reproduced on a small sheet with the formula that breaks and the version that works. For a summary of all error values see Formula errors: what each one means and how to fix it.
What #VALUE! means
Every operator and function expects certain types. The +, -, * and / operators want numbers; DATE wants year, month and day numbers; SUMIFS wants ranges of the same size. When the input does not fit, Excel stops and returns #VALUE!. One subtle point helps with diagnosis: Excel is forgiving with text that looks like a number. ="10"+5 returns 15 because "10" converts cleanly. #VALUE! appears only when the conversion is impossible, as with "10 kg", "n/a" or a lone space.
Cause 1: text in a calculation
A timesheet multiplies hours by rate. One row says "sick" instead of a number, and the multiplication fails.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Name | Hours | Rate | Pay |
| 2 | Ana | 38 | 15 | 570 |
| 3 | Ben | sick | 15 | #VALUE! |
| 4 | Chen | 40 | 15 | 600 |
"sick" cannot be turned into a number, so Ben's pay is #VALUE!.
Result: #VALUE!
The error then spreads: a total written as =D2+D3+D4 is #VALUE! too. Functions such as SUM, AVERAGE and MAX behave differently: they skip text in ranges. That is often the fastest fix for totals:
| A | B | |
|---|---|---|
| 1 | Name | Hours |
| 2 | Ana | 38 |
| 3 | Ben | sick |
| 4 | Chen | 40 |
| 5 | Total | 78 |
SUM ignores the text in B3 and adds 38 + 40. =B2+B3+B4 would return #VALUE!.
Result: 78
Fix. Decide what the text means. If "sick" should count as zero hours, test for a number: =IF(ISNUMBER(B3), B3*C3, 0). Better still, keep notes like "sick" in a separate column and keep the Hours column numeric, enforced with Data › Data Validation › Decimal (Data validation: drop-down lists and dependent lists).
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Name | Hours | Rate | Pay |
| 2 | Ana | 38 | 15 | 570 |
| 3 | Ben | sick | 15 | 0 |
| 4 | Chen | 40 | 15 | 600 |
ISNUMBER checks the cell first, so the multiplication only runs on real numbers.
Result: 0
=SUM(B2, "abc") returns #VALUE!.Cause 2: numbers with units or symbols typed into the cell
Values such as 12 kg, €45 typed as text, 3 pcs or 1.5h look fine to a person but are text to Excel.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Item | Weight | Price/kg | Cost |
| 2 | Coffee | 12 kg | 3.5 | #VALUE! |
"12 kg" is text because of the unit.
Result: #VALUE!
Fix. Best practice is to store the number alone and put the unit in the header (Weight (kg)) or in a custom number format such as 0 "kg", which displays the unit while keeping a real number. To rescue existing data, extract the number. In Microsoft 365 TEXTBEFORE does it neatly:
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Item | Weight | Price/kg | Cost |
| 2 | Coffee | 12 kg | 3.5 | 42 |
TEXTBEFORE takes "12", VALUE makes it a number: 12 × 3.5 = 42.
Result: 42
In older versions use =VALUE(LEFT(B2, FIND(" ", B2)-1))*C2. For large lists, Data › Text to Columns with a space as the delimiter, or Flash Fill (Ctrl+E), clean the whole column in one go.
Cause 3: a cell that looks empty but contains a space
A truly empty cell counts as 0 in arithmetic. A cell that contains a space, often left over from an import or from someone "clearing" a cell with the space bar, is text, so arithmetic fails although you see nothing.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Product | Qty | Price | Amount |
| 2 | Pens | 10 | 1.2 | 12 |
| 3 | Paper | 4 | #VALUE! |
B3 contains a single space. =LEN(B3) returns 1, revealing it.
Result: #VALUE!
Fix. Select the cells and press Delete. To find them in bulk, use Go To Special › Constants › Text on a column that should be numeric: anything it selects is text, spaces included. If you cannot clean the source, =N(B3)*C3 treats any text as 0, although that is a band-aid rather than a fix.
Cause 4: dates stored as text that Excel cannot read
Excel converts date text using your computer's regional settings. 15.03.2026 or 2026/15/03 from another system may not be recognised, and subtracting such a "date" fails.
| A | B | C | |
|---|---|---|---|
| 1 | Ordered | Delivered | Days |
| 2 | 15.03.2026 | 2026-04-14 | #VALUE! |
A2 is text in a day.month.year style that, in this example, the regional settings do not accept as a date.
Result: #VALUE!
Fix. Rebuild a real date from the pieces with DATE, RIGHT, MID and LEFT:
| A | B | C | |
|---|---|---|---|
| 1 | Ordered | Delivered | Days |
| 2 | 15.03.2026 | 2026-04-14 | 30 |
15 March to 14 April 2026 is 30 days. If the result appears as a date, change the cell's format to General.
Result: 30
For a whole column, Data › Text to Columns › Next › Next, choose Date with the matching order (DMY), and Finish. DATEVALUE works only when the text already matches your regional date format; otherwise it returns #VALUE! as well. The Dates and times: serial numbers, date math and working days lesson explains date serial numbers.
Cause 5: ranges of different sizes
SUMIFS, COUNTIFS, AVERAGEIFS and SUMPRODUCT demand that every range has the same number of rows and columns. One range that is a row short produces #VALUE!.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Region | Rep | Sales | North total | |
| 2 | North | Ana | 500 | #VALUE! | |
| 3 | South | Ben | 300 | ||
| 4 | North | Chen | 250 | ||
| 5 | East | Dana | 400 |
The sum range has 4 rows, the criteria range only 3.
Result: #VALUE!
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Region | Rep | Sales | North total | |
| 2 | North | Ana | 500 | 750 | |
| 3 | South | Ben | 300 | ||
| 4 | North | Chen | 250 | ||
| 5 | East | Dana | 400 |
Matching ranges: 500 + 250 = 750.
Result: 750
Fix. Make all ranges cover the same rows. Using an Excel table (Ctrl+T) and structured references such as Sales[Region] removes this problem for good, because every column of a table always has the same length. Note that the older SUMIF does not complain: it silently resizes the sum range, which can give a wrong answer instead of an error.
Cause 6: FIND or SEARCH did not find the text
FIND and SEARCH return the position of one text inside another, and #VALUE! when it is not there. Formulas that split names or codes break on the one row that does not follow the pattern.
| A | B | |
|---|---|---|
| 1 | Full name | First name |
| 2 | Ana Silva | Ana |
| 3 | Cher | #VALUE! |
There is no space in "Cher", so FIND returns #VALUE! and LEFT inherits it.
Result: #VALUE!
| A | B | |
|---|---|---|
| 1 | Full name | First name |
| 2 | Ana Silva | Ana |
| 3 | Cher | Cher |
If no space is found, return the whole name.
Result: Cher
In Microsoft 365, TEXTBEFORE has its own fallback argument: =TEXTBEFORE(A3, " ", , , , A3). Be aware that TEXTBEFORE and TEXTAFTER return #N/A, not #VALUE!, when the delimiter is missing. To test whether a cell contains a word, use =ISNUMBER(SEARCH("refund", A2)), which returns TRUE or FALSE instead of an error.
Cause 7: an argument outside what the function accepts
- Negative lengths:
=LEFT(A2, -1)or=MID(A2, 0, 3)return #VALUE!. This often happens indirectly, when a FIND result minus 1 becomes negative. - Text that cannot be converted:
=VALUE("abc"),=DATEVALUE("next Friday"),=TIMEVALUE("25:99"). - A lookup value longer than 255 characters in VLOOKUP, HLOOKUP or MATCH returns #VALUE!. Use XLOOKUP or
INDEX/MATCHon a shorter key. - NETWORKDAYS, WORKDAY and other date functions return #VALUE! when a date argument is text they cannot read.
Cause 8: SUMIF or COUNTIF pointing at a closed workbook
SUMIF, SUMIFS, COUNTIF, COUNTIFS and COUNTBLANK can only read ranges in workbooks that are open. When you open your file and the linked file is closed, the formulas show #VALUE! after recalculation (often after pressing F9).
=SUMIF('[Sales 2026.xlsx]Jan'!$A$2:$A$100, "North", '[Sales 2026.xlsx]Jan'!$C$2:$C$100)Fix. Open the source workbook, or rewrite the condition with SUMPRODUCT, which works on closed files: =SUMPRODUCT(('[Sales 2026.xlsx]Jan'!$A$2:$A$100="North")*'[Sales 2026.xlsx]Jan'!$C$2:$C$100). Long term, bringing the data in with Power Query (Power Query basics: import, clean, append, merge, refresh) is more robust than formula links.
Cause 9: an array formula in an older Excel version
In Excel 2019 and earlier, a formula such as =SUM(B2:B4*C2:C4) had to be confirmed with Ctrl+Shift+Enter. Entered with plain Enter in a row outside 2 to 4, it returns #VALUE! because Excel tries to pick a single cell from each range (implicit intersection) and finds none. Microsoft 365 calculates it correctly without any special keys. Fix in old versions: press Ctrl+Shift+Enter (Excel adds curly braces), or use =SUMPRODUCT(B2:B4, C2:C4), which needs no special entry.
How to find every #VALUE! in a workbook
- Go To Special. Press
F5orCtrl+G(the same on a Mac), click Special, choose Formulas and leave only Errors ticked, then OK. Excel selects every formula on the sheet that shows an error, of any kind. Give the selection a fill colour so the cells stay visible after you click away. - Find All. Press
Ctrl+F(Cmd+F), type#VALUE!, open Options, set Look in to Values, tick Match entire cell contents, set Within to Workbook and click Find All. The list at the bottom shows sheet, cell and formula for every hit;Ctrl+Ainside the list selects them all. - Error Checking. Formulas › Formula Auditing › Error Checking jumps from one error to the next and offers Show Calculation Steps, which opens Evaluate Formula on that cell so you can see the exact step that fails.
- Trace Error. Select an error cell and choose Formulas › Error Checking (the arrow beside it) › Trace Error. Red arrows lead back to the cell where the error started; blue arrows show the healthy inputs. Errors travel downstream, so fixing the first cell often clears dozens of others.
- Count them with a formula.
=COUNTIF(B2:B500, "#VALUE!")counts the cells in a range that show this error, and=SUMPRODUCT(--ISERROR(B2:B500))counts every kind of error. Put the count next to a report total as an early-warning light. - Evaluate the formula. For a long formula, select it and use Formulas › Evaluate Formula. The step where a value turns into #VALUE! shows you which argument has the wrong type. Selecting part of the formula in the formula bar and pressing
F9does the same for one piece (pressEscafterwards).
When you should NOT hide #VALUE!
#VALUE! nearly always points at bad input data: a number typed as text, a date in the wrong format, a stray space. If you wrap the formula in IFERROR and show 0, the bad data stays in the sheet and the total quietly comes out too low. A timesheet that pays 0 for a row that says "38 h" is a real-money bug. Fix the data, or validate it on entry, and use IFERROR only for cases you have understood, like the single-word name in Cause 6. If you must keep the sheet working while data is cleaned, show a visible flag such as =IF(ISNUMBER(B3), B3*C3, "Check hours") instead of a silent zero.
Version notes
- #VALUE! exists in every version of Excel and in other spreadsheet programs.
- TEXTBEFORE, TEXTAFTER and TEXTSPLIT need Microsoft 365 or Excel 2024; in Excel 2021 and older use LEFT, MID and FIND.
- The
Ctrl+Shift+Enterrequirement (Cause 9) disappeared with dynamic arrays in Microsoft 365 and Excel 2021. - Text-to-number conversion of dates depends on the regional settings of the computer that calculates, so a file can work in one country and show #VALUE! in another.
Check yourself
1. =B2*C2 returns #VALUE!, but B2 looks empty. What is the likely reason?
An empty cell counts as zero; a cell with a space is text and breaks arithmetic.
2. Why does =SUM(B2:B4) work when B3 contains "sick" while =B2+B3+B4 fails?
SUM, AVERAGE, MAX and similar functions skip text inside ranges.
3. =SUMIFS(C2:C50, A2:A49, "North") returns #VALUE!. Why?
All ranges in SUMIFS must be the same size; A2:A49 is one row short.
4. Which formula never returns #VALUE! when testing whether A2 contains "refund"?
ISNUMBER turns the position or the error into TRUE or FALSE.