ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   VLOOKUP function (https://www.excelbanter.com/excel-discussion-misc-queries/164900-vlookup-function.html)

zunw

VLOOKUP function
 
When using the VLOOKUP function the search cell is blank, the destination
cell is getting a "0". Can this be changed so the destination cell will be
blank also?

Mike H

VLOOKUP function
 
Perhaps

=IF(C1="","",VLOOKUP(C1,A1:B100,2,FALSE))

Mike

"zunw" wrote:

When using the VLOOKUP function the search cell is blank, the destination
cell is getting a "0". Can this be changed so the destination cell will be
blank also?


claude jerry

VLOOKUP function
 

If your Vlookup range contains Blank then this could help

=IF(VLOOKUP(D1,A1:B4,2,0)=0,"",VLOOKUP(D1,A1:B4,2, 0))

"Mike H" wrote:

Perhaps

=IF(C1="","",VLOOKUP(C1,A1:B100,2,FALSE))

Mike

"zunw" wrote:

When using the VLOOKUP function the search cell is blank, the destination
cell is getting a "0". Can this be changed so the destination cell will be
blank also?


zunw

VLOOKUP function
 
Mike,

Thx for your help. On an other place I found the answer:

Tools/options/view/Zero values




"Mike H" wrote:

Perhaps

=IF(C1="","",VLOOKUP(C1,A1:B100,2,FALSE))

Mike

"zunw" wrote:

When using the VLOOKUP function the search cell is blank, the destination
cell is getting a "0". Can this be changed so the destination cell will be
blank also?


Gord Dibben

VLOOKUP function
 
Which is not a good idea if there are cells which should show a zero.


Gord Dibben MS Excel MVP

On Tue, 6 Nov 2007 01:20:00 -0800, zunw wrote:

Mike,

Thx for your help. On an other place I found the answer:

Tools/options/view/Zero values




"Mike H" wrote:

Perhaps

=IF(C1="","",VLOOKUP(C1,A1:B100,2,FALSE))

Mike

"zunw" wrote:

When using the VLOOKUP function the search cell is blank, the destination
cell is getting a "0". Can this be changed so the destination cell will be
blank also?




All times are GMT +1. The time now is 12:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com