Microsoft Office Forums


Reply
Thread Tools Display Modes

VLookup question

 
 
mac
Guest
Posts: n/a

 
      02-07-2010, 04:09 AM
I'm creating a report in excel using =vlookup to pull data from another
tab. When the vlookup cannot find a value it returns a #N/A. Is there a
formula I can create so when it cannot find the value it gives me a 0 or a
"" instead of the #N/A?

thanks,
mac

 
Reply With Quote
 
 
 
 
L. Howard Kittle
Guest
Posts: n/a

 
      02-07-2010, 04:32 AM
Try these:

=IF(ISNA(VLOOKUP(F1,Sheet2!A1:B3,2,0)),0,VLOOKUP(F 1,Sheet2!A1:B3,2,0))

For 0...

=IF(ISNA(VLOOKUP(F1,Sheet2!A1:B3,2,""),0,VLOOKUP(F 1,Sheet2!A1:B3,2,0))

For 'nothing'

HTH
Regards,
Howard

"mac" <(E-Mail Removed)> wrote in message
news:83E23F9B-9476-4C35-8012-(E-Mail Removed)...
> I'm creating a report in excel using =vlookup to pull data from another
> tab. When the vlookup cannot find a value it returns a #N/A. Is there a
> formula I can create so when it cannot find the value it gives me a 0 or a
> "" instead of the #N/A?
>
> thanks,
> mac



 
Reply With Quote
 
OssieMac
Guest
Posts: n/a

 
      02-07-2010, 05:03 AM
Hi Mac,

=IF(ISNA(VLOOKUP(C2,$A$2:$A$125,1,FALSE)),"",VLOOK UP(C2,$A$2:$A$125,1,FALSE))


--
Regards,

OssieMac


"mac" wrote:

> I'm creating a report in excel using =vlookup to pull data from another
> tab. When the vlookup cannot find a value it returns a #N/A. Is there a
> formula I can create so when it cannot find the value it gives me a 0 or a
> "" instead of the #N/A?
>
> thanks,
> mac
>
> .
>

 
Reply With Quote
 
OssieMac
Guest
Posts: n/a

 
      02-07-2010, 07:51 AM
Hello Howard,

The table array (Sheet2!A1:B3) in Vlookup should always be absolute
(Sheet2!$A$1:$B$3) otherwise the table changes it when the formula is copied
down the column.

--
Regards,

OssieMac


"L. Howard Kittle" wrote:

> Try these:
>
> =IF(ISNA(VLOOKUP(F1,Sheet2!A1:B3,2,0)),0,VLOOKUP(F 1,Sheet2!A1:B3,2,0))
>
> For 0...
>
> =IF(ISNA(VLOOKUP(F1,Sheet2!A1:B3,2,""),0,VLOOKUP(F 1,Sheet2!A1:B3,2,0))
>
> For 'nothing'
>
> HTH
> Regards,
> Howard
>
> "mac" <(E-Mail Removed)> wrote in message
> news:83E23F9B-9476-4C35-8012-(E-Mail Removed)...
> > I'm creating a report in excel using =vlookup to pull data from another
> > tab. When the vlookup cannot find a value it returns a #N/A. Is there a
> > formula I can create so when it cannot find the value it gives me a 0 or a
> > "" instead of the #N/A?
> >
> > thanks,
> > mac

>
>
> .
>

 
Reply With Quote
 
mac
Guest
Posts: n/a

 
      02-07-2010, 12:20 PM
This is Awesome! Thank you all for your quick responses,

mac

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup question Paul Hyett Excel Newsgroup 2 02-13-2009 04:35 PM
vlookup question Gus Excel Newsgroup 3 07-19-2008 08:54 AM
VLOOKUP Question Ed Excel Newsgroup 3 05-13-2008 11:20 PM
Vlookup Question? gillemi Excel Newsgroup 5 04-25-2006 04:42 PM
Vlookup question Buckwheat Excel Newsgroup 2 12-18-2003 05:03 AM



All times are GMT. The time now is 02:15 PM.