+ Reply to Thread
Results 1 to 5 of 5

Dividing time with time or number

  1. #1
    Registered User
    Join Date
    11-23-2012
    Location
    Finland
    MS-Off Ver
    Excel 2010
    Posts
    12

    Dividing time with time or number

    Hello,

    I've made a work time sheet where I have the time when I came to work and when I left work formatted as h:mm. Then I have a column where I have the time in minutes I spent on breaks (h:mm as well). Then I calculate my total work time fir that day with an =End-Start-Break formula, which returns it in the same h:mm format.

    After the day total comes a column with a +/- column, where I substract 7:15 (7 hours 15 minutes or 7,25 hours) from the day total to give me a number in h:mm of how much it went over or under the normal working hours. So if I start at 9:15, end at 16:50 and have a 00:15 break in between, I have a total of 7:20 which is +00:05 overtime.

    For each week I have a week total which totals the +/- column. Below that is another total which calculates all-time total so I can keep track of how many days, hours or minutes I have overtime in total (it sums up last week's and this week's totals). Here comes the question part. Since it's in h:mm format, I get for example 08:08 which means that I have 1 workday and 53 minutes overtime. How can I convert the h:mm version to a version where I have the actual number of full 7:15 work days and then the remaining part? It can be separated to adjacent cells if needed, the only requirement would be that it says actual "days" / hours / minutes, not hours in decimal format.

    I have Excel2010 that I've set to use the 1904 date system. I used to have the whole thing in decimal format but it was rather annoying to use so I decided to make a more readable version. But with decimals it was quite easy to just divide the total sum with 7,25.

    I have an example file attached.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Dividing time with time or number

    Hi
    Try this formula. Change cell references to suit:

    =IF(J32>A2,"1 day " & MINUTE(J32-A2) & "minutes")

    Good luck.
    Tony

  3. #3
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Dividing time with time or number

    One more approach.. which will work in case of work is greater than 7:15 * 2

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Dividing time with time or number

    Try like this

    =INT(J32/A2)&" days "&TEXT(MOD(J32,A2),"h:mm")

    That will give you 1 days 0:35 for your example
    Audere est facere

  5. #5
    Registered User
    Join Date
    11-23-2012
    Location
    Finland
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Dividing time with time or number

    Thank you all very much!

+ 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] Dividing time by a number (distance) to find pace
    By nharvey4 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-24-2013, 12:37 PM
  2. [SOLVED] dividing a number amongst 3 textboxses with "1" number at a time
    By Leandrial in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-06-2012, 10:07 PM
  3. [SOLVED] dividing a number by a time in excel
    By Adam B Schmitt in forum Excel General
    Replies: 6
    Last Post: 05-03-2012, 08:21 PM
  4. Dividing a time Value
    By Lindsey H in forum Excel General
    Replies: 7
    Last Post: 01-29-2009, 12:54 PM
  5. Dividing Time
    By guilbj2 in forum Excel General
    Replies: 1
    Last Post: 05-23-2006, 08:08 AM

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