+ Reply to Thread
Results 1 to 7 of 7

If/then statement results in 0 instead of blank

  1. #1
    Registered User
    Join Date
    06-06-2011
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    10

    Question If/then statement results in 0 instead of blank

    I am having the a problem. I am using this formula and it is bringing up text,so not sure why it brings up a 0 instead of a blank. In most cells it results in a blank, but in others, it brings up a 0. I'm not sure how to correct

    =IF($T$8>0,VLOOKUP($S$8,Tubemaster!$A$11:$P$1986,12,FALSE),"")

    Diana
    Last edited by butterfly123; 06-24-2011 at 03:22 PM. Reason: Solved

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: If/then statement results in 0 instead of blank

    Hi Diana,

    Are some of the cells (the ones showing zeros) formatted as Number instead of Text or General?

  3. #3
    Registered User
    Join Date
    06-06-2011
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: If/then statement results in 0 instead of blank

    They were but I reformatted them to text

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If/then statement results in 0 instead of blank

    If you have a match in the first column of the Vlookup table to the lookup value and the corresponding cell column 12 of the vlookup table is blank, then Vlookup will return a 0.

    The best bet is to format the result cells as custom: 0;-0;;@ so that 0's are hidden.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Registered User
    Join Date
    06-06-2011
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: If/then statement results in 0 instead of blank

    OK NBVC do you have any recommendations on how to do that?

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If/then statement results in 0 instead of blank

    How to do what?

    To format the cell as I described, you select the cells, right-click and select Format Cells. In the Number tab, select Custom and enter 0;-0;;@ in the Type field.

  7. #7
    Registered User
    Join Date
    06-06-2011
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: If/then statement results in 0 instead of blank

    Thank you so much...its been a long week

+ 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