+ Reply to Thread
Results 1 to 8 of 8

Add time time to total time.

  1. #1
    Forum Contributor
    Join Date
    12-06-2023
    Location
    Ontario
    MS-Off Ver
    365
    Posts
    130

    Add time time to total time.

    Hello,

    I am tracking the amount of hours and minutes I work daily using =IF(OR(C11="",D11=""),"",((D11-C11)*1440)/60)

    This gives me a return in hours and minutes. I have another cell F11 that I would like to add additional time into in minutes and have it added to the original total.

    Here is the file, thank you in advance: Lieu Tracker.xlsx

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,861

    Re: Add time time to total time.

    Column E does not give you hours and minutes. Moreover you changed formula there with subtaction of 80 minutes.
    The formula returns hours and hundredths of hour, not hours and minutes. So in E6 you have 10.30 which is 10h18
    If you have time used in minutes in (let's stay in row 6) written in F6 as 80 then formula in E6 shall read:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    but if you have it written in F6 as 01:20:00 (so again 80 minutes) then in E6 use:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    By the way, you can do all calculations using time being presented as "Excel time". Key to success if you want to present numbers hihgher than 24 hrs is using custom formatting

    [hh]:mm - see Cell G4, where I changed formula to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In copy of your sheet I tried to correct all calculations to use just time. the only exception is calculation of Accumulated days in K3

    Change checkout in D15 to 2:04PM and observe changes in K3 (and J3 - here will be just one minute increase)
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    12-06-2023
    Location
    Ontario
    MS-Off Ver
    365
    Posts
    130

    Re: Add time time to total time.

    Thank you,

    I am not sure if it is working though.

    For example, line 6. I started at 630am and finished at 4:48pm for a total of 10 hours and 18 minutes. However the results in Total Time only says 8:58 minutes.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,861

    Re: Add time time to total time.

    I thought you wonted to deduct column F from D and C difference. If not change formula in Sheet 1(2) E13:
    =IF(OR(C13="";D13="");"";D13-C13-F13)
    to
    =IF(OR(C13="";D13="");"";D13-C13)

    or in sheet1 E6 from:
    =IF(OR(C6="";D6="");"";((D6-C6-F6)*1440)/60)
    to
    =IF(OR(C6="";D6="");"";((D6-C6)*1440)/60)

    of course in both cases the formula shall be copied down and up in column F

  5. #5
    Forum Contributor
    Join Date
    12-06-2023
    Location
    Ontario
    MS-Off Ver
    365
    Posts
    130

    Re: Add time time to total time.

    Hello,

    Thank you again for your help, I have been using the file as you made it. Thank you.

    I need a little more help. I added a column called "Additional Time". If I get home after finishing work, I may need to out in an additional time.

    1) I would like to be able to enter the time in minutes eg. 54, 71, 120, etc in column F. What formatting do I use for that [hh]:mm??
    2) I would like any time for that day over 8 hours to be added to the "Accumulated Hours" in cell K3.

    Here is my file: Lieu Tracker - WIP.xlsx

  6. #6
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    511

    Re: Add time time to total time.

    Okay you have me confused

    why would you want sum weekly hours over 44:00 and daily hours over 8:00 together in K3 it doesn't make sense?

    do you get my drift

  7. #7
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,861

    Re: Add time time to total time.

    If you do not want to enter 02:00 but just 120 minutes then yoiu can either:

    - format the cell(s) where you want to enter that time as [mm] and enter your time as 0:120 (unfortunately not just 120, because it will be 120 days ). It will be visible as 120 but taken to calculations as 02:00:00 (you will see it in formula bar when the cell is active).

    or
    - leave the cell in general format, and enter 120, but in formulas refering to that cell use F4/24/60 to have it as 0.083333 of day (1/12 of day).

    I'd rather use this first method, but both will work.

  8. #8
    Banned User!
    Join Date
    09-18-2024
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    16

    Re: Add time time to total time.

    When I did this a while ago I wrote functions to convert times to minutes and then back to times. All times were stored as strings.

    Mike.

+ 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. Replies: 3
    Last Post: 03-18-2021, 05:58 AM
  2. Replies: 2
    Last Post: 11-05-2020, 04:12 AM
  3. Replies: 0
    Last Post: 03-04-2016, 06:38 PM
  4. Replies: 9
    Last Post: 02-15-2015, 07:32 PM
  5. Replies: 3
    Last Post: 12-19-2013, 06:49 AM
  6. Automatic generation of Start time, end time and total time in excel
    By dreamwarden in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2013, 08:03 PM
  7. [SOLVED] template or formula for start time -finish time -total hours ple
    By cc in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-27-2006, 01:10 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