Modify a IF/VLOOKUP to account for 3 more variables

slam

Well-known Member
Joined
Sep 16, 2002
Messages
921
Office Version
  1. 365
  2. 2019
I need to modify a formula to account for 3 more variables, and am having a lot of trouble. I have reverted to my original formula as shown below:

=IF(ISNA(VLOOKUP($B3,Australia!$B$2:$H$17,7,0)),"",VLOOKUP($B3,Australia!$B$2:$H$17,7,0))

What I need to additionally do is:
1. Display DNS as the result if the value from from B3 is not in the range Australia!B2:B17

2. Display DNF as the result if the value from B3 has a corresponding matching value from Australia!B2:B17, and if the corresponding row in Australia!F2:F17 = DNF and if Australia!H2:H17 = 0

3. Display DSQ as the result if the value from B3 has a corresponding matching value from Australia!B2:B17, and if the corresponding row in Australia!F2:F17 = DSQ

I greatly appreciate whatever anyone can help with. Thanks
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try:

=IF(COUNTIF(Australia!$B$2:$B$17,$B3),IF(AND(VLOOKUP($B3,Australia!$B$2:$H$17,5,0)="DNF",VLOOKUP($B3,Australia!$B$2:$H$17,7,0)=0),"DNF",IF(VLOOKUP($B3,Australia!$B$2:$H$17,5,0)="DSQ","DSQ",VLOOKUP($B3,Australia!$B$2:$H$17,7,0))),"DNS")
 
Upvote 0
Wow, that works perfectly! That was a very fast reply. Thanks so much!
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,877
Members
452,949
Latest member
Dupuhini

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