Help with VLOOKUP with OR

meppwc

Well-known Member
Joined
May 16, 2003
Messages
604
Office Version
  1. 365
Platform
  1. Windows
I would appreciate some help with a VLOOKUP syntax issue

I am trying to add another condition (OR) to my existing formula
The formula below works correctly
=IFERROR(VLOOKUP(H9,Table!A:W,23,FALSE),"")

I want to expand it to look at both H9 or F9.
Is there a way of doing this? I searched the internet and could not find anything.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
=IFERROR(VLOOKUP(H9,Table!A:W,23,FALSE),IFERROR(VLOOKUP(F9,Table!A:W,23,FALSE),""))
 
Upvote 0
Thanks Special-K99..............I had tried the following
=IFERROR(VLOOKUP(H9,Table!A:W,23,FALSE,""),IFERROR(VLOOKUP(F9,Table!A:W,23,FALSE,"")))
Which kept failing
Now that you have provided the proper syntax I see the difference
Thanks Again
 
Upvote 0
If you have a nested IF/IFERROR statement a easy way of remembering is you need a closing bracket for each IF statement that exists.
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,241
Members
449,075
Latest member
staticfluids

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