Causes of #VALUE!
SOP 2.1: Text in Arithmetic
The most direct cause is a formula that uses an operator such as + – * or / on a cell containing text. For example, if B2 contains the word “pending”, the formula =B2*C2 returns #VALUE! because multiplication needs two numbers.
The same logic applies to a formula that returns text, such as =IF(A2=””,”n/a”,A2*2). If A2 has a value, the multiplication works. If the test fails, the formula returns “n/a”, and any formula further along the chain that multiplies that result will fail.
SOP 2.2: Invisible Characters and Stray Spaces
A value such as “12 ” (with a trailing space) looks like 12 but is text. Exported data often carries spaces at the start or end of cells, and web-sourced data often carries non-breaking spaces. Excel and Google Sheets do not treat either as a number.
Check for this with a simple test. Enter =LEN(B2) next to the suspect cell. If the number of characters is higher than you expect, something invisible is present. A value of 2 for the text “12” is normal. A value of 3 means a hidden character is in there.
SOP 2.3: Numbers Stored as Text
Numbers stored as text are the most common #VALUE! source in imported files. Excel usually shows a small green triangle in the corner of the cell as a warning, but the warning is easy to miss in a column of several thousand rows.
Some systems export numbers with a thousands separator included, so “1,250” arrives as text. Its meaning depends on the locale. In a region where the comma is the decimal separator, “1,250” could mean one and a quarter, not one thousand two hundred and fifty. This ambiguity is one reason conversion should be explicit rather than left to the application.
SOP 2.4: Mismatched Ranges and Array Sizes
Some functions need ranges of identical size. SUMPRODUCT is the usual example. If one range covers A2:A100 and the other covers B2:B99, the function returns #VALUE! because it cannot pair every row.
The error is common after rows are inserted or deleted in one column but not the other. It is also common when a formula was copied from a sheet with a different layout. Check that both ranges start and end on the same rows before looking anywhere else.
SOP 2.5: Empty Strings from Upstream Formulas
A formula that returns “” (two quotation marks, no characters inside) produces a text value. It looks blank, but it is not a number. Multiplying or adding it to a number triggers #VALUE!.
This happens often in dashboards. A lookup formula returns “” when no match is found, and a downstream calculation multiplies the result. The fix is to handle the blank at the source, not at each dependent cell.

