+ Reply to Thread
Results 1 to 8 of 8

how to make formula not sum a cell if cell value are ""

  1. #1
    Registered User
    Join Date
    02-12-2009
    Location
    oslo, Norway
    MS-Off Ver
    Excel 2010
    Posts
    45

    how to make formula not sum a cell if cell value are ""

    Happy weekend everyone!

    I am trying to make a formula that does this;

    Sum up A1 and A2 AND A3
    If: A1 OR A2 OR A3 is "", olny sum the ones that are a number value.


    Anyone?

    in formula; =If(a1 or a2 or a3="";ONLY SUM UP THE ONES THAT ARE NOT "".
    Last edited by abrunstad; 02-28-2009 at 11:41 AM. Reason: More descriptive topic

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: how to make formula not sum a cell if cell value are ""

    =SUM(A1:A3) will sum the values in the cells if the cells are blank then zero
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    02-12-2009
    Location
    oslo, Norway
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: how to make formula not sum a cell if cell value are ""

    Yes, i know, but you see I have the A1, A2, A3 returning a value "" so that they are hidden and not showing the 0, but appear as blank.

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: how to make formula not sum a cell if cell value are ""

    What are the formula's in A1, A2, A3

  5. #5
    Registered User
    Join Date
    02-12-2009
    Location
    oslo, Norway
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: how to make formula not sum a cell if cell value are ""

    Please see the cell B35 for an illustration of the problem.
    this is in sheet "produksjonsplan".

    Andreas.
    Attached Files Attached Files

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: how to make formula not sum a cell if cell value are ""

    Here's one way

    =IF(B34="",B33,B33+B34)
    Last edited by oldchippy; 02-28-2009 at 12:06 PM.

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: how to make formula not sum a cell if cell value are ""

    =SUM(B33:B34) and =SUM(D33:D34) works just fine i cant see any problem!
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  8. #8
    Registered User
    Join Date
    02-12-2009
    Location
    oslo, Norway
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: how to make formula not sum a cell if cell value are ""

    I found out that the problem occur if I set the cell to =A1+A2+A3.
    And then, it works fine when i set =Sum(A1:A3)

+ 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