IF With Multiple Crietria

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
951
Office Version
  1. 365
HI,

I have the following table:

Excel Workbook
BCD
10CODETYPERESULTS
11DCPolicePolice
12DCPolicePolice
13DC#N/AERROR
14DC#N/AERROR
15STANDARD#N/ASTANDARD
Sheet1







I am trying to have the Results column as follows:

1) If the Code is not "Standard" and there is a word in column "Type", the Results should be the value in the column "Type"
2) If the Code is "Standard" and there is #N/A in column "Type", then the Results should be "Standard"
3) If the Code is not "Standard" and there is #N/A in column "Type", the the Results should be "Error"

I am trying with this formula but did not quite get there.

Code:
=IF(AND(ISNA(C3),B3="STANDARD"),"STANDARD","ERROR")

Appreciate all the help.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
What is Code is "Standard", but the Type is not #N/A?
Then what happens?
 
Upvote 0
Try this out on D11 and fill down

=IF(AND(B11="STANDARD",ISERROR(C11)),"STANDARD",IF(AND(NOT(B11="STANDARD"),ISERROR(C11)),"ERROR",C11))

Edit: Like Joe4 pointed out there are some situations that havent been covered, the above covers only what you stated
 
Last edited:
Upvote 0
Hello, If I understand correct, maybe:

=IFERROR(IF(AND(ISNA(C3),B3="STANDARD"),"STANDARD","C3"),"ERROR")

Same question as Joe4, but I assumed return C3
 
Last edited:
Upvote 0
Hello, If I understand correct, maybe:

=IFERROR(IF(AND(ISNA(C3),B3="STANDARD"),"STANDARD","C3"),"ERROR")

Same question as Joe4, but I assumed return C3


OOPS quotes around my C3 reference, should be:

=IFERROR(IF(AND(ISNA(C3),B3="STANDARD"),"STANDARD",C3),"ERROR")
 
Upvote 0

Forum statistics

Threads
1,223,977
Messages
6,175,753
Members
452,667
Latest member
vanessavalentino83

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