Nested IFBlank with variable formula

Treamaya

New Member
Joined
Sep 1, 2017
Messages
5
Would anyone be wiling to tell me how to write this in an excel formula?

IF B9 is not blank,
Then
IF C7>8,
Then "variable1"*C7
Else "Variable2"*C7
Else, 0

In other words, if B9 is blank, return no value. IF it is not blank, then check to see if C7's value is greater then 8. If it is multiply variable1 against C7 and if it is not then multiply variable2 against C7.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
something like:
=IF(ISBLANK(B9),IF(C7>8,5*C7,13*C7),0)
 
Upvote 0
=IF(B9="",0,IF(C7>8,5,13)*c7)

Replace the 5 and 13 with your actual values or cell references
 
Upvote 0
Can you post your actual formula, sample data and expected results?
Because it worked fine for me:


Excel 2010
ABC
145
2
3
4
5
6
79
8
9not blank
Sheet1
Cell Formulas
RangeFormula
A1=IF(B9="",0,IF(C7>8,5,13)*C7)
 
Last edited:
Upvote 0
Here are the 2 formulas that I ended up using...

=IF(ISBLANK(D73),0,(IF(E70<9,TwoTonePaint*L73,((TwoTonePaint*L73)+(paint9*L73)))))


=IF(ISBLANK(D61),0,TwoTonePaint*L61)

"Twotonepaint" is a named cell on a different page.
 
Upvote 0

Forum statistics

Threads
1,216,231
Messages
6,129,631
Members
449,522
Latest member
natalia188

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top