Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Richard
 
Posts: n/a
Default Vlookup returns a zero?

Hi,

I'm using vlookup to return a value, if there is one, from another
worksheet. The problem I'm encountering is that vlookup will return a zero if
there is no value to return. How do I get to return an empty cell if it
cannot find a value to return?


Thank You,
  #2   Report Post  
Posted to microsoft.public.excel.misc
Barb Reinhardt
 
Posts: n/a
Default Vlookup returns a zero?

=IF(isblank(a1),"",Vlookup(a1,....))


"Richard" wrote:

Hi,

I'm using vlookup to return a value, if there is one, from another
worksheet. The problem I'm encountering is that vlookup will return a zero if
there is no value to return. How do I get to return an empty cell if it
cannot find a value to return?


Thank You,

  #3   Report Post  
Posted to microsoft.public.excel.misc
njuneardave
 
Posts: n/a
Default Vlookup returns a zero?

Suppose if you are looking for a value....and ur search key is in B1 of
Sheet1 and youre looking for it somehwere in column B of Sheet2 (between row
2 and 1000)....

=IF(ISNA(VLOOKUP(Sheet1!B1,Sheet2!$B$2:$B$1000,1,F ALSE)),IF(ADataInputTable!B1 = "","", ADataInputTable!B1),VLOOKUP(Sheet1!B1,Sheet2!$B$2: $B$1000,1,FALSE))

that way, if VLOOKUP doesn't find the value, and the value it searched for
is an empty cell, it will return the empty blank....but if the value it
serached for was not empty, it will return that value.


"Richard" wrote:

Hi,

I'm using vlookup to return a value, if there is one, from another
worksheet. The problem I'm encountering is that vlookup will return a zero if
there is no value to return. How do I get to return an empty cell if it
cannot find a value to return?


Thank You,

  #4   Report Post  
Posted to microsoft.public.excel.misc
Ken Hudson
 
Posts: n/a
Default Vlookup returns a zero?

Hi Richard,
I believe that VLOOKUP will return a 0 if it finds the "Lookup" reference
and the cell to be returned is empty. (Of course, it will also return a 0 if
there is a zero in the cell.)

This formula should change the 0 to an empty cell:

=IF(VLOOKUP(A1.....)=0,"",VLOOKUP(A1...))


--
Ken Hudson


"Richard" wrote:

Hi,

I'm using vlookup to return a value, if there is one, from another
worksheet. The problem I'm encountering is that vlookup will return a zero if
there is no value to return. How do I get to return an empty cell if it
cannot find a value to return?


Thank You,

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 Function Chris Manning Excel Discussion (Misc queries) 2 June 2nd 05 10:26 PM
VLOOKUP with duplicate returns dandigger Excel Discussion (Misc queries) 4 January 28th 05 07:13 AM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM
Vlookup returns incorrect match Smichaud Excel Discussion (Misc queries) 2 November 30th 04 10:51 AM


All times are GMT +1. The time now is 02:50 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"