+ Reply to Thread
Results 1 to 7 of 7

Vlookup formula returns value of 0 from cell with blank cell contents

  1. #1
    Forum Contributor
    Join Date
    02-14-2004
    Posts
    131

    Vlookup formula returns value of 0 from cell with blank cell contents

    I'm using this VLOOKUP formula
    =IF(ISNA(VLOOKUP($A23649,WITCRX!$A$2:$C$64321,3,FALSE))," ",(VLOOKUP($A23649,WITCRX!$A$2:$C$64321,3,FALSE)))

    if there is a value in the WITCRX worksheet the valued is returned however if the cell in WITCRX is blank the value returned is 0,. I don't undertand why. What do I need to change in the WITCRX cells with no value?

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Vlookup formula returns value of 0 from cell with blank cell contents

    Hi,

    Here's an excellent video here on vlookup from Daniel Ferry

    http://www.excelhero.com/blog/2010/0...---part-1.html
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Contributor
    Join Date
    02-14-2004
    Posts
    131

    Re: Vlookup formula returns value of 0 from cell with blank cell contents

    Thanks for the link. I'm looking for an answer vs watching a 27 min video on vlookup. I don't have time to view the video. Anyone else have any ideas?

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup formula returns value of 0 from cell with blank cell contents

    thats correct a blank cell = 0
    try =a1 on a spare sheet where a1 is blank some ways to hide 0 here
    http://office.microsoft.com/en-us/ex...010070461.aspx
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Vlookup formula returns value of 0 from cell with blank cell contents

    Quote Originally Posted by nander View Post
    Thanks for the link. I'm looking for an answer vs watching a 27 min video on vlookup. I don't have time to view the video. Anyone else have any ideas?
    you can't be that busy, its still the weekend

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Vlookup formula returns value of 0 from cell with blank cell contents

    One option is to concatenate "" to the result, i.e.

    =IF(ISNA(VLOOKUP($A23649,WITCRX!$A$2:$C$64321,3,FALSE)),"",VLOOKUP($A23649,WITCRX!$A$2:$C$64321,3,FALSE)&"")

    That will alleviate your problem, although it also converts any numeric value returned by the VLOOKUP to a text value. If you don't want that you can go with the longer

    =IF(ISNA(VLOOKUP($A23649,WITCRX!$A$2:$C$64321,3,FALSE)),"",IF(VLOOKUP($A23649,WITCRX!$A$2:$C$64321,3,FALSE)="","",VLOOKUP($A23649,WITCRX!$A$2:$C$64321,3,FALSE)))
    Audere est facere

  7. #7
    Registered User
    Join Date
    08-16-2011
    Location
    Spokane, WA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Vlookup formula returns value of 0 from cell with blank cell contents

    File, Options, Advanced, scroll down to "Display options for this worksheet" and deselect "Show a zero in cells that have no value". Does that help?
    Last edited by JStiles; 08-16-2011 at 07:48 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1