+ Reply to Thread
Results 1 to 7 of 7

Adding time in two columns

  1. #1
    Registered User
    Join Date
    09-17-2014
    Location
    India
    MS-Off Ver
    Office 2013
    Posts
    4

    Adding time in two columns

    I download a report from a central server in Excel format which has names and time to show total worked hours. In this report I need to add time in two columns to get the total hours.

    Here is the example:
    In the first column the time is given as :18:44 and in the second column :27:04. If I use the formula =SUM(a2:b2) it gives 0:00:00. But when I manually add a 0 before the time ie 0:18:44 & 0:27:04, it adds and shows result as 0:45:48. I have attached a screenshot for clarity.

    Excel Scr Shot.JPG

    Now to get the total time, I add 0, which takes longer time. Is there a way to get the total time in much easier way? Please help.
    Attached Images Attached Images

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

    Re: Adding time in two columns

    try
    =SUM((0&A1),(0&B1))
    hmm
    :18:44
    is that hours:mins
    or min:sss
    "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

  3. #3
    Registered User
    Join Date
    09-17-2014
    Location
    India
    MS-Off Ver
    Office 2013
    Posts
    4

    Re: Adding time in two columns

    Some one suggested to use =SUM(TIMEVALUE("0"&A2),TIMEVALUE("0"&B2))

    This formula works when the time is :18:44 & :27:04 (mm:ss). But for certain employees, the time is 1:15:54 (hh:mm:ss) and :14:33 (mm:ss) or it can be in mm:ss and hh:mm:ss format. So, is there a way to make sure that when I calculate the total worked hours, the formula takes care of this?

    Please do suggest.

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

    Re: Adding time in two columns

    a sample of your raw data would be helpful
    Attach a sample workbook. .

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Registered User
    Join Date
    09-17-2014
    Location
    India
    MS-Off Ver
    Office 2013
    Posts
    4

    Re: Adding time in two columns

    I have attached the Excel file for your reference. Please do check and let me know how this can be solved. I appreciate your help.
    Attached Files Attached Files

  6. #6
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Adding time in two columns

    iN E2 and Drag it down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click just below left if it helps, Boo?ath?

  7. #7
    Registered User
    Join Date
    09-17-2014
    Location
    India
    MS-Off Ver
    Office 2013
    Posts
    4

    Re: Adding time in two columns

    Thanks to martindwilson & boopathiraja for helping to answer my query.

    Formula given by boopathiraja fixed the issue. Thanks for your help.

    Keep up your good work.

+ 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. [SOLVED] time line adding a specific time frame in each additional cell
    By RobertM01 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-23-2014, 10:22 AM
  2. [SOLVED] SUMIF or SUMIFS adding time where criteria is in multiple columns
    By 66ev in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-14-2013, 02:21 PM
  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 Values from Separate Hours and Minutes Columns
    By jeepers in forum Tips and Tutorials
    Replies: 2
    Last Post: 08-23-2005, 12:05 PM

Tags for this Thread

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