Function Problems

Excel IF Formula to Replace Zero With a Blank in Remarks

John WilsonJohn Wilson Nov 18, 2026 868 views

Question details

Copy values from SubRemarks to Remarks while displaying a blank when the source value is zero.

Use an Excel IF Formula to Replace Zero With a Blank in Remarks
Product
Microsoft Excel
Device & OS
not provided
Scenario
A Remarks column should reflect values from SubRemarks without showing numeric zeros.
Observed behavior
Text and nonzero values should appear in Remarks, while numeric zeros should appear blank.
Before you start

Identify the SubRemarks source column and the first cell in the Remarks destination column. Check whether the data is in an Excel table or uses ordinary cell references.

Solution 1Recommended

Use an IF Formula in an Excel Table

Use a structured reference when SubRemarks and Remarks are columns in an Excel table.

1
Select the destination cell

Click the first data cell under the Remarks table header.

2
Enter the formula

Type =IF([@SubRemarks]=0,"",[@SubRemarks]) in the cell or formula bar, then press Enter.

3
Check the column

Confirm that Excel fills the formula down the Remarks column. If it does not, copy the formula into the remaining Remarks cells.

Use an IF Formula in an Excel Table
The result only looks blank: For a zero, the formula returns an empty text string, not a truly empty cell. Text and nonzero values, including negative numbers, are displayed.
WPS Spreadsheet

Display Blanks Instead of Zeros in WPS Spreadsheet

Use the IF function in WPS Spreadsheet to copy SubRemarks values into Remarks while displaying a blank for numeric zeros.

  1. 1. Open the workbook: Open WPS Spreadsheet and use Open to select your workbook.
  2. 2. Select the Remarks cell: Click the first destination cell in the Remarks column and identify its corresponding SubRemarks source cell.
  3. 3. Enter the IF formula: Type =IF(A2=0,"",A2), replacing A2 with the actual SubRemarks cell, and press Enter.
  4. 4. Fill the remaining rows: Drag the fill handle from the formula cell down the Remarks column, then use Save to keep the changes.
Hide zeros in the Remarks results while keeping text and nonzero valuesFill the formula down a column using the fill handleOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interface for everyday calculations
microsoft office alternative - wps office

Frequently Asked Questions

Will the formula preserve text and negative numbers?

Yes. The formula =IF(A2=0,"",A2) displays text and nonzero numbers, including negative values, from A2.

Is the result cell actually empty when the source is zero?

No. The formula returns an empty text string, so the cell appears blank but still contains a formula.

Why does Excel show an error when I enter the formula?

Check that the source reference or table column name is correct. Depending on your regional settings, you may also need semicolons instead of commas, as in =IF(A2=0;"";A2).

How do I apply the formula to every row?

In an Excel table, enter the structured-reference formula in the first Remarks data cell and check whether it fills the column automatically. Otherwise, copy it down or drag the fill handle.