+ Reply to Thread
Results 1 to 18 of 18

Adding Time: Adding individual cells works, but SUM doesn't

  1. #1
    Registered User
    Join Date
    03-28-2008
    Posts
    57

    Question Adding Time: Adding individual cells works, but SUM doesn't

    I have a column of times: e.g. 10:03:00 and I would like to add them all up.

    =A1+A2 works fine.

    =sum(A1:A10) does not.

    Excuse my continued ignorance, but does anyone have a solution?

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

    Try Custom formatting your SUM cell to [hh]:mm
    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
    03-28-2008
    Posts
    57
    Unfortunately, that only seems to change the sum result to 00:00 as opposed to 00:00:00.

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

    Format to [hh]:mm:ss

  5. #5
    Registered User
    Join Date
    03-28-2008
    Posts
    57
    Hi again,

    Unfortunately, 00:00:00 is still the result of =SUM(L8658:L21155)

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

  7. #7
    Registered User
    Join Date
    03-28-2008
    Posts
    57
    Still a problem.

    When I enter some sample data in a new xls and do as you suggested in your xls file, OldChippy, it works. But if I copy and paste my real data into a new xls, it still doesnt work, even with the formatting.
    Last edited by fredmeister; 04-02-2008 at 11:04 AM.

  8. #8
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Have you tried paste special > Values
    Ed
    _____________________________
    Always learning, but never enough!
    _____________________________

  9. #9
    Registered User
    Join Date
    03-28-2008
    Posts
    57
    Yes. And 00:00:00 is stil the result. The problem persists.

  10. #10
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    Could you post a workbook containing some of the offending cells?

  11. #11
    Registered User
    Join Date
    03-28-2008
    Posts
    57
    Attached.

    Word limit.
    Attached Files Attached Files

  12. #12
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    Type 1 in a cell and copy the cell. Select all the times you want to add, Paste Special, select Multiply.
    *Edit: Alternately, if this is something you'll be doing often, change the formula to =SUM((A1:A52)+0) and confirm with Ctrl+Shift+Enter.
    Last edited by darkyam; 04-11-2008 at 10:05 AM.

  13. #13
    Registered User
    Join Date
    03-28-2008
    Posts
    57
    Typed 10:10:10 in A1 -> Ctrl + C -> Selected cells A2:A4 -> Right click -> Paste Special -> Selected Multiply

    Cells a2:a4 have the value 00:00:00

  14. #14
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    I don't know if I made myself clear enough. I was suggesting that you type literally the number 1 in a cell, say B1, then copy B1, Paste Special, multiply.

  15. #15
    Registered User
    Join Date
    03-28-2008
    Posts
    57
    As i paste the formula =SUM((A1:A52)+0) into A53, the cell shows #VALUE!

  16. #16
    Registered User
    Join Date
    03-28-2008
    Posts
    57
    Quote Originally Posted by darkyam
    I don't know if I made myself clear enough. I was suggesting that you type literally the number 1 in a cell, say B1, then copy B1, Paste Special, multiply.
    Paste where?

  17. #17
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    First, my suggestions are either/or. If you do one, then you do not have to do the other. Both of them work, you just have to choose which one works for you.
    The formula, as I stated before, has to be confirmed with Ctrl+Shift+Enter. After you type it in, you have to press this key combination to get the formula to calculate correctly. Curly brackets, { and }, will appear around the formula.
    For the other suggestion, after putting 1 in B1 and copying the cell, you would highlight all the times in column A that you want to add, and then use Paste Special -> Multiply there.

  18. #18
    Registered User
    Join Date
    03-28-2008
    Posts
    57
    Problem solved.

    Ctrl + Shift + Enter works. You have to do it before hitting enter as you finish the formula.

    Many thanks.

+ 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