Show 1000 in an Excel Cell When a Formula Returns Zero or Blank
Question details
Display 1000 when a cell's formula returns zero or a blank result, while keeping existing nonzero results.

- 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.
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.
Wrap the Existing Formula in an IF Test
Use this method to display the default value in the original cell while retaining its calculation.
Select the cell and read its formula in the formula bar. For example, the existing formula might be =SUM(B2:B5).
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.
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.

Use a Helper Cell to Keep the Original Formula Untouched
Use a separate cell when you want to preserve the original formula exactly as it is.
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. Open the workbook: Open WPS Spreadsheets, select Open, and choose your spreadsheet file.
- 2. Inspect the existing formula: Select the formula cell and check its calculation in the formula bar.
- 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. Confirm and save: Press Enter, verify the displayed result, and select Save.

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.




