Excel formula fixes
The formula looks right, and the cell says 0, #N/A or #SPILL! anyway. Each page below takes one symptom, ranks its causes from most to least likely, and gives you a live sheet that shows the problem so you can fix it yourself. Every broken and fixed formula is checked before the page is published.
- 0SUMIFS returns 0: why, and how to fix it
SUMIFS returns 0, not an error, when no row matches every condition, so the most likely cause is a criteria that differs from the data: a typo, a singular for a plural, or a stray space.
- #N/AVLOOKUP returns #N/A when the value exists
When VLOOKUP can't find a value you can see, the two values look alike but aren't: one is text and the other a number, or one has a space you can't see.
- Ceramic potVLOOKUP returns the wrong value: how to fix it
A wrong result with no error almost always means VLOOKUP did an approximate match: its last argument was left out, so it defaulted to TRUE and assumed the first column is sorted.
- $0.00Formula not copying down correctly: why, and how to fix it
If a formula is copied down a column and the results are incorrect, the most likely issue is a relative reference that should have been absolute: a cell like G1 without $ moves to G2, G3 and so on in the copies.
- #N/ALookup fails because numbers are stored as text
Match the lookup value's type to the table's: if the table holds text IDs, look up M1&""; if it holds real numbers, look up VALUE(M1).
- 0SUMIFS with dates not working: how to fix it
Keep the dates in cells and join the comparison to each with &: SUMIFS(F2:F13, B2:B13, ">="&K1, B2:B13, "<="&K2).
- 0COUNTIF with a cell reference: how to write the criteria
Put only the operator in quotes and join the cell with &: COUNTIF(F2:F13, ">="&K1).
- #SPILL!SUMIF #SPILL! error: why it happens and how to fix it
SUMIF spills when its criteria is a range, returning one total per row.
- #VALUE!FILTER #VALUE! error: what to check
Make the condition range cover exactly the same rows as the data: FILTER(A2:A9, B2:B9="North"), not B2:B8.
- #VALUE!SUMPRODUCT #VALUE! error: why it happens and how to fix it
Make every range in SUMPRODUCT start and end on the same rows: SUMPRODUCT(F2:F13, G2:G13), not G2:G10.
- #SPILL!VLOOKUP #SPILL! error: how to fix it
A VLOOKUP whose lookup value is a range spills one result per value.
- Excel formula not calculating: how to fix it
If formulas show a result but don't update when you change the data, Excel's calculation is set to Manual: choose Automatic under Formulas › Calculation Options (or File › Options › Formulas).
Looking for what an error code means? The Excel error decoder has a page for every error, from #N/A to #SPILL!. For a formula you can't read, paste it into the formula explainer.