Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Excel; vlookups without #N/A

Thread Tools
 
Search this Thread
 
Old 15 November 2002, 05:56 AM
  #1  
velohead66
Scooby Regular
Thread Starter
 
velohead66's Avatar
 
Join Date: Oct 2002
Location: ex UK [SE], now Sunshine State [QLD,AUS]
Posts: 565
Likes: 0
Received 1 Like on 1 Post
Question

When you do a vlookup, and the variable you are are looking for does not exist in the lookup area, then you get the #N/A code.
#N/A meaning value not available, because it is not there.

I know you can nest the 'vlookup' in an 'if' function, so that if true the vlookup happens, and if false 'zero' is returned.

Problem;
The 'if' statement uses something like 'iserror' or 'isnumber' as the condition to determine true/false.
I've tried but can not create the working formula, and time is against me.

Anyone know the correct formula ??

Just to summerise, I want a vlookup formula that returns the value if available, or zero if not available, instead of the #N/A if not available as at present.

Help !!
Old 15 November 2002, 07:50 AM
  #2  
Martingb
Scooby Regular
 
Martingb's Avatar
 
Join Date: Oct 2001
Posts: 65
Likes: 0
Received 0 Likes on 0 Posts
Post

Use the ISNA function:

e.g. = if(ISNA(vlookup(A1,Sheet2!A:B,2,false)),"MISSING", vlookup(A1,Sheet2!A:B,2,false))

This says that if the vlookup returns ISNA, the cell says "MISSING". You can replace this MISSING with different values.

See the help file for more on the IS functions.

Martin.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
leg200
Subaru Parts
5
07 October 2015 07:31 AM
has-scooby
Subaru Parts
4
06 October 2015 03:47 PM
bluebullet29
General Technical
9
05 October 2015 02:17 PM



Quick Reply: Excel; vlookups without #N/A



All times are GMT +1. The time now is 11:42 PM.