#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 97
Default VLOOKUP #N/A result

When VLOOKUP fails to find a match the result #N/A is shown. Is there a way
to have another result displayed such as NOT FOUND or NO?

Thanks,
Joe M
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 53
Default VLOOKUP #N/A result

You have to test the result of the VLOOKUP first with the ISNA function, then
decide what to do. Example:
=IF(ISNA(VLOOKUP(6,E14:F18,2,0)), "Not Found", VLOOKUP(6,E14:F18,2,0))

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default VLOOKUP #N/A result

Use a formula like:

=IF(ISERROR(VLOOKUP(...)),"NOT FOUND",VLOOKUP(...))

In Excel 2007, you can use the new IFERROR function.

=IFERROR(VLOOKUP(...),"NOT FOUND")


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)

"Joe M." wrote in message
...
When VLOOKUP fails to find a match the result #N/A is shown. Is there a
way
to have another result displayed such as NOT FOUND or NO?

Thanks,
Joe M


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
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Vlookup and #N/A result brb Excel Worksheet Functions 4 April 28th 07 02:38 AM
vlookup - more than one result Heine Excel Worksheet Functions 2 March 21st 07 04:04 PM
vlookup shows result one cell above the expected result Marie Excel Worksheet Functions 7 November 14th 06 02:52 AM
vlookup based on random result returns incorrect result rickat Excel Worksheet Functions 1 December 6th 05 01:16 PM


All times are GMT +1. The time now is 10:45 AM.

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"