On this page ⌄
- The causes of #VALUE! at a glance
- Text where Excel expects a number
- Blank-looking cells: spaces and empty text
- Numbers stored as text
- Numbers with units or codes
- Non-breaking spaces and other hidden characters
- Numbers from other regions: NUMBERVALUE
- Dates stored as text
- Ranges of different sizes
- FIND, SEARCH and other functions that return #VALUE!
- A #VALUE! passed on from another cell
- How to find the cause of #VALUE!
- When IFERROR is the right fix
- Common #VALUE! mistakes
- Frequently asked questions about the #VALUE! error
- Which versions of Excel have these functions?
- Key takeaways
Excel shows #VALUE! when a formula gets a value it can't use. Almost always, that's text where the formula needs a number. The text might be a word, a space in a cell that looks empty, or a number with something extra attached, like 2310 USD. To fix the error, find the cell that holds the text and correct what's in it:
=C3*2→ 1290=A3*2→ #VALUE!C3 holds Software's actual spend, 645, so doubling it works. A3 holds the word Software, and Excel can't double a word. In a real sheet the bad value is rarely that easy to see. This guide goes through each cause of #VALUE!, from cells that look empty to hidden characters and ranges of different sizes, and shows how to spot it and fix it at the source. Then it covers how to track the error down in a long formula, and when hiding it with IFERROR is the right call.
The examples use the same team budget as the IFERROR guide, in A1:D7. Actual is what has been spent so far, and Training's Actual cell, C6, is truly empty:
| A: Category | B: Budget | C: Actual | D: Units | |
|---|---|---|---|---|
| 2 | Rent | $2,400 | $2,400 | 1 |
| 3 | Software | $600 | $645 | 12 |
| 4 | Travel | $1,500 | $0 | 0 |
| 5 | Marketing | $2,000 | $2,310 | 5 |
| 6 | Training | $800 | 0 | |
| 7 | Supplies | $300 | $276 | 0 |
Column F holds the same Actual figures, pasted in from the finance system's export. On screen they look much the same as column C, but only two of the six are real numbers:
| A: Category | F: Pasted actual | What F really holds | |
|---|---|---|---|
| 2 | Rent | 2400 | The number 2400 |
| 3 | Software | 645 | The text 645, a number stored as text |
| 4 | Travel | 0 | The number 0 |
| 5 | Marketing | 2310 USD | Text with a currency code |
| 6 | Training | A single space | |
| 7 | Supplies | 276 | The text 276 followed by a non-breaking space |
The causes of #VALUE! at a glance
| Cause | Example | Fix |
|---|---|---|
| Text in a calculation | =A3*2 | Point the formula at the number, or fix the text |
| A cell that looks empty | =F6*2, where F6 holds a space | Select the cell and press Delete |
| A number with a unit or code | =F5*2, where F5 holds 2310 USD | SUBSTITUTE, then VALUE |
| A hidden character | =F7*2, where F7 ends in a non-breaking space | SUBSTITUTE(F7, CHAR(160), "") |
| Another country's number format | Text like 1.234,5 on US settings | NUMBERVALUE |
| A date stored as text | =H2+30, where H2 holds 23.03.2026 | DATE with LEFT, MID and RIGHT |
| Ranges of different sizes | =COUNTIFS(B2:B7, ">1000", D2:D6, ">0") | Make every range cover the same rows |
| FIND or SEARCH found nothing | =SEARCH("ware", A5) | ISNUMBER, or IFERROR |
| An error in another cell | =SUM(G2:G7), where G5 is #VALUE! | Fix the first cell with the error |
Numbers stored as text, like F3, are the odd one out. They rarely cause #VALUE! at all, but they do cause wrong totals, so they get a section too.
Text where Excel expects a number
The arithmetic operators, +, -, *, / and ^, need numbers. Give them text that can't be read as a number, and the result is #VALUE!. The word in A3 is the simplest case. Another is a formula that reaches one row too far up and lands on a header. B1 holds the word Budget:
=B1*2→ #VALUE!Pasted data makes the same mistake much harder to see. F6 looks empty, but it holds a space, and a space is text:
=F2+F6→ #VALUE!=SUM(F2, F6)→ 2400The plus sign fails on the text. SUM skips text in the cells it refers to, so it adds F2 and ignores F6, and PRODUCT does the same. Microsoft's troubleshooting page suggests swapping operators for these functions, and on a long chain of plus signs that does make the error go away:
=F2+F3+F4+F5+F6+F7→ #VALUE!=SUM(F2:F7)→ 2400SUM only skips text in cells it refers to. Text typed straight into SUM is treated differently: Excel tries to convert it, and returns #VALUE! when it can't:
=SUM(F5)→ 0=SUM("645", 1)→ 646=SUM("2310 USD")→ #VALUE!Functions that take a single number, rather than a list, react like the operators. ROUND can't round text, so =ROUND(F5, 0) returns #VALUE! too.
Blank-looking cells: spaces and empty text
A truly empty cell counts as 0 in a calculation, so arithmetic on it doesn't return #VALUE!. Training's Actual cell, C6, is empty:
=C6*2→ 0=C2+C6→ $2,400A cell that holds only a space looks exactly the same, but it's text. That's F6:
=F6*2→ #VALUE!You can't see a space, so ask Excel about the cell instead:
=ISBLANK(C6)→ TRUE=ISBLANK(F6)→ FALSE=LEN(F6)→ 1=CODE(F6)→ 32LEN counts one character, and CODE says it's character 32, an ordinary space. =F6="" returns FALSE as well, because a space isn't the same as empty text. To test for a cell that's empty or holds nothing but spaces, use =TRIM(F6)="", which returns TRUE.
To fix it, select the cell and press Delete. To clear a whole column of them, select the column, press Ctrl+H, type a single space in Find what, leave Replace with empty and click Replace All. Only do that on columns of numbers, because it also removes the spaces between words.
Cells that hold only an apostrophe look empty too. Microsoft suggests filtering the column for (Blanks) and any empty-looking items in the filter list, then pressing Delete on the cells that show.
Empty text from a formula. A formula that returns "" to look blank causes the same problem. Say E2:E7 holds each category's cost per unit, =IFERROR(C2/D2, "") copied down. Travel, Training and Supplies have no units, so E4, E6 and E7 look empty. They hold empty text, though:
=ROUND(E3, 0)→ 54=ROUND(E7, 0)→ #VALUE!=SUM(E2:E7)→ 2915.75E3 is Software's 53.75, which rounds to 54. SUM still works, because it skips text, but any formula that does math with E7 itself fails. There are two ways out:
- Return 0 instead of
""when other formulas use the result, as in=IFERROR(C2/D2, 0). To keep the zeros out of sight, give the column the custom number format0.00;-0.00;. Its third section, for zeros, is empty, so zeros show as nothing while the cells still hold 0. - Test the cell with IF before you use it:
=IF(E7="", "", ROUND(E7, 0))returns empty text for E7 and the rounded number for the rows that have one.
The IFERROR guide has more on when "" is the right fallback.
Numbers stored as text
F3 holds 645 as text, which is common in data exported from other systems. You might expect it to cause #VALUE!, but it usually doesn't. When an operator meets text, Excel first tries to read it as a number, and "645" reads fine:
=F3*2→ 1290=F3-B3→ 45="645"*2→ 1290The trouble with numbers stored as text is quieter. SUM and AVERAGE skip them, and a comparison with a real number fails:
=F2+F3+F4→ 3045=SUM(F2:F4)→ 2400=F3=645→ FALSEHere the plus signs get the right answer and SUM gets the wrong one, the opposite of what happened with the space in F6. A lookup for the number 645 won't find the text 645 either, and returns #N/A.
There are three ways to spot them:
- They sit on the left of the cell, while real numbers sit on the right, unless someone changed the alignment.
- Excel usually marks them with a small green triangle in the top-left corner of the cell.
=ISNUMBER(F3)returns FALSE and=ISTEXT(F3)returns TRUE. For the real number in C3, it's the other way round.
And three ways to convert them:
- VALUE turns text into a number:
=VALUE(F3)returns 645. Two minus signs do the same, as in=--F3. - Convert to Number: select the cells, click the warning icon that appears next to them and choose Convert to Number.
- Text to Columns: select one column, choose Data > Text to Columns and click Finish straight away. Excel enters every cell again, and the ones it can read become numbers.
VALUE reads text in any number format Excel would accept if you typed it into a cell. On US settings, that includes currency symbols, thousands separators and percent signs:
=VALUE("$2,310")→ 2310=VALUE("15%")→ 0.15Text with anything else in it can't be read. That's where #VALUE! comes from, and it's what the next three sections deal with.
Numbers with units or codes
F5 holds 2310 USD. That isn't a number format Excel recognizes, so every calculation with it fails, and VALUE fails too:
=F5*2→ #VALUE!=VALUE(F5)→ #VALUE!Remove the extra part with SUBSTITUTE, then convert what's left:
=VALUE(SUBSTITUTE(F5, " USD", ""))→ 2310SUBSTITUTE replaces " USD", including its leading space, with nothing. That leaves the text 2310, and VALUE turns it into a number. The same pattern works for any label, such as " kg" or " pcs".
In Microsoft 365 and Excel 2024, TEXTBEFORE can take everything before the first space, whatever the label is:
=VALUE(TEXTBEFORE(F5, " "))→ 2310Non-breaking spaces and other hidden characters
F7 looks like an ordinary 276, but it still breaks a calculation, and LEN shows why:
=F7*2→ #VALUE!=LEN(F7)→ 4=CODE(RIGHT(F7))→ 160There are three digits, but four characters. RIGHT takes the last one, and CODE shows it's character 160, a non-breaking space. Web pages and some exports use it where you'd expect an ordinary space. Excel can't read a number with one in it, and TRIM doesn't remove it, because TRIM only removes character 32:
=VALUE(TRIM(F7))→ #VALUE!=VALUE(SUBSTITUTE(F7, CHAR(160), ""))→ 276CHAR(160) is the non-breaking space, and SUBSTITUTE replaces it with nothing. A number has no use for it. In names and other text, replace it with a regular space instead, as the TRIM guide shows, so words don't run together.
Other characters you can't see cause the same problem, mostly line breaks and tabs from other systems. CLEAN removes them: it deletes the nonprinting characters, codes 0 to 31. For data that might have every problem at once, combine all three:
=VALUE(TRIM(CLEAN(SUBSTITUTE(F7, CHAR(160), " "))))→ 276SUBSTITUTE turns the non-breaking space into a regular one, CLEAN removes line breaks and tabs, TRIM removes the spaces at the ends, and VALUE converts the result. To fix the cells themselves without a formula, use Find & Replace: in Excel for Windows, click in Find what, hold Alt and type 0160 on the numeric keypad, leave Replace with empty and click Replace All.
Numbers from other regions: NUMBERVALUE
Countries write numbers differently. The US writes one thousand two hundred thirty-four and a half as 1,234.5, while much of Europe writes 1.234,5. Excel reads text numbers using your computer's regional settings, so text written the other way round can't be read, and arithmetic on it returns #VALUE!.
NUMBERVALUE converts text with whichever separators you give it. The second argument is the decimal separator and the third separates the thousands. Both are optional, and if you leave them out, NUMBERVALUE uses your regional settings:
=NUMBERVALUE(text, [decimal_separator], [group_separator])=VALUE("1.234,5")→ #VALUE!=NUMBERVALUE("1.234,5", ",", ".")→ 1234.5=NUMBERVALUE("2.310,00", ",", ".")→ 2310The first result is on US settings. NUMBERVALUE gives the same answer on any computer, because the separators are written into the formula. If a colleague in Germany sent Marketing's actual as 2.310,00, the last formula turns it into 2310. For US-style text on a computer set up for European numbers, swap the separators: =NUMBERVALUE("1,234.5", ".", ",") returns 1234.5.
To convert a whole column, select it and use Data > Text to Columns. In step 3, click Advanced to set the decimal and thousands separators the text uses.
Dates stored as text
Excel stores dates as numbers, so a date stored as text breaks date math the same way. Say H2 holds Rent's due date as the text 23.03.2026, exported from a European system, and Excel is set to US dates:
=H2+30→ #VALUE!=ISNUMBER(H2)→ FALSEA real date returns TRUE, because it's a serial number underneath. Text in a date form Excel understands, such as 2026-03-23, still works in a calculation, so the error only shows up for text it can't read. The fix is to turn the text into a real date. DATEVALUE converts text Excel can read, and DATE with LEFT, MID and RIGHT handles layouts it can't:
=DATE(RIGHT(H2, 4), MID(H2, 4, 2), LEFT(H2, 2))+30That returns April 22, 2026, 30 days after March 23. The days between dates guide covers these fixes in more detail, including Text to Columns for a whole column.
Ranges of different sizes
Functions that work through several ranges side by side need every range to cover the same number of rows. When one range is shorter, most of them return #VALUE!. This counts the categories with a budget over $1,000 and at least one unit:
=COUNTIFS(B2:B7, ">1000", D2:D7, ">0")→ 2=COUNTIFS(B2:B7, ">1000", D2:D6, ">0")→ #VALUE!Rent and Marketing match. In the second formula, D2:D6 stops one row short, and Excel won't guess what you meant. The same slip breaks all of these:
| Formula with a short range | Result | With the full range |
|---|---|---|
=SUMIFS(C2:C7, D2:D6, ">0") | #VALUE! | $5,355 |
=AVERAGEIFS(C2:C7, D2:D6, ">0") | #VALUE! | $1,785 |
=SUMPRODUCT(--(D2:D7>0), C2:C6) | #VALUE! | $5,355 |
=FILTER(A2:A7, D2:D6>0) | #VALUE! | Rent, Software and Marketing |
=XLOOKUP("Rent", A2:A7, B2:B6) | #VALUE! | $2,400 |
The fix is always the same: start and end every range on the same rows. If you copy formulas like these, lock the ranges with dollar signs, as in $D$2:$D$7, so they don't shift.
Two cases don't warn you. SUMIF and AVERAGEIF quietly stretch a short sum or average range to the size of the first range, which can give a believable but wrong answer, as the AVERAGEIF guide shows. And SUMPRODUCT written with * instead of commas returns #N/A rather than #VALUE!, as explained in the SUMPRODUCT guide. The COUNTIF and FILTER guides cover their own versions of this error.
FIND, SEARCH and other functions that return #VALUE!
Some functions return #VALUE! on purpose, to say they couldn't do what you asked. The most common are FIND and SEARCH, which return #VALUE! when the text they look for isn't there:
=SEARCH("ware", A3)→ 5=SEARCH("ware", A5)→ #VALUE!=FIND("Ware", A3)→ #VALUE!"ware" starts at the 5th character of Software, and Marketing doesn't contain it at all. FIND fails on Software too, because it's case-sensitive and the w in the cell is lowercase. Here the error is a real answer, "not found", so turn it into something you can use. ISNUMBER gives TRUE or FALSE, and IF can build on that:
=ISNUMBER(SEARCH("ware", A5))→ FALSE=IF(ISNUMBER(SEARCH("ware", A3)), "Tech", "Other")→ TechThe LEFT, RIGHT and MID guide shows how FIND and SEARCH are used to cut text apart, and what to do when the character isn't there.
Other functions have their own #VALUE! rules. The ones you're most likely to meet:
| Function | Returns #VALUE! when | Fix |
|---|---|---|
| FIND, SEARCH | The text isn't there, or FIND's upper and lower case don't match | ISNUMBER around it, or SEARCH instead of FIND |
| LEFT, RIGHT, MID | num_chars is negative, or MID's start_num is below 1 | Check the calculated argument |
| VLOOKUP | col_index_num is less than 1 | Count the columns from 1 |
| CHOOSE | index_num is below 1 or higher than the number of values | List every value |
| DATEVALUE, DAYS | A date is text Excel can't read | See dates stored as text |
| SUMIF, SUMIFS, COUNTIF, COUNTIFS | They point at a range in another workbook that's closed | Open the other workbook, or use SUMPRODUCT |
| CONCAT, TEXTJOIN | The result is longer than 32,767 characters | Join fewer cells per formula |
A #VALUE! passed on from another cell
An error in one cell spreads to every formula that uses it. Say G2:G7 holds each category's difference from budget, worked out from the pasted figures: =F2-B2 in G2, copied down. Rows 5, 6 and 7 hit the text in F5, F6 and F7:
| A: Category | G: =F2-B2 copied down | |
|---|---|---|
| 2 | Rent | 0 |
| 3 | Software | 45 |
| 4 | Travel | -1500 |
| 5 | Marketing | #VALUE! |
| 6 | Training | #VALUE! |
| 7 | Supplies | #VALUE! |
Software still works, because "645" can be read as a number. Any formula that refers to the error cells returns the same error, and that includes SUM, which skips text but not errors:
=SUM(G2:G7)→ #VALUE!=G5*2→ #VALUE!So when a total shows #VALUE!, there may be nothing wrong with the total's own formula. Follow the error back to the first cell that has it and fix it there. In this case, that's the text in column F, not the formulas in G or the total.
If you need a total while you fix the source, AGGREGATE can skip errors. Its first argument picks the calculation, 9 for a sum, and the second, 6, tells it to ignore error values. COUNTIF tells you how much it skipped:
=AGGREGATE(9, 6, G2:G7)→ -1455=COUNTIF(G2:G7, "#VALUE!")→ 3That total covers only three of the six categories. With the clean figures in column C, the categories are $1,969 under budget in total, not $1,455, so treat AGGREGATE as a stopgap and show the count next to it.
Wrapping the formulas in G with IFERROR is worse than leaving the error:
=IFERROR(F5-B5, 0)→ 0That says Marketing spent exactly its budget. It actually went $310 over.
How to find the cause of #VALUE!
In a long formula, the hard part is working out which piece fails. Excel has a few tools for it.
Evaluate Formula steps through a formula one part at a time. Select the cell, choose Formulas > Evaluate Formula and click Evaluate repeatedly. The underlined part is the one worked out next. For =F2+F3+F4+F5+F6+F7, the steps show each cell's value in turn, with text in quotes, so "2310 USD" stands out where a number should be. Microsoft's own example shows a hidden space this way, as " ". You can also open it from the warning icon next to the error cell, by choosing Show Calculation Steps.
F9 on part of a formula. In Excel for Windows, select part of the formula in the formula bar, such as F5, and press F9. Excel shows that part's value in place of the text you selected.
Trace Error follows an error back to where it started. Select the cell with the error and choose Formulas > Error Checking > Trace Error. Excel draws arrows from the cells the error came from. Choose Formulas > Remove Arrows when you're done.
Check the cells themselves. Once you know which cells feed the formula, a few test functions show what's really in them:
| Check | C3, a real number | F3, a number stored as text | F6, a space | F7, a hidden character |
|---|---|---|---|---|
=ISNUMBER(cell) | TRUE | FALSE | FALSE | FALSE |
=ISTEXT(cell) | FALSE | TRUE | TRUE | TRUE |
=LEN(cell) | 3 | 3 | 1 | 4 |
=cell*1 | 645 | 645 | #VALUE! | #VALUE! |
To check a whole column at once, count the text cells in it. A column of amounts should have none:
=SUMPRODUCT(--ISTEXT(F2:F7))→ 4=SUMPRODUCT(--ISTEXT(C2:C7))→ 0To select the text cells rather than count them, select the column, choose Home > Find & Select > Go To Special, pick Constants and tick only Text.
When IFERROR is the right fix
IFERROR replaces any error with a value you choose. For #VALUE!, that's usually the wrong move. The error is telling you a cell holds the wrong thing, and hiding it leaves the wrong thing in place, as the Marketing example above shows. Microsoft's troubleshooting page makes the same point: IFERROR hides all errors, not just #VALUE!.
It's the right tool when the error is an expected outcome rather than a mistake in the data:
- FIND or SEARCH not finding the text.
=IFERROR(SEARCH("ware", A5), 0)returns 0, which is a fair answer for "not there". - A division where the divisor can really be 0, such as a category with no units yet.
- A few cells you can't fix, like an odd text date in an export you don't control:
=IFERROR(H2+30, "Check date")returns Check date and flags the row for someone to look at.
Fix the data first, then add IFERROR for the cases that are left. Wrap only the part of a formula that's expected to fail, so other mistakes still show.
The budget has an expected error of its own. Travel has no units, so its cost per unit is a division by zero. That's #DIV/0!, not #VALUE!, but the decision is the same: the data is correct, and the error only means "no units", so showing 0 instead is fair. Try it in the live sheet below.
Try it yourself
A live spreadsheet. Type a formula and press Enter to check it.
Work out the cost per unit for Travel (Actual ÷ Units). Units is 0, so show 0 instead of an error.
Write your formula in the green cell, G2.
Click a cell to add it to your formula, drag to select a range, or click a column letter for the whole column.
The IFERROR guide covers the function in full, along with IFNA, the safer choice for lookups.
Common #VALUE! mistakes
| Problem | What's going on | Fix |
|---|---|---|
#VALUE! from a cell that looks empty | It holds a space, an apostrophe or "" from a formula | Select it and press Delete, or return 0 instead of "" |
| The error went away with SUM, but the total is too low | SUM skips text, including numbers stored as text | Convert the text to numbers |
VALUE returns #VALUE! | The text holds more than a number, such as a unit or a non-breaking space | Remove the extra characters with SUBSTITUTE first |
| TRIM didn't help | The space is CHAR(160), which TRIM doesn't remove | =VALUE(SUBSTITUTE(F7, CHAR(160), "")) |
European numbers like 1.234,5 give #VALUE! | The separators don't match your regional settings | =NUMBERVALUE(text, ",", ".") |
| Imported amounts are 1,000 times too small | Text like 1.234 was read as a decimal | NUMBERVALUE with the right separators |
#VALUE! when doing math with dates | A date is text Excel can't read | DATEVALUE, or DATE with LEFT, MID and RIGHT |
#VALUE! from COUNTIFS, SUMIFS, AVERAGEIFS, SUMPRODUCT or FILTER | The ranges are different sizes | Make every range cover the same rows |
#VALUE! from FIND or SEARCH | The text isn't there, or FIND's case doesn't match | ISNUMBER around it, or SEARCH instead of FIND |
A total shows #VALUE!, but its formula looks fine | A cell it adds up holds the error | Trace Error, then fix the first cell in the chain |
| IFERROR shows 0 where there should be a number | IFERROR is hiding a data problem | Remove it, fix the data, and add it back only for expected errors |
Frequently asked questions about the #VALUE! error
Why do I get #VALUE! when I subtract two numbers?
First check that both cells really hold numbers, with ISNUMBER. If =B1-A1 still fails with plain numbers in both cells, and you're on Windows, the cause may be a regional setting. Microsoft's troubleshooting page describes it: if the Windows list separator is set to the minus sign, subtraction breaks. Open the Region control panel, choose Additional settings, and change List separator to something else, such as a comma. Then edit the cells that show the error and put back any minus signs that turned into commas.
Does #VALUE! mean my formula is typed wrong?
Usually not. A misspelled function name gives #NAME?, and a reference to a deleted cell gives #REF!. #VALUE! almost always means one of the values is the wrong type. The exceptions are mistakes in the arguments, such as ranges of different sizes or a negative number of characters in LEFT.
How do I find every #VALUE! error on a sheet?
Choose Home > Find & Select > Go To Special, pick Formulas and tick only Errors. Excel selects every formula on the sheet that shows an error of any kind. To count just the #VALUE! errors in a range, give COUNTIF the error as text: =COUNTIF(G2:G7, "#VALUE!") returns 3.
Can I show 0 or a blank instead of #VALUE!?
Yes, with IFERROR, as in =IFERROR(F5*2, 0). But if the error comes from text that should be a number, the 0 is wrong too, just harder to notice. Use IFERROR for expected errors, and use 0 rather than "" when other formulas build on the result.
Which versions of Excel have these functions?
VALUE, TRIM, CLEAN, SUBSTITUTE, ISNUMBER, ISTEXT, LEN, CODE, FIND, SEARCH and SUM work in every version of Excel, on Windows and Mac, and in Excel for the web. IFERROR needs Excel 2007 or later, AGGREGATE Excel 2010 or later, and NUMBERVALUE Excel 2013 or later. FILTER needs Microsoft 365 or Excel 2021 or later, and TEXTBEFORE needs Microsoft 365 or Excel 2024.
Older versions have one extra source of #VALUE!. Formulas that calculate a whole range at once, such as =SUM((D2:D7>0)*C2:C7), need Ctrl+Shift+Enter in Excel 2019 and earlier. Entered with Enter alone, they can return #VALUE! or a wrong number. In Microsoft 365 and Excel 2021 or later, Enter is enough, and that formula returns $5,355.
For Microsoft's own troubleshooting steps, see how to correct a #VALUE! error, and its pages on #VALUE! in the AVERAGE and SUM functions and #VALUE! in the SUMPRODUCT function.
For more practice, the error handling topic has the free iferror-divide exercise on the same budget, plus Premium exercises on checking a cell with ISNUMBER, testing for a blank cell, checking before you calculate and IFERROR with a message.
Key takeaways
- #VALUE! means a formula got a value of the wrong type, almost always text where a number should be. Fix the cell that holds the text, not the formula that reports it.
- Operators like
+and*fail on text, while SUM skips it. Switching to SUM hides the error, but the total can still be wrong. - Cells that look empty can hold a space or
"". Check them with LEN and ISBLANK, and clear them with Delete. - Arithmetic converts a number stored as text, but SUM skips it. Convert it with VALUE, remove units and CHAR(160) with SUBSTITUTE first, and use NUMBERVALUE for another country's separators.
- Ranges of different sizes, FIND and SEARCH, and errors passed on from other cells cause the rest. Use IFERROR only when the error is expected.
Practice
Keep going with VALUE and NUMBERVALUE exercises
Reading gets you started. Solving a few of these is what makes it stick.
- 1Avoid #DIV/0!FreeWork out the cost per unit for Travel (Actual ÷ Units). Units is 0, so show 0 instead of an error.→
- 2Check for a number PremiumIs there a number in Training's Actual cell? Return TRUE or FALSE.→
- 3IFERROR with a message PremiumWork out the cost per unit for Supplies (Actual ÷ Units). It has no units, so show "No units" instead of an error.→
- 4Blank or not PremiumReturn "Not started" if Training's Actual cell is blank, otherwise "Started".→
- 5Check before you calculate PremiumWork out Training's variance %, (Actual − Budget) ÷ Budget, but show "No data" if its Actual cell is blank.→

About the author
Brian Millot
Brian Millot is an indie hacker based in France who builds small, focused web products. He built and runs Excel Formula Practice, from the in-browser spreadsheet that checks your formulas to the exercise library, and he writes the formula guides.