How to Treat Blank Cells as 20 Percent in Excel Formulas
Question details
The user needs a formula to evaluate blank cells as a specific percentage (20%) instead of the default zero value in Excel.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Calculating values across a named range or table column where some cells are empty.
- Observed behavior
- Excel evaluates blank cells as zero, which disrupts calculations that require a default 20 percent value.
Ensure your data ranges are properly defined and clearly identify which columns or named ranges contain the blank cells you want to replace in your calculation.
Use the IF Function to Replace Blanks with 20%
Nest an IF condition inside your calculation to dynamically substitute empty cells with 20% before computing the final result.
By default, Excel treats empty cells as zero during mathematical operations. To override this, you can use the IF function to check if a cell is blank (""). If it is, the formula will assign it a value of 20%; otherwise, it will use the original cell value. This is especially useful in complex arrays or SUMPRODUCT formulas.
Click on the cell where you want the final calculation result to appear.
Begin typing your formula. To replace blanks in a specific range, use the syntax: IF(range="", 20%, range).
Combine this logic with your main formula. For example: =IFERROR(SUMPRODUCT((freightindata)*(freightinsalesoffice=AK$4)*(IF(freightinbrand="",20%,[@Origin]))),"")
Press Enter to evaluate the formula. If you are using an older version of Excel that does not support dynamic arrays, you may need to press Ctrl+Shift+Enter.

Easily Handle Complex Formulas with WPS Spreadsheet
WPS Spreadsheet fully supports advanced array formulas, IF conditions, and SUMPRODUCT calculations to help you manage data effectively without zero-value errors.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your data.
- 2. Select the formula cell: Click on the cell where you want to output the calculation.
- 3. Enter the formula: Type your formula using the IF function to replace blanks, such as =IF(A2="", 20%, A2).
- 4. Calculate the result: Press Enter to instantly evaluate your data and view the accurate results.

Frequently Asked Questions
Why does Excel treat blank cells as zero by default?
In mathematical operations, Excel interprets an empty cell as a numeric zero to prevent the formula from breaking entirely. To change this behavior, you must explicitly define how to handle the blank using functions like IF.
Can I use the ISBLANK function instead of empty quotes?
Yes, you can use =IF(ISBLANK(A1), 20%, A1). This specifically checks for a truly empty cell, whereas checking for empty quotes ("") also catches cells containing zero-length strings returned by other formulas.
How do I apply this to an entire column without breaking my formula?
If you are using modern spreadsheet versions with dynamic arrays, you can select the entire range (e.g., A2:A100) inside the IF function. It will automatically spill the results or calculate correctly within aggregating functions like SUMPRODUCT.




