How to Return a Blank or Zero in WPS Spreadsheets When Input Cells Are Empty
Question details
The user needs a WPS Spreadsheets formula to return a blank cell or zero until required input cells are filled, instead of displaying a calculated result from empty inputs.

- Product
- WPS Office Spreadsheets
- Device & OS
- not provided
- Scenario
- A worksheet contains calculation formulas that reference input cells, and the user wants the result area to stay blank or show zero until the necessary data is entered.
- Observed behavior
- Calculated cells currently display values even when the corresponding input cells are blank.
Open your WPS Spreadsheets workbook and identify the formula cells that currently calculate from blank input cells. Note which input cells must be filled before the result should appear so the IF condition references the correct cells.
Wrap the Formula in IF with ISBLANK or AND to Return a Blank Until Input Cells Are Filled
Use this when a calculation should stay blank or show zero until one or more required input cells contain data.
The IF function checks whether the required input cells are blank. If they are blank, the formula returns an empty string or zero. When the input cells contain values, WPS Spreadsheets runs the original calculation.
Click the cell that contains the existing calculation, then click inside the formula bar or press F2 to edit the formula.
Type =IF(AND(ISBLANK(N4),ISBLANK(P4)),"",ROUNDUP(O12,0)) and replace N4, P4, and ROUNDUP(O12,0) with your input cells and original calculation.
Press Enter, then delete a test value from one of the input cells. The formula cell should now display blank until all required input cells are filled.
Change the empty string "" in the formula to 0, for example =IF(AND(ISBLANK(N4),ISBLANK(P4)),0,ROUNDUP(O12,0)).

Fix the Input Reference with a Dollar Sign When Copying the Formula
Use this when the formula is copied across rows or columns and the input cell reference must stay fixed.
Return a Blank or Zero Until Input Cells Are Filled with WPS Spreadsheets
Use the IF function together with ISBLANK, AND, or OR in WPS Spreadsheets to control exactly when a formula result appears. Once the required cells are filled, the formula returns your calculated value automatically.
- 1. Open your workbook in WPS Spreadsheets: Launch WPS Office, click Spreadsheets, and open the workbook that contains the calculation formulas.
- 2. Select the calculated cell: Click the cell where the result should appear, then click in the formula bar to edit the formula.
- 3. Enter the IF formula: Type =IF(AND(ISBLANK(N4),ISBLANK(P4)),"",ROUNDUP(O12,0)) and replace the cell references with your actual input cells and calculation.
- 4. Apply the formula: Press Enter to confirm, and use the fill handle to copy the formula to other result cells as needed.
- 5. Save the workbook: Click the Save icon or press Ctrl+S, and keep the file in .xlsx format for Excel compatibility.

Frequently Asked Questions
Can I return a zero instead of a blank when input cells are empty?
Yes. In the IF formula, replace the empty string with 0, for example =IF(AND(ISBLANK(N4),ISBLANK(P4)),0,ROUNDUP(O12,0)). WPS Spreadsheets will show 0 until all checked input cells are filled.
Does WPS Spreadsheets support the ISBLANK, AND, and OR functions?
Yes. You can type them directly into the formula bar or insert them from the Formulas tab. These functions are standard and compatible with Microsoft Excel.
Why does my formula still calculate when the input cells are blank?
Your formula likely does not include an IF condition yet, or one of the checked cells is not actually blank. Wrap the calculation in =IF(AND(ISBLANK(...),ISBLANK(...)),"",calculation) and check the cell references.
How do I keep an input cell from changing when I copy the formula down?
Add a dollar sign before the row number, such as Q$4. Select the reference in the formula bar and press F4 to cycle through absolute and mixed reference options, or type the $ manually.
Can I use these formulas in Microsoft Excel after creating them in WPS Spreadsheets?
Yes. IF, ISBLANK, AND, OR, and ROUNDUP are standard spreadsheet functions, and WPS Spreadsheets saves to .xlsx format, so the formulas work in Microsoft Excel.