Skip the setup
Sorbet Books Bookkeeping Spreadsheet
A friendly income and expense tracker with monthly totals and a profit summary that builds itself.
Diagnostic Workflow
SOP 3.1: Identify the Failing Cell
Work from the error outward. Follow this sequence:
- Click the cell showing #VALUE!.
- Read the formula in the formula bar and note every cell reference it uses.
- Click each referenced cell and confirm whether it holds a number, text or a formula that returns text.
- If a referenced cell is itself a formula, repeat steps 2 and 3 for that cell.
- Stop when you reach a constant or raw imported value. That cell is the source.
Excel’s Trace Precedents command (Formulas tab, Formula Auditing group) draws arrows to the cells a formula depends on. It helps on large sheets, but reading the formula directly is usually faster for short chains.
SOP 3.2: Test the Data Type
Use these tests on the source cell. Each returns TRUE or FALSE.
- =ISNUMBER(B2): TRUE only if the cell holds a true numeric value.
- =ISTEXT(B2): TRUE if the cell holds text, including text that looks like a number.
- =LEN(B2)-LEN(TRIM(B2)): a result above zero means extra spaces are present.
- =CODE(MID(B2,1,1)) or =UNICODE(MID(B2,1,1)): returns the code of the first character, useful for spotting a leading non-breaking space (code 160 in the Windows character set).
If ISNUMBER returns FALSE for a cell that displays a number, the cell is text. Fix it using the methods in Module 4.
Choosing the Right Fix
SOP 4.1: Choose a Fix Method
The right method depends on the cause. The table below compares the main options across the attributes that matter in practice.
| Method | Fixes | Works on | Handles non-breaking spaces | Locale-safe | Changes source data |
|---|---|---|---|---|---|
| TRIM | Extra regular spaces | Text | No | Yes | No (in a formula) |
| CLEAN | Non-printing characters (codes 0 to 31) | Text | No | Yes | No (in a formula) |
| SUBSTITUTE with CHAR(160) | Non-breaking spaces | Text | Yes | Yes | No (in a formula) |
| VALUE | Text that looks like a number | Text | No | No (depends on settings) | No (in a formula) |
| NUMBERVALUE | Text numbers with set separators | Text | No (strip first) | Yes | No (in a formula) |
| Paste Special, Multiply by 1 | Text numbers across a range | Text | No (strip first) | Depends | Yes |
| Text to Columns | Text numbers across a range | Text | No | Depends | Yes |
| IFERROR | Hides the error | Any | Not applicable | Not applicable | No, but masks the problem |
SOP 4.2: Use TRIM, CLEAN and SUBSTITUTE for Hidden Characters
Start here when the cell looks correct but the formula still fails. A combined formula removes the most common hidden characters:
=VALUE(TRIM(SUBSTITUTE(B2,CHAR(160),” “)))
Read it from the inside out. SUBSTITUTE replaces non-breaking spaces with ordinary spaces. TRIM then removes leading, trailing and repeated spaces. VALUE converts the cleaned text to a number.
TRIM only removes the ordinary space (character 32). It does not remove the non-breaking space, which is why SUBSTITUTE comes first. CLEAN removes the control characters that often arrive from database exports, such as line feeds. Wrap it around the others if the source system is known to produce them: =VALUE(TRIM(CLEAN(SUBSTITUTE(B2,CHAR(160),” “)))).
SOP 4.3: Use VALUE or NUMBERVALUE for Conversion
VALUE converts a text string to a number. It follows the locale settings on the computer running the sheet. On a machine set to UK English, VALUE(“1.25”) returns 1.25. On a machine set to a region that uses a comma as the decimal separator, the same formula can return a different number or an error.
NUMBERVALUE avoids this problem by stating the separators in the formula:
=NUMBERVALUE(B2,”.”,”,”)
The second argument is the decimal separator and the third is the group (thousands) separator. Use this function when a workbook will be shared across regions or when the source file is known to use a fixed format. NUMBERVALUE is available in Excel 2013 and later and in Google Sheets.
SOP 4.4: Use Paste Special and Text to Columns for Bulk Conversion
For a fixed range that will not change, convert in place:
- Enter the value 1 in an empty cell and copy it.
- Select the range of text numbers.
- Choose Paste Special, then Multiply, then OK.
Excel evaluates each text value as a number during the operation and writes back a true number. Text to Columns also converts text numbers. Select the column, open the Data tab, choose Text to Columns, pick Delimited, and finish without setting a delimiter. This forces a re-parse.
Both methods overwrite the source. Copy the original column to a backup sheet first.
SOP 4.5: Use IFERROR Only After the Cause Is Fixed
IFERROR replaces an error with a chosen value:
=IFERROR(B2*C2,0)
It is useful for a finished report where a blank is preferable to an error code. It is harmful during analysis. It hides every error, including the ones that signal a real problem, such as a deleted row or a broken reference. Use it at the output stage, after the data is verified. Do not use it to make a broken calculation look finished.

