logo
search
Formula Errors

How to Fix Excel Blank Cells Displaying as 0 in Concatenation Formulas

Maira MehtabMaira Mehtab Sep 20, 2026 870 views

Question details

The user needs to prevent concatenation formulas from returning '0 - 0' when referencing cells that appear to be blank.

Product
Excel
Device & OS
not provided
Scenario
Combining data from multiple cells where some of the referenced source cells are empty or contain hidden characters.
Observed behavior
The concatenation formula outputs zeroes (e.g., '0 - 0') instead of leaving the target cell blank.
Before you start

Before modifying your formulas, click on the source cells and check the formula bar to ensure they are truly empty, without hidden spaces, apostrophes, or invisible characters.

Solution 1Recommended

Use a Conditional IF and OR Formula

Wrap your concatenation in a conditional statement to ensure the formula only runs if both referenced cells contain actual data.

1
Select the target cell

Click on the cell where you want the final concatenated text to appear.

2
Enter the IF formula

Type the formula =IF(OR(A1="",B1=""),"",A1&" - "&B1) into the formula bar. Replace A1 and B1 with your actual cell references.

3
Apply the formula

Press Enter. The cell will now remain completely blank if either source cell is empty, avoiding the '0 - 0' output.

WPS Spreadsheet Tool

Handle Complex Formulas Easily with WPS Spreadsheet

WPS Spreadsheet perfectly supports standard Excel functions like IF, OR, and CONCAT, making it incredibly easy to manage empty cells and avoid formatting errors.

  1. 1. Open your file in WPS Spreadsheet: Launch WPS Office and open the workbook containing your concatenation formulas.
  2. 2. Apply the conditional formula: Select your target cell and enter =IF(OR(A1="",B1=""),"",A1&" - "&B1).
  3. 3. Copy the formula down: Drag the fill handle down to apply the clean concatenation to the rest of your data without generating '0 - 0' errors.
100% compatible with Microsoft Excel formulas and .xlsx filesLightweight application that opens large datasets instantlyCompletely free to use for daily spreadsheet tasksFamiliar interface with no learning curve
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel show a 0 when referencing a blank cell?

Excel often evaluates completely blank cells as numerical zeroes when they are referenced inside text or math formulas. This causes concatenation operators to output '0' instead of leaving the space blank.

What is the difference between ISBLANK() and checking for an empty string ("")?

The ISBLANK() function only returns TRUE if a cell is absolutely empty. If a cell contains a formula that outputs an empty string, ISBLANK() sees it as non-empty, whereas checking A1="" will accurately recognize the empty string.

Can I hide all zero values in my worksheet instead of changing formulas?

Yes, you can hide zero values globally by going to File > Options > Advanced, scrolling to 'Display options for this worksheet', and unchecking 'Show a zero in cells that have zero value'. However, adjusting the specific conditional formula is much safer for targeted data formatting.