+ Reply to Thread
Results 1 to 5 of 5

Zero vs Empty

  1. #1
    Registered User
    Join Date
    02-09-2013
    Location
    Texas
    MS-Off Ver
    2007
    Posts
    16

    Exclamation Zero vs Empty

    I am trying to Total 2 cells that will have FUTURE data containing conditional formatting; however, while my data sheet is blank, I want my sum total to be blank also (not zero). A Sum value of 0 activates Red Fill conditional formatting, so the Sum cell shows 0 (Red) rather than " " (White).

    In other words, I want "Blank Cell A" + "Blank Cell B" to= "Blank Cell C" until A or B contains data.

    I was able to format my blank cells individually, but can't seem to format this Sum column. Any ideas?

    PRINT SCREEN HELP.jpg
    Last edited by ConnieIrene; 02-09-2013 at 04:30 AM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Zero vs Empty

    hi ConnieIrene, welcome to the forum. try this in C:
    =IF(COUNT(A1:B1),A1+B1,"")

    not sure about the formatting of blank cells. uploading a sample Excel file in the thread will enable us to help you better. to upload, press "Go Advanced" beside the "Post Quick Reply" button & click on the paperclip icon

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Zero vs Empty

    IN Cell C use

    Please Login or Register  to view this content.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    12-23-2012
    Location
    Azerbaijan
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Zero vs Empty

    can this formula help?

    =if(or(a1<>0,b1<>0),a1+b1,"")

    this will show a number if a1 or b1 is different than zero, but if you want it works only both a1 and b1 have values, then replace OR in the formula with AND

  5. #5
    Registered User
    Join Date
    02-09-2013
    Location
    Texas
    MS-Off Ver
    2007
    Posts
    16

    Re: Zero vs Empty

    =IF(AND(A1="",B1=""),"",SUM(A1:B1)) worked!

    YAY! THANK YOU SO MUCH! I'm completely self-taught with excel, and I knew I had hit a brick wall with this one. Y'all are the best!
    If you ever have a question about your child's reading skills.... haha.

+ 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