+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : time for summing duration of time

Hybrid View

confusus time for summing duration of... 05-19-2010, 04:38 AM
DonkeyOte Re: time for summing duration... 05-19-2010, 04:41 AM
DonkeyOte Re: time for summing duration... 05-19-2010, 04:46 AM
confusus Re: time for summing duration... 05-19-2010, 05:08 AM
  1. #1
    Registered User
    Join Date
    04-19-2010
    Location
    Mostar, Bosnia and Herzegovina
    MS-Off Ver
    Excel 2013
    Posts
    41

    time for summing duration of time

    Ok, so i have this formula throughout the cells F3:F103
    =SUBSTITUTE(LEFT
    (VLOOKUP($C99;'sheet2'!$A$4:$D$148;4;0);
    LEN(VLOOKUP($C99;'sheet2'!$A$4:$D$148;4;0)
    )-4);" h ";":")..
    I did it on my own, dunno if there's a simpler way.

    I have duration of time values stored as text in ("XX h XX min" or ("X h XX min") at times) format.After using the formula i wrote up,(now they are in [h]:mm format), I want to SUM them all in cell F104, but using SUM() formula does not work, although +ing them one by one works all right.. I AM STUCK.
    Help pls.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: time for summing duration of time

    Quote Originally Posted by confusus
    I did it on my own, dunno if there's a simpler way.
    There might well be as easier way but without a sample it's hard to say.

    Quote Originally Posted by confusus
    I want to SUM them all in cell F104, but using SUM() formula does not work, although +ing them one by one works all right.. I AM STUCK.
    SUBSTITUTE is a string based function and as such returns Text not Numbers... if you want the time "strings" as true time values (numbers) then "coerce" the string accordingly:

    =0+SUBSTITUTE(....)

    At which point you should find you can sum.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: time for summing duration of time

    In terms of simplifying, based on your XX h XX min / X h XX min construct - you might find you can use:

    =0+SUBSTITUTE(LEFT(VLOOKUP($C99;'sheet2'!$A$4:$D$148;4;0);7);"h";":")

  4. #4
    Registered User
    Join Date
    04-19-2010
    Location
    Mostar, Bosnia and Herzegovina
    MS-Off Ver
    Excel 2013
    Posts
    41

    Re: time for summing duration of time

    Thank you, you made it all clear now.

+ 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