+ Reply to Thread
Results 1 to 4 of 4

IF function returning blank cells as 0 instead of a blank even though "" is being used

  1. #1
    Registered User
    Join Date
    04-24-2015
    Location
    USA
    MS-Off Ver
    Office for Mac 2011
    Posts
    4

    IF function returning blank cells as 0 instead of a blank even though "" is being used

    I'm pulling data from a master workbook into several other workbooks and the formula finally seems to be working the way I need it to. However, even though I am using "" at the end of the IF formula to display a blank if the result is FALSE, I am getting zeros which is cluttering up the spreadsheet. I don't want to change Excel's preferences to not show zero values, zeros in some cases need to be seen. This is the formula I am using:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I have tried to wrap the whole formula with =IFERROR(aboveformula,"") but that didn't work. I have also tried to have it display "-" instead of "", but that didn't work either. My last resort is to do conditional formatting to turn the text white if it comes up as a zero, but again, sometimes a zero needs to be seen. I appreciate the help!
    Last edited by scootty83; 06-01-2015 at 09:47 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,659

    Re: IF function returning blank cells as 0 instead of a blank even though "" is being used

    I guess you need to test the whole thing for a blank return.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    committed with Ctrl-Shift-Enter.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    04-24-2015
    Location
    USA
    MS-Off Ver
    Office for Mac 2011
    Posts
    4

    Re: IF function returning blank cells as 0 instead of a blank even though "" is being used

    Your suggestion worked, Trevor. Thank you! I wonder why the formula wouldn't already provide a blank for an empty cell instead of a zero. This will still bother me even though it has been fixed.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,659

    Re: IF function returning blank cells as 0 instead of a blank even though "" is being used

    You're welcome. Thanks for the rep.

    I wonder why the formula wouldn't already provide a blank for an empty cell instead of a zero.
    That's just what happens

    If you leave cell A2 blank and put the formula =A2 in cell B2, you will get a zero returned. You would have to make it =IF(A2="","",A2). Same result if a VLOOKUP returns a blank ... you get zero.

    Regards, TMS

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Keeping particular cell blank if the related cells show "0" or "blank"
    By Anuru in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-24-2014, 05:30 AM
  2. Replies: 4
    Last Post: 07-15-2013, 02:50 PM
  3. Replies: 2
    Last Post: 04-29-2013, 04:20 AM
  4. Formula is returning "FALSE" instead of "" (blank)
    By wvpersephone13 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-27-2011, 04:31 PM
  5. Replies: 3
    Last Post: 12-14-2006, 01:36 PM

Tags for this Thread

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