+ Reply to Thread
Results 1 to 10 of 10

Adding Text Values Representing Time

  1. #1
    Forum Contributor
    Join Date
    12-07-2004
    Posts
    596

    Adding Text Values Representing Time

    Problem:

    The times listed in column A are formatted as text.
    When trying to add them using a simple SUM formula (=SUM(A2:A5)), a false result of 0 is returned.
    How can we add text values correctly?

    Solution:
    Use the SUM and TIMEVALUE functions as shown in the following Array formula:
    {=SUM(TIMEVALUE(A2:A5))}

    To apply Array formula:
    Select the cell, press

  2. #2
    Registered User
    Join Date
    11-28-2006
    Posts
    5

    not quite....

    I tryed to solve the problem ur way...
    but it doesn't work:

    When I use
    {=SUM(TIMEVALUE(A2:A5))}
    i get the result {#VALUE!}

    I tryed another way:
    {=SUM(TIMEVALUE(A2):TIMEVALUE(A5))}
    I can't even use it, i get an error message.

    can anyone help me ?

    10x!

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    What you need to do is enter the formula in the cell, without the braces

    =SUM(TIMEVALUE(A2:A5))

    and with the cursor still in the formula bar, press Ctrl + Shift + Enter, then you will see

    {=SUM(TIMEVALUE(A2:A5))} in the formula bar
    Attached Images Attached Images    
    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

  4. #4
    Registered User
    Join Date
    11-28-2006
    Posts
    5

    10x

    Thanks, it worked!

    Though, I encountered another problem: I can't add times if it's over 24 hours!

    please check it in the image attached.

    is there a solution for this ?
    Attached Images Attached Images  

  5. #5
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Change the format to Custom and format to [hh]:mm:ss, this will add times that total over 24 hours

  6. #6
    Registered User
    Join Date
    11-28-2006
    Posts
    5
    I know this procedure works to display the sum (even if it's grater than 24h), but in my case, still doesn't work!


    Does it on tour computer ???

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

  8. #8
    Registered User
    Join Date
    11-28-2006
    Posts
    5
    Ah, yes...

    but you must keep the same table formats:
    time spent [format TEXT]
    formula {=SUM (TIMEVALUE(C1:C3))}

    In this case, is still working ?
    Mine doesn't!
    Attached Images Attached Images    

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

    Take a look at this link about adding and subtracting time values, it explains why the value in C5 is not displaying as expected because it is over 24 hours

    http://www.cpearson.com/excel/datearith.htm#AddingTimes
    Attached Images Attached Images  

  10. #10
    Registered User
    Join Date
    11-28-2006
    Posts
    5
    The thing is I'm not allowed to change the cell format...
    Thanks a lot anywayz!

    I'll just have to relay on the fact that there's no time greater than 24h.

    10x again!

+ 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