+ Reply to Thread
Results 1 to 10 of 10

sum cells ignoring ones with blanks

Hybrid View

  1. #1
    Registered User
    Join Date
    09-02-2012
    Location
    auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    8

    sum cells ignoring ones with blanks

    i have a time sheet that calulates the hours worked per day and i want to add them up to give a total hours worked in a week.

    The Cells in Column AO need to add up the cells in column (H,M,R,W,AB,AG,AL) but i keep having the issue that if one of those cells is blank (and i need it blank not 0) from the formula in that cell, then it returns # value or blank depending on the formula used. ( i have a couple of different ones in the cells that i have been testing)

    copy attached.

    Cheers
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: sum cells ignoring ones with blanks

    Try this instead... =SUM(H6,M6,R6,W6,AB6,AG6,AL6)

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

    Re: sum cells ignoring ones with blanks

    try just
    =SUM(AL5,AG5,AB5,W5,R5,M5,H5)
    "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

  4. #4
    Registered User
    Join Date
    09-02-2012
    Location
    auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: sum cells ignoring ones with blanks

    because the source cells are formula driven and i have a "" to give the blank cell, i think it wont sum because its thinking its text and numbers so get #value if i use a sum formula

  5. #5
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: sum cells ignoring ones with blanks

    Try it... it might surprise you...

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: sum cells ignoring ones with blanks

    SUM does not care about text (ignores it). It will not work if cells have errors in them however.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  7. #7
    Registered User
    Join Date
    09-02-2012
    Location
    auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: sum cells ignoring ones with blanks

    i have tried it and it doesnt work, it stops working as soon as one of the cells is blank or has text in it

  8. #8
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: sum cells ignoring ones with blanks

    Did you keep the plus signs or did you change it to commas? It works on my end.

  9. #9
    Registered User
    Join Date
    09-02-2012
    Location
    auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: sum cells ignoring ones with blanks

    Ty!! i knew it was simple!! today i cannot get the simple stuff!

  10. #10
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: sum cells ignoring ones with blanks

    I'm glad it worked! Thank you for the rep!

    To mark your thread solved do the following:
    - Go to the first post
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solve
    - Click Save

+ 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