#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Alvin
 
Posts: n/a
Default N/A Error

How can you prevent getting a N/A error message when using a lookup formula
if the reference cell is blank?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default N/A Error

=IF(A2="","",VLOOKUP(A2,Table,2,0))

and if there is no match

=IF(A2="","",IF(ISNA(VLOOKUP(A2,Table,2,0)),"",VLO OKUP(A2,Table,2,0)))

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey


"Alvin" wrote in message
...
How can you prevent getting a N/A error message when using a lookup
formula
if the reference cell is blank?



Reply
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom error bars not working [email protected] Charts and Charting in Excel 3 December 8th 05 10:17 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Problem Opening an Excel File MSO9.DLL Error Mash23 Links and Linking in Excel 0 August 24th 05 03:21 PM
error "module not found" Amit Excel Discussion (Misc queries) 1 May 13th 05 01:24 PM
#REF error Christen Excel Worksheet Functions 5 November 3rd 04 07:29 PM


All times are GMT +1. The time now is 02:32 PM.

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

About Us

"It's about Microsoft Excel"