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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,214,881
Messages
6,122,074
Members
449,064
Latest member
MattDRT

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