IF With Multiple Crietria

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
922
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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
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,215,459
Messages
6,124,947
Members
449,198
Latest member
MhammadishaqKhan

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