+ Reply to Thread
Results 1 to 7 of 7

Return Blank Cell if Sum Cells Blank or Zero

  1. #1
    Registered User
    Join Date
    02-26-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Return Blank Cell if Sum Cells Blank or Zero

    Hi All

    I am adding an array of cells A4 to A16.
    If any of the cells A4 to A16 are either blank or have a zero value I need the answer cell A17 to return a blank.

    Thanks

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Return Blank Cell if Sum Cells Blank or Zero

    Hi

    Try.

    =IF(COUNT(A4:A16)<>13,"",COUNT(A4:A16))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    04-13-2012
    Location
    Leeds, UK
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Return Blank Cell if Sum Cells Blank or Zero

    I think this will give you what you need:

    =IF(OR(COUNTIF(A4:A16,0)>0,COUNTIF(A4:A16,"")>0),"",SUM(A4:A16))

  4. #4
    Registered User
    Join Date
    02-26-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Return Blank Cell if Sum Cells Blank or Zero

    Sorry Guys stuffed up my explanation.
    Should of left out the "any Cells" part
    Just need to return a blank cell if A4 to A16 cells are blank or zero but Sum if a value is present
    SORRY

  5. #5
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Return Blank Cell if Sum Cells Blank or Zero

    deleted... did not read latest update by OP.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Return Blank Cell if Sum Cells Blank or Zero

    Then...

    =SUM(IF(COUNTIF(A4:A16,">0"),A4:A16))

    Is this, works for you?


    Or

    =IF(COUNTA(A4:A16)=0,"",SUM(IF(COUNTIF(A4:A16,">0"),A4:A16)))

  7. #7
    Registered User
    Join Date
    02-26-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Return Blank Cell if Sum Cells Blank or Zero

    Thanks Great

+ 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