Function Problems

Excel Nested IF Formula to Check Multiple Cells

Ayan MasoodAyan Masood Nov 18, 2026 870 views

Question details

Create a formula that checks three cells in order and applies a different multiplier based on the first blank cell.

Use a Nested IF Formula in Excel to Check Multiple Cells
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the result cell

In Excel, click an empty cell where you want the calculated position size to appear.

2
Enter the formula

Type =IF(I2="",O2*1,IF(K2="",O2*0.8,IF(M2="",O2*0.4,O2*0.2))) and press Enter.

3
Apply it to other rows

If needed, drag the fill handle from the result cell down the column to use the corresponding cell references in each row.

Enter a Nested IF Formula for the Three Take-Profit Cells
Blank-cell checks: The ="" test also treats a formula returning an empty string as blank. ISBLANK checks whether a cell is truly empty and returns FALSE for a cell containing a formula.
Calculate with WPS Spreadsheets

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. 1. Open the workbook: Launch WPS Office, open WPS Spreadsheets, and select Open to load your workbook.
  2. 2. Select a result cell: Click an empty cell in the row containing the take-profit levels and base position size.
  3. 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. 4. Copy and save: Drag the result cell's fill handle down for other rows if needed, then select File > Save.
Apply different multipliers based on the first blank take-profit cell.Open and edit Microsoft Excel XLSX and XLS files.Use familiar spreadsheet formulas and a straightforward interface.Fill the formula down to calculate results for multiple rows.
microsoft office alternative - wps office

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.