To leave a cell blank when a referenced cell is blank, use an IF formula that tests for emptiness and returns an empty string: =IF(A1="","",A1). This returns nothing (a zero-length string) when A1 is empty, and the value of A1 otherwise. You can extend the pattern to calculations, lookups, or concatenations by wrapping them in the same IF test. No add-ins are required, but you should know the difference between a truly empty cell and one containing a formula that returns "".

What You'll Need

  • Microsoft Excel (any recent desktop or Microsoft 365 version; the steps apply to Excel for Windows and Mac).
  • A worksheet with at least one cell you want to test for blankness.
  • Basic familiarity with entering formulas and copying them down a column.

Step-by-Step

  1. Identify the source cell and the output cell. For example, if you want B1 to mirror A1 but stay blank when A1 is empty, the source is A1 and the output is B1.
  2. Enter the basic blank-check formula. Click the output cell (B1) and type =IF(A1="","",A1). Press Enter. If A1 is empty, B1 shows nothing; if A1 contains text or a number, B1 shows that value.
  3. Copy the formula down. Drag the fill handle (the small square at the bottom-right of the cell) down the column. Excel adjusts the row references automatically, so B2 tests A2, B3 tests A3, and so on.
  4. Apply the same pattern to a calculation. If you want to sum A1 and A2 only when both are filled, use =IF(OR(A1="",A2=""),"",A1+A2). The OR function returns TRUE if either cell is blank, so the result stays blank until both have values.
  5. Use it with VLOOKUP or XLOOKUP. Wrap the lookup in an IF test on the lookup value: =IF(A1="","",VLOOKUP(A1,Sheet2!A:B,2,FALSE)). This prevents #N/A errors when the lookup cell is empty.
  6. Handle cells that contain a formula returning "". A cell with =IF(...) that outputs an empty string is not truly blank; A1="" still returns TRUE for it, so the basic test works. But ISBLANK(A1) returns FALSE for such a cell. Use =IF(ISBLANK(A1),"",A1) only when you need to distinguish a truly empty cell from one with a formula.
  7. Test the result. Clear A1 and confirm B1 shows nothing. Type a value into A1 and confirm B1 updates. If B1 shows 0 instead of blank, you likely omitted the empty-string argument or used a function that coerces blanks to zero.
  8. Format if needed. An empty string displays as blank, but the cell still contains a formula. If you need a genuinely empty cell for downstream tools, copy the column and use Paste Special > Values, then delete the original formulas. Note that this removes the dynamic link to the source cells.

Common Mistakes

  • Using only one argument in IF. =IF(A1="",A1) returns FALSE when A1 is empty, not a blank. Always supply the third argument as "".
  • Confusing blank with zero. A cell containing 0 is not blank. If you want to treat zero as blank, test A1=0 or A1="" separately, and decide which behavior you need.
  • Assuming ISBLANK catches formula blanks. As noted, ISBLANK returns FALSE for a cell with a formula that returns "". Use the equality test A1="" if you want to catch both.
  • Forgetting to lock references when copying across. If you copy a formula sideways, relative references shift. Use $A1 or A$1 as appropriate, or press F4 to cycle reference types.
  • Leaving the output formatted as text. If the source contains numbers, the IF formula returns a number, but the cell may be pre-formatted as Text, causing it to display left-aligned or as a stored number. Set the output column to General or Number format before entering the formula.

Tips

  • Use IFERROR around lookups to catch other errors while still leaving blanks blank: =IF(A1="","",IFERROR(VLOOKUP(A1,Sheet2!A:B,2,FALSE),"")).
  • For a whole row of outputs, you can enter the formula once and double-click the fill handle to copy it down to the last adjacent row.
  • To count how many cells are truly blank in a range, use =COUNTBLANK(A1:A10). It counts both empty cells and formula cells returning "".
  • If you need the blank result to be a real empty cell for export, use Power Query or copy-paste values as described in step 8, and be aware that the formula link is lost.
  • When building dashboards, keep the blank-returning formulas in a helper column and reference that column elsewhere; this makes it easier to change the blank logic in one place.

Troubleshooting

  • The formula returns 0 instead of blank. Check that you included the third argument "". Also check whether the source cell contains a space character; a space is not blank, so A1="" is FALSE. Use TRIM(A1)="" to treat spaces as blank.
  • The formula returns FALSE. You likely wrote =IF(A1="",A1) without the third argument. Add ,"" before the closing parenthesis.
  • ISBLANK does not work as expected. If the source cell contains a formula, ISBLANK returns FALSE even when the formula outputs "". Switch to the equality test A1="".
  • Copying the formula gives wrong references. Use absolute references where needed. For example, if the test cell should always be A1, write $A$1.
  • The output cell shows a green triangle or error indicator. This often means the formula is inconsistent with neighboring formulas. Click the indicator and choose Ignore Error if the formula is intentional, or check for a typo in the formula.

Frequently Asked Questions

What is the difference between "" and ISBLANK?

"" is an empty string returned by a formula; ISBLANK tests whether a cell is truly empty (no formula, no value). A cell with a formula returning "" is not blank to ISBLANK but is equal to "" in a comparison.

Can I leave a cell blank based on multiple conditions?

Yes. Use AND or OR inside the IF test, for example =IF(AND(A1="",B1=""),"",A1+B1). Adjust the logic to match when you want the blank result.

Why does my IF formula show 0 when the source is blank?

Because you omitted the third argument or used a function that coerces blanks to zero. Always include ,"" as the false-result argument when you want a blank.

Does this work in Excel for Mac and Excel Online?

Yes. The IF function and empty-string syntax are identical across Excel for Windows, Mac, and Excel for the web. Menu labels for Paste Special may differ slightly by version.

How do I make the blank result a truly empty cell?

Formulas cannot return a truly empty cell. Copy the formula column, paste as values, then delete the original formulas. This removes the dynamic link, so repeat the process if the source data changes.