+ Reply to Thread
Results 1 to 5 of 5

Formula to fill C5 with a time that makes J5 equal 8 hours based on time put into B5

  1. #1
    Registered User
    Join Date
    10-26-2015
    Location
    JC, TN
    MS-Off Ver
    Office 365 for Enterprise version 2208
    Posts
    41

    Formula to fill C5 with a time that makes J5 equal 8 hours based on time put into B5

    I have a time sheet that I send out to a team to use to track their time. It is a team of field techs that are always on the road going from site to site. Currently, you clock in when starting work, clock out for lunch, clock back in after lunch, and clock out at the end of the day. There is also a couple extra clock in and out cells for when we get called out after hours. Each row is dated and totaled in column N, and every 7 rows are totaled in the 8th row for weekly totals.
    Management is super picky about clock out times making for 8 hour days so I want to make this sheet to basically tell the tech when they need to clock out at the end of each day based on their current inputs (because some of these guys are NOT the sharpest knife in the drawer, if you know what I mean).

    Basic layout: Columns B, D, F, and H are all for their clock in times. Columns C, E, G, and I are for clock outs. Column J uses an IF formula to total the times in columns B thru I. Columns K, L, and M are used to show paid time off, overtime, etc. Column N is the total hours for the day with a simple sum of cells J thru M.

    Now that I've thoroughly confused you, here's what I need: I need a formula to take a manually input time from cell B5 (Clock-in time), figure out what time needs to be put into cell C5 (Clock-out time) that will make cell J5 (simply subtracts B5 from C5) equal 8 hours, then have that formula automatically fill in cell C5 with that time (thus, showing the user exactly what time they need to clock out for it to be an 8 hour day).

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula to fill C5 with a time that makes J5 equal 8 hours based on time put into B5

    Hi,

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

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    10-26-2015
    Location
    JC, TN
    MS-Off Ver
    Office 365 for Enterprise version 2208
    Posts
    41

    Re: Formula to fill C5 with a time that makes J5 equal 8 hours based on time put into B5

    Sorry, I wasn't clear enough. I attached a .png file showing what the sheet looks like. In the example on row 5, the tech clocked in at 8:00. He worked for 4 hours and clocked out at noon for a half hour lunch then clocked back in at 12:30. I need a formula hidden in one of the outer columns on that row that will take the input times, calculate what time is required to make it an 8 hour day, and automatically fill in the next cell with that time (in this case, it would be 16:30).
    Can this be done without using macros?
    Attached Images Attached Images

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula to fill C5 with a time that makes J5 equal 8 hours based on time put into B5

    Hi,

    Please upload the workbook. Pictures are rarely much use.

  5. #5
    Registered User
    Join Date
    10-26-2015
    Location
    JC, TN
    MS-Off Ver
    Office 365 for Enterprise version 2208
    Posts
    41

    Re: Formula to fill C5 with a time that makes J5 equal 8 hours based on time put into B5

    Ok. Thanks. Here it is. I am an amateur at excel formulas, but what I have here works. I'm just trying to make it better.
    Attached Files Attached Files

+ 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 for Timesheet - Double Time, Time Half and normal Hours
    By Tracs13 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-12-2017, 09:40 PM
  2. formula to fill large range of cells with time intervals exceeding 24 hours
    By mejia.j88 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-18-2014, 11:59 PM
  3. [SOLVED] Formula to Calculate Normal Hours, Time & 1/2 & Double Time from Daily Hours per week
    By KazzICC in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-17-2014, 01:51 AM
  4. Formula to work out deductions based on hours and time
    By elmobram22 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-17-2013, 12:13 PM
  5. Calculating END time based on start time, breaks, and hours to complete
    By sweedey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2012, 11:29 AM
  6. Vba add time based on cell and fill formula
    By Zaeguzah in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-31-2010, 09:41 AM
  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