Embedded If Statements

keridvp1

New Member
Joined
Aug 28, 2015
Messages
7
I have the following formula that works:

=IFERROR(IF(AND(D5="Y",E5="Y"),C5*$G$2,0),"")

I need to add an additional piece that says to look at a cell in B5 and if it says INACTIVE then multiple C5 with G1, otherwise I want it to do the original formula posted above.

I have not successfully been able to add this piece without an error.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Add one more level of IF, i.e.
Code:
=IFERROR(IF(AND(D5="Y",E5="Y"),IF(B5="Inactive",C5*$G$1,C5*$G$2),0),"")
 
Upvote 0
A couple of ideas.

Try:

=IFERROR(IF(AND(D5="Y",E5="Y"),C5*IF(B5="Inactive",$G$1,$G$2),0),"")

Or:

=IFERROR(IF(D5&E5="YY",C5*IF(B5="Inactive",$G$1,$G$2),0),"")
 
Upvote 0
try this formula
=CHOOSE(AND(UPPER(D5)="Y",UPPER(E5)="Y",UPPER(B5)="INACTIVE")+1,"",C5*$G$2)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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