If Statement With Multiple Vlookups

ericka

New Member
Joined
Mar 6, 2020
Messages
8
Office Version
  1. 365
Platform
  1. Windows
I can't figure out why my result is returning FALSE.

Here's what I'm trying to do: If A1503 equals "System Certified", then perform the vlookup using the value value from cell G1503. If A1503 does not equal System Certified then perform the vlookup on the value in cell AX1503.

Here's my formula:
=IF(A1503="System Certified",VLOOKUP(G1503,'Team Lookup From User Analysis'!$A$2:$C$491,3,IF(A1503<>"System Certified",VLOOKUP(AX1503,'Team Lookup From User Analysis'!$A$2:$C$491,3,FALSE))))

The first part of the formula, before the second if works, I can't figure out why the second part doesn't.

Thanks!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Welcome to the Board! You embedded the second VLOOKUP into the 4th argument of your first VLOOKUP instead of the third argument of your IF statement.
You also don't need the second IF to check to see if it is isn't equal to the first value, as that is implied.

Try:
=IF(A1503="System Certified",VLOOKUP(G1503,'Team Lookup From User Analysis'!$A$2:$C$491,3,FALSE),VLOOKUP(AX1503,'Team Lookup From User Analysis'!$A$2:$C$491,3,FALSE))
 
Upvote 0
After putting in the formula, it works with most cells, however I'm coming up with two #N/As because System Certified is not the only value. Is there a way to begin with If A1503 equals "System Certified" or "Not Prepared" or "Rejected", then perform the vlookups?

Thank you!!
 
Upvote 0
After putting in the formula, it works with most cells, however I'm coming up with two #N/As because System Certified is not the only value. Is there a way to begin with If A1503 equals "System Certified" or "Not Prepared" or "Rejected", then perform the vlookups?
Do you mean something like this?
=IF(OR(A1503="System Certified",A1503="Not Prepared",A1503="Rejected"),VLOOKUP(G1503,'Team Lookup From User Analysis'!$A$2:$C$491,3,FALSE),VLOOKUP(AX1503,'Team Lookup From User Analysis'!$A$2:$C$491,3,FALSE))
 
Upvote 0
Since parameters 2-4 of the VLOOKUPs are the same, you can write the formula a bit shorter as:

=VLOOKUP(IF(OR(A1503={"System Certified","Not Prepared","Rejected"}),G1503,AX1503),'Team Lookup From User Analysis'!$A$2:$C$491,3,FALSE)
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,206
Members
452,618
Latest member
Tam84

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