Getting #N/A with OR function

Chartman of the Bored

Board Regular
Joined
Apr 24, 2002
Messages
83
Hi,

I'm using the OR function in conjunction with VLOOKUP. My three VLOOKUP functions reference cells in columns E, F, and G and try to find a match among a list of names in column S:

=OR(VLOOKUP(E2,$S:$T,2,0)="EAST",VLOOKUP(F2,$S:$T,2,0)="EAST",VLOOKUP(G2,$S:$T,2,0)="EAST")

I run into problems when the name in E correctly equals "EAST", but the name in F or G is not in the list in column S. In other words, I'm expecting a "TRUE" result, but instead I get #N/A.

Is there a way around this?

Thanks in advance
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,141,142
Messages
5,704,529
Members
421,353
Latest member
jekoxien15

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
Top