Ready-made template
Monthly and annual budget tabs for Excel and Google Sheets, with category totals that add themselves up.
Common Mistakes
SOP 5.1: Using SUM Where a Plus Sign Would Fail
SUM ignores text values in a range. The formula =SUM(B2:B10) returns a total without error even when several cells contain text numbers, which means the total is too low and no warning appears.
The plus operator behaves differently. =B2+B3 returns #VALUE! when either cell is text. Users who switch from one to the other sometimes think the error is random. It is consistent, and it is a useful test: if a plus-sign total errors and the SUM total looks too small, the range contains text numbers.
SOP 5.2: Fixing One Cell and Leaving the Column
A single corrected cell does not fix the column. Imported data usually arrives in the same format for every row. Fix the whole column in one operation, or add a helper column with a conversion formula and fill it down. Then point the calculations at the helper column.
SOP 5.3: Trusting the Green Triangle
Excel’s warning triangle flags some text numbers but not all. It does not flag cells with non-breaking spaces, and it does not flag formulas that return “”. Use ISNUMBER and LEN checks in addition to the triangle.
SOP 5.4: Converting Dates as Text
A date such as “03/04/2024” may arrive as text. Excel reads it as 3 April in a UK locale and as 4 March in a US locale. Converting it with VALUE on the wrong locale gives a valid number and a wrong date. Confirm the source format before converting. Where the format is known, DATE(RIGHT(B2,4),MID(B2,4,2),LEFT(B2,2)) is explicit and avoids the locale question for dd/mm/yyyy data.
Worked Example
SOP 8.1: Scenario
A sales team exports a weekly report with four columns: Region, Units, Unit price and Total. The Total column is a formula, =B2*C2. Since the import, the Total column shows #VALUE! in six rows out of about 400. The Units and Unit price columns look correct on screen.
SOP 8.2: Diagnose the Rows
Add a diagnostic column in column F. Enter this in F2 and fill it down:
=IF(ISNUMBER(B2),”OK”,”Units text”)
Repeat in column G for unit price, referencing C2. Filter for rows that are not OK.
The filter shows three rows with “Units text” and three with “Price text”. Inspecting them reveals three patterns:
- Row 14 shows “1,200” in Units. The comma is a thousands separator.
- Row 37 shows “12 ” in Units. It has a trailing space.
- Row 52 shows “£4.50” in Unit price. The currency symbol is text.
Check the hidden characters with =LEN(B37). The result is 3 for the two-digit text “12 “, which confirms the trailing space.
SOP 8.3: Apply the Fixes
Use one helper column per field so the original data stays intact. In column H, enter the cleaned units formula for H2:
=VALUE(TRIM(SUBSTITUTE(B2,”,”,””)))
Removing the comma first avoids the locale problem. Wait, the comma in row 14 is a thousands separator in this export, so removing it is correct. If a file used a comma as a decimal separator, this formula would be wrong, which is why the source format has to be confirmed first.
For the unit price in column I, handle the currency symbol explicitly:
=NUMBERVALUE(SUBSTITUTE(C2,”£”,””),”.”,”,”)
Fill both formulas down to the last row. In the Total column, change the reference from the original columns to the helper columns: =H2*I2.
SOP 8.4: Check the Result
Run three checks before accepting the fix.
- Count the errors: =SUMPRODUCT(–ISERROR(J2:J400)) should return 0.
- Compare totals: =SUM(J2:J400) should match the figure from the source system, within rounding.
- Spot-check rows 14, 37 and 52 against the source records.
If the first check returns 0 and the totals agree, the fix is complete. If the totals differ, search for rows where the helper columns return a value that differs from what the source system shows, because a silent misread is more damaging than a visible error.
SOP 8.5: Prevent Recurrence
Ask the export team to remove currency symbols and thousands separators, or to export numbers as plain values. If that is not possible, keep the helper columns in the template and add the ISNUMBER check to the report header as a standing control.
Decision Checklist
SOP 9.1: Quick Reference
Use this sequence each time a #VALUE! error appears:
- Locate the first failing cell and read its formula.
- Test each referenced cell with ISNUMBER and ISTEXT.
- Check for hidden characters with LEN and compare with the visible length.
- If the cell is text that looks like a number, convert it with VALUE, NUMBERVALUE or Paste Special.
- If the cell contains a non-breaking space, substitute CHAR(160) before trimming.
- If the error comes from a range mismatch, align the ranges by row and column count.
- If the error comes from an empty string, fix the upstream formula that returns “”.
- Convert the whole column, not one cell, and recheck with a count of errors.
- Use IFERROR only on the final output, after the data is verified.
SOP 9.2: Frank Take
Most #VALUE! errors are a data problem wearing a formula costume. Fix the data at the point of import, and the formulas will usually behave. Hiding the error with IFERROR may make a report look finished, but it leaves the wrong number in the total, and that is a worse outcome than an error code that someone has to investigate.