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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
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,224,816
Messages
6,181,143
Members
453,021
Latest member
Justyna P

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