+ Reply to Thread
Results 1 to 5 of 5

Lose Zero

  1. #1
    Registered User
    Join Date
    08-30-2007
    Posts
    35

    Question Lose Zero

    Hi I have a statement on a cell as follows >

    PHP Code: 
    =VLOOKUP(Data!C7,Data!D6:N19,11
    It looks up a table and if there is a value brings it back otherwise its just displays a zero. I want it to display blank if there is no value rather than the digit zero. How do i do this?

    I have tried formatting the cell using a generic function but that doesnt work. Can it be done by an IF statement?

    Thanks in Advance

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon thomas.szwed

    Does this work OK for you :
    =IF(VLOOKUP(Data!C7,Data!D6:N19,11)=0,"",VLOOKUP(Data!C7,Data!D6:N19,11))

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi thomas.szwed
    Quote Originally Posted by thomas.szwed
    I have tried formatting the cell using a generic function but that doesnt work.
    If you'd rather use custom formatting then something like this should do the trick and hide the result, if a zero is returned by the formula :
    [>0]#,##0;;;

    HTH

    DominicB

  4. #4
    Registered User
    Join Date
    08-30-2007
    Posts
    35

    Question

    Yes when i check the formula it does, but only the IF statement is displayed in the box currently and not the result?

  5. #5
    Registered User
    Join Date
    08-30-2007
    Posts
    35

    Thumbs up

    Nope, i solved it thanks.

+ 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