+ Reply to Thread
Results 1 to 11 of 11

dividing a time by a whole number to receive a different time

  1. #1
    Registered User
    Join Date
    04-07-2017
    Location
    dudley,england
    MS-Off Ver
    2013
    Posts
    5

    dividing a time by a whole number to receive a different time

    hi,
    new to this so forgive me for any newbie errors I make haha

    basically im creating a new schedule in excel for diffrerent areas of a steelworks shop floor. I have completed a couple fine but different area required different formats

    I need to be able to divide time by a whole number to receive a different time...

    e.g. 12:00:00/4=03:00:00

    currently the formula is working it out completely differently showing 12:00:00/4=15:00:00

    I understand that having it in time format gives it decimal number such as 12:00:00 is 0.5 so I understand that the formula would do 0.5/4=0.125 which is 3 hours

    this is not the case in this matter as the result must be 0.625 which is 15:00:00 in time

    confused is an understatement, has anyone got any suggestions please?

    in the attachment is a screen shot of what im going on about. the cell with the formula shown is what is returning 15:00:00

    thanks in advance,
    Josh Allen
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,069

    Re: dividing a time by a whole number to receive a different time

    If I enter 12:00:00 in A1 of a blank cell on a new spreadsheet
    Then in B1
    =A1/4
    I get 03:00:00

    If you're getting something different then the duration is not 12:00:00

    UPDATE: Your start time is 02/4/2017 22:00:00
    Your end time is 03/04/2017 13:00:00
    02/04/2017 10pm - 03/04/2017 1pm

    That's not 12 hrs that's 15 hrs

    Your duration is incorrect.
    Last edited by Special-K; 04-07-2017 at 06:32 AM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,225

    Re: dividing a time by a whole number to receive a different time

    Attaching a picture of an Excel sheet is not very useful to us, as we can't see the underlying data - it looks like START and END are combined date/time, but we can't see the column identifiers in your snapshot. It would be better if you attached a sample Excel workbook.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Note that the Paperclip icon does not work.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    04-07-2017
    Location
    dudley,england
    MS-Off Ver
    2013
    Posts
    5

    Re: dividing a time by a whole number to receive a different time

    hi,

    it keeps saying upload failed. im guessing this may be due to the size of the file as it has several tabs with a lot of information in it, would it be possible to send this to you via direct email?

    thanks
    josh

  5. #5
    Registered User
    Join Date
    04-07-2017
    Location
    dudley,england
    MS-Off Ver
    2013
    Posts
    5

    Re: dividing a time by a whole number to receive a different time

    also in response to "special k" would this differ if the 12 hours was the result of another formula?

  6. #6
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,069

    Re: dividing a time by a whole number to receive a different time

    Quote Originally Posted by JOSH ALLEN View Post
    hi,

    it keeps saying upload failed. im guessing this may be due to the size of the file as it has several tabs with a lot of information in it, would it be possible to send this to you via direct email?

    thanks
    josh
    The paperclip option to add attachments does not work.
    Did you use the manage Attachments option as stated?

    Not sure what you mean by "would this differ..."
    If the result is 12:00:00, then dividing by 4 would result in 03:00:00
    If the result is not 12:00:00 created by formula or otherwise then dividing by 4 would not result in 03:00:00

    This si why it is essential you can upload the file so we can see exactly what has been entered into the cells.
    Last edited by Special-K; 04-07-2017 at 07:45 AM.

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,225

    Re: dividing a time by a whole number to receive a different time

    We don't need the complete file - I did say attach a SAMPLE workbook. Can you just mock one up with a single sheet showing a few sample data items including some that are causing you problems.

    Pete

  8. #8
    Registered User
    Join Date
    04-07-2017
    Location
    dudley,england
    MS-Off Ver
    2013
    Posts
    5

    Re: dividing a time by a whole number to receive a different time

    Im hoping that displays all the information properly as i get a lot of information from other tabs, let me know if it doesnt work properly

    thanks,

    josh
    Attached Files Attached Files

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,225

    Re: dividing a time by a whole number to receive a different time

    You have:

    M8: =$H8*$BH$8

    where BH8 is 2:00:00 and H8 is 30, so the result is 60:00:00. This only shows as 12:00:00, though, as the formatting is wrapping at 24 hours. You can see the correct value if you apply a custom format of:

    [h]:mm:ss

    to cell M8. Similarly:

    N8: =M8+($L$2*L8)

    is also showing as 12:00:00, but its real value is 60:00:00 (change the formatting on N8 to see this). As you have:

    J8: =$N8/$L8

    and L8 is 4, then it is correctly showing 15:00:00.

    Perhaps you need to consider the logic again, if you expect the result to be 3:00:00 - you could use this instead in J8:

    =MOD($N8,1)/$L8

    but I don't think that is the correct answer.

    Hope this helps.

    Pete

  10. #10
    Registered User
    Join Date
    04-07-2017
    Location
    dudley,england
    MS-Off Ver
    2013
    Posts
    5

    Re: dividing a time by a whole number to receive a different time

    spot on mate thankyou, when staring at it for hours on end trying to logically understand it it become rather confusing haha sometimes its simple but takes a 3rd party to point it out haha

    yes it was the working out that I was struggling with but it makes a lot more sense now that the duration is 60 hours/4 to get 15 hours overall

    thankyou for your help buddy

    josh

  11. #11
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,225

    Re: dividing a time by a whole number to receive a different time

    You're welcome, Josh - glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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 af formula for elapsed time with a fixed(static) time
    By cbend001 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-03-2014, 09:37 PM
  2. [SOLVED] Converting Time into Number and Dividing in Excel
    By newbie4 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-22-2014, 04:43 AM
  3. [SOLVED] Dividing time with time or number
    By Equipoise in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-05-2013, 11:34 AM
  4. [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
  5. [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
  6. [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
  7. [SOLVED] When I add time - Example 10 days of 8 hours each I receive 81.46
    By Kathy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-12-2006, 12:50 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