+ Reply to Thread
Results 1 to 4 of 4

Need help with adding time

  1. #1
    Registered User
    Join Date
    06-12-2013
    Location
    Fairbury NE
    MS-Off Ver
    Excel 2007
    Posts
    70

    Need help with adding time

    I've created a formula to determine the lapse of time between two cells (=IF(A3=A2,TEXT(B3-B2,"H:mm:ss"),""). This result is now in column C. I need to sum column C by each change in Column A as well and am not sure how to do it. The "sum" formula is not working. Do I need to change to values, or how can I do this? Also, not sure if I should set up with a SUMIF, or if a Pivot table would be better. Any insight you can offer is appreciated.

    A B C D
    1 11/7/13 12:39:43 AM 0:11:23 Assuming Column A are the same (1's), sum (Row 1:3)
    1 11/7/13 12:51:06 AM 0:02:36
    1 11/7/13 12:53:42 AM 0:01:51
    2 11/8/13 22:39:00 PM 0:07:03
    Last edited by maryren; 03-04-2014 at 12:06 PM.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need help with adding time

    In your formula, the TEXT function is returning a TEXT string even though it looks like a time value.

    You don't need the TEXT function in the formula. Just use:

    =IF(A3=A2,B3-B2,"")

    Format the cell as h:mm:ss

    Then your sum function should work.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    06-12-2013
    Location
    Fairbury NE
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Need help with adding time

    That is perfect and so simple, I feel silly for not knowing that. Thanks so much.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need help with adding time

    You're welcome. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Adding time (more than 24 hours) to date time stamp
    By sidapt in forum Excel General
    Replies: 6
    Last Post: 01-06-2014, 04:08 AM
  2. Adding elapsed time to date/time format over 24h
    By KimSenger in forum Excel General
    Replies: 1
    Last Post: 04-02-2013, 06:28 AM
  3. Adding up Absent time taking lunch time into consideration
    By abrilabs in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-21-2013, 02:02 PM
  4. Adding Time: Adding individual cells works, but SUM doesn't
    By fredmeister in forum Excel General
    Replies: 17
    Last Post: 04-11-2008, 10:40 AM
  5. [SOLVED] Adding time to date-time formatted cell
    By tawtrey(remove this )@pacificfoods.com in forum Excel General
    Replies: 4
    Last Post: 08-12-2005, 06:05 PM

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