#VALUE! Error in Excel: Causes and 5 Practical Fixes

How to fix the #VALUE! error in Excel - cover graphic
Image: Spreadsheet Tutorials & Productivity (original graphic)

The #VALUE! error means Excel was asked to do math (or run a function) on something that is not the type of value it expected. Most of the time the culprit is text sitting in a cell that should hold a number: a note like "n/a", a unit such as "5 pcs", or an invisible character pasted in from another system. This guide shows how to find the cell causing the error and five practical ways to fix it, using a small order list as the example.

Quick answer: Click the cell with #VALUE!, check every cell its formula refers to, and look for text where a number should be. Clean that cell (or convert it with VALUE), use SUM instead of + when adding ranges, and use IFERROR or AGGREGATE only when you deliberately want to skip bad rows.

The sample data

Column E multiplies quantity by unit price with =C2*D2, copied down. Two rows return #VALUE!.

OrderItemQtyUnit PriceTotal (=C*D)
A-101Notebooks123.5042.00
A-102Pensn/a1.20#VALUE!
A-103Staplers48.7535.00
A-104Folders6 (stored as text)2.1012.60
A-105Markers5 pcs2.40#VALUE!
A-106Tape rolls81.9515.60
A-107Paper reams36.2518.75
A-108Labels(blank)4.100.00
A-109Clips150.8012.00
A-110Binders73.3023.10
Excel sheet where =C3*D3 returns #VALUE! because the quantity cell contains the text n/a
The text values "n/a" and "5 pcs" in column C cause #VALUE! in column E. Image: Spreadsheet Tutorials & Productivity (original screenshot)

Notice three things in this data:

  • "n/a" and "5 pcs" are text that cannot be read as a number, so multiplying them fails.
  • "6" stored as text still works. When you use a text value like "6" in arithmetic, Excel converts it to a number, so row 5 returns 12.60.
  • A blank cell is treated as zero, so row 9 returns 0.00 instead of an error. That is not an error, but it may still be a data problem worth checking.

Step 1: Find the cell that causes the error

Select the cell showing #VALUE! and look at the formula bar. Every cell reference in that formula is a suspect. In our case, E3 contains =C3*D3, and C3 holds "n/a".

To test a cell directly, use ISNUMBER or ISTEXT:

=ISNUMBER(C5)   returns FALSE  (the "6" is stored as text)
=ISTEXT(C5)     returns TRUE

To count how many errors a column contains, this formula works in any modern Excel version:

=SUMPRODUCT(--ISERROR(E2:E11))

In the sample it returns 2 (rows 3 and 6). On the desktop version of Excel you can also select the error cell and use Formulas > Evaluate Formula to step through the calculation and see which part fails.

Step 2: Pick the right fix

Fix 1: Clean the source data

The best fix is usually the simplest: replace "n/a" with a real number (or leave the cell empty if the quantity is genuinely unknown), and type "5" instead of "5 pcs". If the unit matters, put it in its own column or use a custom number format such as 0 "pcs", which displays the unit while keeping the cell numeric.

Fix 2: Strip units and convert text with VALUE

When you cannot change the source (for example, it comes from an export every week), remove the unit inside the formula and convert the rest to a number:

=VALUE(TRIM(SUBSTITUTE(C6,"pcs","")))*D6

SUBSTITUTE removes "pcs", TRIM removes the leftover space, and VALUE turns "5" into the number 5. The result is 12 (5 × 2.40).

Data pasted from web pages sometimes contains a non-breaking space, which TRIM does not remove. In that case, add SUBSTITUTE(C6,CHAR(160),"") to the chain before converting.

Fix 3: Use SUM instead of the plus sign

The + operator and SUM treat text differently. Adding the first three quantities with plus signs fails because C3 is "n/a":

=C2+C3+C4       returns #VALUE!
=SUM(C2:C4)     returns 16

SUM ignores text inside a range, so it adds 12 and 4. That avoids the error, but be aware it silently skips the "n/a" row, which may hide missing data.

One important limit: SUM ignores text, not errors. =SUM(E2:E11) still returns #VALUE! because two cells in column E already contain the error.

Fix 4: Flag the problem with IF and ISNUMBER

If you want the sheet to tell you which rows need attention, test the input before calculating:

=IF(ISNUMBER(C3),C3*D3,"Check qty")

For row 3 this returns Check qty instead of an error. This is usually better than hiding the error, because the message explains what is wrong. Note that this test also flags numbers stored as text (like the "6" in row 5), which is useful if you want a fully clean column.

Fix 5: Hide or skip errors with IFERROR and AGGREGATE

Sometimes you just want a number to keep downstream totals working:

=IFERROR(C3*D3,0)

This returns 0 for row 3. Use it with care: IFERROR catches every error type, so it can also hide typos, broken references and lookup misses.

To total column E while skipping the error cells, use AGGREGATE (available since Excel 2010):

=AGGREGATE(9,6,E2:E11)

Function number 9 means SUM, and option 6 means ignore error values. In the sample it returns 159.05, the total of the eight rows that calculated correctly.

How it works

Arithmetic operators (+, -, *, /) need numbers on both sides. When Excel meets text, it tries to convert it. Text that looks like a number, such as "6", converts fine. Text like "n/a" or "5 pcs" cannot be converted, so the operation returns #VALUE!. Once one cell has the error, any formula that uses that cell inherits it, which is why the error often spreads into totals further down the sheet.

Functions that accept ranges, like SUM, follow a different rule: they skip text inside the range rather than trying to convert it. That is why SUM(C2:C4) works while C2+C3+C4 does not.

Common mistakes

  • Wrapping everything in IFERROR right away. You lose the signal that your data is wrong. Fix the source first, then decide whether you need error handling.
  • Assuming a number is a number. Values imported from CSV files or other systems are often stored as text. Check with ISNUMBER before blaming the formula.
  • Forgetting invisible characters. A cell can look like "250" but contain a hidden space. TRIM, CLEAN and SUBSTITUTE(...,CHAR(160),"") handle most of these cases.
  • Expecting SUM to ignore errors. It ignores text, not error values. Use AGGREGATE or fix the error cells.

FAQ

Why does a number stored as text sometimes work and sometimes not?

In arithmetic like =C5*D5, Excel converts text that looks like a number, so the formula works. Range functions such as SUM skip text instead, so a total of a column with text numbers can come out lower than expected without any error. Converting the column to real numbers avoids both surprises.

Is it better to show 0 or a blank instead of #VALUE!?

It depends on what happens next. A zero is included in averages and counts, which can distort results. An empty string ("") is skipped by SUM but can cause new #VALUE! errors if another formula multiplies it. A short message like "Check qty" is often the clearest choice.

Can a date cause the #VALUE! error?

Yes. A date typed in a format Excel does not recognize is stored as text, and date math on it, or passing it to a function that expects a date, can return #VALUE!. Re-enter the date in a format your system recognizes, or convert it with DATE built from its parts.

Summary

The #VALUE! error almost always means text is sitting where a number should be. Find the cell with ISNUMBER, clean it or convert it with VALUE, prefer SUM over chains of +, flag bad rows with IF, and keep IFERROR and AGGREGATE for cases where skipping a row is genuinely what you want. For more troubleshooting guides, browse the Errors & Fixes tutorials, or see all Excel articles.

Related Tutorials

Comments