+ Reply to Thread
Results 1 to 3 of 3

Subtracting a whole number from working hours

  1. #1
    Forum Contributor
    Join Date
    11-08-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2016
    Posts
    140

    Subtracting a whole number from working hours

    This is doing my head in, I'm sure its a dead simple solution but cannot get it to work..

    Cell A1 contains a start time formatted as [hh]:mm
    Cell B1 contains an end time formatted as [hh]:mm
    Cell D1 contains lunch perriod formatted as number with two decimal places
    Cell F1 contains total numbers hours worked formatted as [hh]:mm

    Subtracting the end and start times I've for but problem is when I try and subtract the 1 for lunch.
    (I've attached very simple excel sheet for ease)
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Subtracting a whole number from working hours

    1 is a whole day.

    In D2, put 0.04 (which is 1/24) and format the cell as time.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Subtracting a whole number from working hours

    SUM((B2-A2)-D2/24)


    but better formatting the lunch as a time as Ali says

+ 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. Formula to adjust for working hours when subtracting a start and end time
    By mialupini in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-29-2016, 02:53 AM
  2. How to calculate the number of working hours between 2 dates
    By Rupe in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-04-2014, 12:02 PM
  3. Subtracting hours from time to calculate overtime hours
    By nabilishes in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-16-2012, 08:56 AM
  4. Count number of working hours
    By excel_guy in forum Excel General
    Replies: 3
    Last Post: 08-04-2010, 02:04 AM
  5. How to project the due date according to a number of working hours
    By Eric in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-28-2005, 11:05 AM
  6. Replies: 8
    Last Post: 10-24-2005, 07:05 AM
  7. How to project the due date according to a number of working hours
    By Eric in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-21-2005, 11:05 AM

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