Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default Look up

Hi,
Yes. If you use the 4th argument and set it to FALSE.
=VLOOKUP(LookupValue,LookupTable,ColumnToReturn,FA LSE)
By using the FALSE argument, VLOOKUP looks for an exact match only, and
doesn't need the table to be sorted alphabetically.
However, if VLOOKUP doesn't find the LookupValue you give it, it returns a
#N/A error, which you can trap for if you want.
=IF(ISNA(VLOOKUP(LookupValue,LookupTable,ColumnToR eturn,FALSE),"Lookup Value
Not Found",VLOOKUP(LookupValue,LookupTable,ColumnToRet urn,FALSE)

Regards - Dave.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"