Formula Errors

How to Treat Blank Cells as 20 Percent in Excel Formulas

Ayan MasoodAyan Masood Nov 3, 2026 869 views

Question details

The user needs a formula to evaluate blank cells as a specific percentage (20%) instead of the default zero value in Excel.

How to Treat Blank Cells as 20 Percent in Excel Formulas
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the target cell

Click on the cell where you want the final calculation result to appear.

2
Enter the IF condition

Begin typing your formula. To replace blanks in a specific range, use the syntax: IF(range="", 20%, range).

3
Integrate into SUMPRODUCT

Combine this logic with your main formula. For example: =IFERROR(SUMPRODUCT((freightindata)*(freightinsalesoffice=AK$4)*(IF(freightinbrand="",20%,[@Origin]))),"")

4
Apply the formula

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.

Use the IF Function to Replace Blanks with 20%
Formula applied successfully: Wrapping your calculation in an IFERROR function ensures that any unexpected calculation errors return a blank instead of an ugly error code.
Efficient Spreadsheet Solution

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. 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your data.
  2. 2. Select the formula cell: Click on the cell where you want to output the calculation.
  3. 3. Enter the formula: Type your formula using the IF function to replace blanks, such as =IF(A2="", 20%, A2).
  4. 4. Calculate the result: Press Enter to instantly evaluate your data and view the accurate results.
Fully compatible with Microsoft Excel formulas and .xlsx files.Lightweight and fast, even with large datasets and complex array formulas.Built-in error checking to help you troubleshoot blank cell calculations.Free to use with a familiar, easy-to-navigate user interface.
microsoft office alternative - wps office

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.