Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
st24961
 
Posts: n/a
Default Formula returns a zero


Hi ,
I used the following formula in one of my excel worksheet and the cell
value returns a zero if value in cell B4 is not in the lookup data
range. Is there a way to keep the cell value blank ? I now use a
workaround by using the same color for the cell and font. Any advice ?


=IF(B4="","",VLOOKUP(B4,$AD$3:$AE$48,2,TRUE))

Thanks
Regards
ST


--
st24961
------------------------------------------------------------------------
st24961's Profile: http://www.excelforum.com/member.php...o&userid=20530
View this thread: http://www.excelforum.com/showthread...hreadid=390805

  #2   Report Post  
olasa
 
Posts: n/a
Default


This could perhaps give you some clues...

=IF(B4="","",IF(VLOOKUP(B4,$AD$3:$AE$48,2,TRUE)=0, "",VLOOKUP(B4,$AD$3:$AE$48,2,TRUE)))

Also... I usually us VLOOKUP(B4,$AD$3:$AE$48,2,FALSE) or 0 instead of
False (same thing) to find exact matches. That way I don't need to sort
the lookup table.
Then use ...IF(ISERROR(VLOOKUP(B4,$AD$3:$AE$48,2,0)),"",...

Hope it helped
Ola Sandström


--
olasa
------------------------------------------------------------------------
olasa's Profile: http://www.excelforum.com/member.php...o&userid=17760
View this thread: http://www.excelforum.com/showthread...hreadid=390805

  #3   Report Post  
st24961
 
Posts: n/a
Default


olasa Wrote:
This could perhaps give you some clues...

=IF(B4="","",IF(VLOOKUP(B4,$AD$3:$AE$48,2,TRUE)=0, "",VLOOKUP(B4,$AD$3:$AE$48,2,TRUE)))

Also... I usually us VLOOKUP(B4,$AD$3:$AE$48,2,FALSE) or 0 instead of
False (same thing) to find exact matches. That way I don't need to sort
the lookup table.
Then use ...IF(ISERROR(VLOOKUP(B4,$AD$3:$AE$48,2,0)),"",...

Hope it helped
Ola Sandström



Hi,
Apply your formula and it works. Thanks for your speedy reply.

Regards
ST


--
st24961
------------------------------------------------------------------------
st24961's Profile: http://www.excelforum.com/member.php...o&userid=20530
View this thread: http://www.excelforum.com/showthread...hreadid=390805

  #4   Report Post  
olasa
 
Posts: n/a
Default


Happy it worked
Thanks for your feedback
Ola


--
olasa
------------------------------------------------------------------------
olasa's Profile: http://www.excelforum.com/member.php...o&userid=17760
View this thread: http://www.excelforum.com/showthread...hreadid=390805

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
Formula works in some cells, doesn't in other Wowbagger New Users to Excel 13 June 30th 05 03:21 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
Howdo U copy a formula down a column, that uses data in another w. Need Help pasting a formula Excel Worksheet Functions 1 February 25th 05 06:04 PM
Problem with VBA returning the contents of a long formula. [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 12:14 AM


All times are GMT +1. The time now is 10:47 PM.

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"