VLOOKUP function in Excel

RVFmal

Expert Member
Joined
Oct 27, 2004
Messages
2,169
Is it possible to use the VLOOKUP function in Excel to look for an exact value across more than one sheet in a workbook and possibly across more than one workbook?
 

Emjay

Honorary Master
Joined
Jun 18, 2005
Messages
15,031
That should be a rather complicated function. I have used VLOOKUP before and I am certain that this cannot be done.
 

RVFmal

Expert Member
Joined
Oct 27, 2004
Messages
2,169
Hmm, it is simpler than I thought. Apparently this will assist:

=IF(ISNA(VLOOKUP(A1,FirstRange,2,false)),VLOOKUP(A1,SecondRange,2,false),VLOOKUP(A1,FirstRange,2,false))

Only downside would be that it will stop searching on the first match.
 

jackgopher

New Member
Joined
Jun 2, 2008
Messages
1
Vlookup always stops searching after the first exact match. If you want to know how many matches it finds, you can try using in a similar way with the countif function (but instead of using ISNA you should check if it equals to 0).
 
Top