Help with VLOOKUP with OR

meppwc

Active Member
Joined
May 16, 2003
Messages
422
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.
 

Some videos you may like

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,341
=IFERROR(VLOOKUP(H9,Table!A:W,23,FALSE),IFERROR(VLOOKUP(F9,Table!A:W,23,FALSE),""))
 

meppwc

Active Member
Joined
May 16, 2003
Messages
422
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
 

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,341
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,095,232
Messages
5,443,263
Members
405,220
Latest member
gtgaabaron

This Week's Hot Topics

  • Copy entire row if CountA <>0 to another sheet
    [B]I want to copy entire row if CountA <>0 for column J7:AM7 (headers on J6:AM6) and so on till the last used cell is column D and paste the...
  • Select last used Row in Table
    I have created a Table in a Worksheet which is locked to prevent user errors and protect formula. Some of the cells require freetext entries which...
  • excel workbook: do not allow certain file name
    Hello all, Don't think this has ever been asked before, but how do I restrict file save [Before_Save Event] if the name of the file being saved...
  • fixing problem autofilter
    hello i need help about my code when i search by code in textbox it doesn't show anything this is my data [ATTACH type="full"...
  • “Weight”
    Hi, i’ve got a long sheet filled with weights such as kg,g,L & ml. i can build a formula to convert kg into g and liter into ml. How ever, my...
  • How to capitalize everything before a certain character?
    In column A, I have some text: Hello good day.mp3 Hello good day.flac etc. I'd like to capitalize everything before the period. I don't need the...
Top