Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Formula Returning Zero? Fix It Fast

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

A formula that returns 0 in Excel is usually not broken. Excel is doing exactly what you asked, and the zero is the correct answer to the question the formula actually poses. The three most common causes are a formula that references an empty cell (Excel treats blank cells as 0 in arithmetic), a lookup that finds no match but is wrapped in IFERROR with 0 as the fallback, or a calculation setting switched to Manual so the cell shows an old result. Fix the reference, the fallback value, or the calculation mode and the zero goes away. Before changing anything, click the cell and read the formula bar: the answer is almost always visible in what the formula points at.

What You'll Need

  • Excel for Windows, Excel for Mac, or Excel for the web (the steps below apply to all three; menu labels can differ slightly by version, platform and region).
  • The workbook containing the zero result, open and editable.
  • Basic ability to click a cell and read the formula bar.

Step-by-Step

  1. Select the cell showing 0 and look at the formula bar. Read the formula character by character. Confirm what it references and whether it contains IFERROR, IF, or a lookup function. This single step identifies most causes.
  2. Check whether the formula is doing arithmetic on blank cells. If the formula is something like =A1*B1 and B1 is empty, Excel multiplies by 0 and returns 0. Click each referenced cell and confirm it actually contains a number. A cell that looks empty may contain a space character; press Ctrl+End (Command+End on Mac) to see the last used cell, or select the range and use Find & Select > Go To Special > Blanks to reveal genuinely empty cells.
  3. Look for an IFERROR wrapper with a zero fallback. Formulas such as =IFERROR(VLOOKUP(A2,Sheet2!A:B,2,FALSE),0) return 0 whenever the lookup fails. Remove the wrapper temporarily to see the real error, then fix the lookup itself (see next step) rather than hiding the problem.
  4. Test the lookup value directly. For VLOOKUP, XLOOKUP, INDEX/MATCH or SUMIFS, type the lookup value into an empty cell and compare it with the matching value in the source range using =A2=Sheet2!A5. If that returns FALSE, the values do not match even though they look identical. Common culprits are trailing spaces (fix with TRIM), numbers stored as text (fix with VALUE or by using Text to Columns), and inconsistent formatting.
  5. Check the lookup range and column index. In VLOOKUP, confirm the table range includes the column you are returning and that the column index counts from the first column of that range, not from column A of the sheet. An index pointing at an empty column returns 0, not an error.
  6. Confirm the calculation mode is Automatic. Go to Formulas > Calculation Options and make sure Automatic is selected. If Manual is chosen, press F9 (Fn+F9 on some laptops) to recalculate. In Excel for the web, calculation is always automatic, so this step applies to desktop only.
  7. Check for circular references. If the formula refers, directly or through a chain, back to its own cell, Excel may display 0 and show a warning in the status bar. Go to Formulas > Error Checking > Circular References to locate the cell.
  8. Verify the cell is not formatted to hide the real value. Select the cell, open Format Cells (Ctrl+1 or Command+1), and check the Number tab. A custom format can display 0 while the underlying value is different, or display nothing while the value is 0.
  9. Replace the zero with a blank or a message if that is what you want. Once you understand why the zero appears, wrap the formula in IF to control the output, for example =IF(A1="","",A1*B1) or =IFERROR(VLOOKUP(A2,Sheet2!A:B,2,FALSE),"Not found"). This makes the sheet readable without hiding genuine problems.

Common Mistakes

  • Hiding errors with IFERROR before diagnosing them. A zero fallback makes a broken lookup look like a valid result. Remove the wrapper first, fix the cause, then decide whether a fallback is still needed.
  • Assuming a cell is empty because it looks empty. Spaces, apostrophes and non-breaking spaces all count as content and break matches. TRIM and CLEAN remove most of them.
  • Mixing text and numbers. A number stored as text will not match a real number in a lookup, and arithmetic on it can produce 0 or #VALUE!. The green triangle in the corner of a cell is Excel's hint that this is happening.
  • Forgetting that blank cells are zero in arithmetic. =A1+B1 with both blank returns 0, not an error. Use IF to check for blanks before calculating.
  • Editing the wrong cell. If a formula returns 0 across a whole column, check the first cell and then confirm the fill or copy actually updated the references rather than repeating the same one.

Tips

  • Use Evaluate Formula (Formulas > Evaluate Formula) to step through a calculation one piece at a time and see exactly where the zero enters.
  • Press Ctrl+` (the key left of 1) to toggle Show Formulas, which displays every formula on the sheet at once and makes inconsistent references easy to spot.
  • Turn on Trace Precedents and Trace Dependents under Formulas > Formula Auditing to see which cells feed a formula and which cells it affects.
  • Prefer XLOOKUP over VLOOKUP where available: it handles missing values more predictably and does not depend on a column index.
  • Keep lookup keys in the same data type on both sheets. Convert text-numbers to real numbers at the source rather than patching every formula.

Troubleshooting

If the cell still shows 0 after the steps above, work through these checks in order.

  • The formula returns 0 only on some rows. Compare a working row with a failing one side by side. The difference is usually in the data, not the formula: a trailing space, a text-formatted number, or a lookup value that exists in one sheet but not the other.
  • The whole column shows 0. Check whether the formula was entered as an array formula in older versions and is now spilling incorrectly, or whether the fill handle copied an absolute reference ($A$1) where a relative one was needed.
  • Nothing recalculates when the source data changes. Confirm Calculation Options is set to Automatic, and check that the workbook is not in a state where Excel has paused calculation because of a very large model.
  • The formula worked yesterday and now returns 0. Look for a changed source cell, a deleted row, or a sheet that was renamed. Broken references usually show #REF!, but a reference to an empty replacement cell returns 0.
  • You cannot find the cause. Copy the formula to a blank sheet, replace each reference one at a time with a literal value, and see which replacement changes the result. That isolates the faulty reference.

Frequently Asked Questions

Why does my VLOOKUP return 0 instead of the value I expect?

Either the lookup found a match in a row where the return column is empty, or the formula is wrapped in IFERROR with 0 as the fallback and the lookup actually failed. Remove the wrapper to see which one it is.

Why does a simple addition formula return 0?

The cells being added are blank or contain text that Excel treats as zero in that context. Click each referenced cell and confirm it holds a real number.

How do I stop a formula from showing 0 when a cell is empty?

Wrap the formula in IF, for example =IF(A1="","",A1*2). This returns a blank instead of 0 until data is entered.

Does Excel treat blank cells as zero in every formula?

In arithmetic, yes: a blank cell is treated as 0. In comparisons and lookups, a blank is treated as empty, which is a different thing and can cause matches to fail.

Why does the formula bar show the right formula but the cell shows 0?

The cell may be formatted to display 0 regardless of the underlying value, or calculation may be set to Manual and the displayed result is out of date. Check Format Cells and Calculation Options.

Can a circular reference cause a 0 result?

Yes. When a formula depends on its own cell, Excel cannot resolve it and may display 0 alongside a warning. Formulas > Error Checking > Circular References locates the cell.