Excel Nested IF Formula to Check Multiple Cells
Question details
Create a formula that checks three cells in order and applies a different multiplier based on the first blank cell.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet tracks take-profit levels in I2, K2, and M2, with the base position size in O2.
- Observed behavior
- The formula should multiply O2 by 1, 0.8, or 0.4 depending on which checked cell is first blank, or by 0.2 if none are blank.
Confirm that I2, K2, and M2 contain the take-profit levels and that O2 contains a numeric base position size. Choose an empty cell for the result and adjust the references if your data is in different cells.
Enter a Nested IF Formula for the Three Take-Profit Cells
Use this formula to check the cells in sequence and return the matching portion of the base position size.
The formula stops at the first blank cell: I2 returns O2 × 1, K2 returns O2 × 0.8, and M2 returns O2 × 0.4. If all three contain values, it returns O2 × 0.2.
In Excel, click an empty cell where you want the calculated position size to appear.
Type =IF(I2="",O2*1,IF(K2="",O2*0.8,IF(M2="",O2*0.4,O2*0.2))) and press Enter.
If needed, drag the fill handle from the result cell down the column to use the corresponding cell references in each row.

Check Take-Profit Cells with Nested IF in WPS Spreadsheets
Open your workbook in WPS Spreadsheets and use the same nested IF formula to calculate a position size from the first blank take-profit cell.
- 1. Open the workbook: Launch WPS Office, open WPS Spreadsheets, and select Open to load your workbook.
- 2. Select a result cell: Click an empty cell in the row containing the take-profit levels and base position size.
- 3. Enter the formula: Type =IF(I2="",O2*1,IF(K2="",O2*0.8,IF(M2="",O2*0.4,O2*0.2))) and press Enter.
- 4. Copy and save: Drag the result cell's fill handle down for other rows if needed, then select File > Save.

Frequently Asked Questions
What happens if more than one take-profit cell is blank?
The formula uses the first blank cell in the order I2, K2, then M2. For example, if both I2 and K2 are blank, it returns O2 multiplied by 1.
What does the formula return when all three cells contain values?
When I2, K2, and M2 are not blank, the final IF returns O2 multiplied by 0.2.
Can I use ISBLANK instead of checking for an empty string?
Yes. Replace a test such as I2="" with ISBLANK(I2) if you only want to identify truly empty cells. ISBLANK returns FALSE when a cell contains a formula, even if that formula displays an empty string.
Why does Excel reject the formula's commas?
Some regional settings use semicolons as function argument separators. If Excel rejects the formula, try replacing the commas between arguments with semicolons.




