Function Problems

Show 1000 in an Excel Cell When a Formula Returns Zero or Blank

Kushani NimanthikaKushani Nimanthika Dec 2, 2026 868 views

Question details

Display 1000 when a cell's formula returns zero or a blank result, while keeping existing nonzero results.

Show 1000 When a Spreadsheet Formula Returns Zero or Blank
Product
Spreadsheet software, such as Microsoft Excel or WPS Spreadsheets
Device & OS
not provided
Scenario
A user wants a formula cell that appears empty or shows zero to display a default value without losing its calculation.
Observed behavior
The desired result is 1000 for zero or blank formula results and the original value for nonzero results.
Before you start

Select the cell and check the formula bar to identify its existing formula. If the cell displays a dash, check whether the formula returns a dash as text or the number format displays zero as a dash.

Solution 1Recommended

Wrap the Existing Formula in an IF Test

Use this method to display the default value in the original cell while retaining its calculation.

1
Inspect the formula

Select the cell and read its formula in the formula bar. For example, the existing formula might be =SUM(B2:B5).

2
Add the IF test

In the formula bar, replace the formula with an IF test that repeats its calculation. For the example, enter =IF(OR(SUM(B2:B5)="",SUM(B2:B5)=0),1000,SUM(B2:B5)). The result is 1000 if the calculation returns an empty string or zero; otherwise, it is the original result.

3
Apply and check

Press Enter, then check the cell with zero, blank, and nonzero source values. Adapt each occurrence of SUM(B2:B5) to match your own calculation, without repeating its initial equals sign.

Wrap the Existing Formula in an IF Test
If the result is a dash: If the formula returns a literal dash, add a test such as SUM(B2:B5)="-" inside OR, replacing SUM(B2:B5) with your calculation. If formatting only makes zero look like a dash, the zero test is sufficient.
WPS Spreadsheets

Set a Default Formula Result in WPS Spreadsheets

Use IF and OR in WPS Spreadsheets to show 1000 for zero or blank formula results while keeping other results unchanged.

  1. 1. Open the workbook: Open WPS Spreadsheets, select Open, and choose your spreadsheet file.
  2. 2. Inspect the existing formula: Select the formula cell and check its calculation in the formula bar.
  3. 3. Add a default-value test: For an original formula of =SUM(B2:B5), enter =IF(OR(SUM(B2:B5)="",SUM(B2:B5)=0),1000,SUM(B2:B5)) in the formula bar. Substitute your own calculation if it differs.
  4. 4. Confirm and save: Press Enter, verify the displayed result, and select Save.
Display a default value without replacing the underlying calculationUse a helper cell when the original formula should remain untouchedOpen and edit Microsoft Excel XLSX and XLS filesWork with familiar spreadsheet formulas and controls
microsoft office alternative - wps office

Frequently Asked Questions

Will typing 1000 directly into the cell preserve its formula?

No. Typing 1000 into the formula cell replaces the formula. Edit the formula in the formula bar or put the default-value test in a separate helper cell instead.

How can I handle a formula that returns a dash?

If the dash is text returned by the formula, add a dash comparison to OR, such as A2="-" in a helper-cell formula. If the dash is just a number format for zero, testing for zero is enough.

Does this method change nonzero results?

No. The IF formula returns the original calculation or helper-cell reference when the result is neither zero nor an empty string.

Will the formula replace spreadsheet errors with 1000?

No. The IF and OR tests shown here do not handle errors such as #DIV/0!. If you also want a default for errors, use IFERROR around the calculation and decide whether 1000 is appropriate for those errors.