Results 1 to 9 of 9

Need a little help retrieving night shift through numerical values instead of time.

Threaded View

j4987 Need a little help retrieving... 03-01-2016, 06:05 AM
Pepe Le Mokko Re: Need a little help... 03-01-2016, 06:56 AM
j4987 Re: Need a little help... 03-01-2016, 11:16 AM
JeteMc Re: Need a little help... 03-02-2016, 01:28 PM
j4987 Re: Need a little help... 03-03-2016, 02:06 AM
j4987 Re: Need a little help... 03-03-2016, 02:20 AM
JeteMc Re: Need a little help... 03-03-2016, 11:05 AM
j4987 Re: Need a little help... 03-04-2016, 02:00 AM
JeteMc Re: Need a little help... 03-04-2016, 10:23 AM
  1. #1
    Registered User
    Join Date
    03-01-2016
    Location
    Philippines
    MS-Off Ver
    Office 360
    Posts
    5

    Wink Need a little help retrieving night shift through numerical values instead of time.

    Hello. I have a little problem with the formula I made that calculates the number of night shift hours rendered based on a night shift window of 10pm-6pm.

    A little background on the spreadsheet: For our purposes I wanted the logic formulas to return whole numbers and facilitate quick entries independent of date. I'm no expert, so my formulas will be quite cluttered and simplistic. What I've done is have the values 100-2400 be representative of the hours in a day; 100 being 1am, 200 as 2am, 1,500 as 3am, 2,400 as 12 midnight, etc. I've limited the use to just whole hours; no minutes or seconds (a minor limitation for my purposes).

    I have two columns a time in and a time out, and I created simple formulas to calculate the total hours rendered and number of hours that are considered over time.

    \1

    \1

    Formula for total hours:

    Where the column C is representative of the Time In while D is Time Out.

    The formula for hours over time follows the logic that any hour rendered past 8 hours is considered over time hence the formula:

    So basically total time rendered minus 8 hours is over time.

    My issue comes with calculating night shift hours. I just want to know how many hours of the total hours calculate falls under the Night Shift time frame between 10pm and 6am.

    I came up with this formula:

    Whereas C again is the time in, and E is the formula for total hours rendered. What happens here is the formula checks for the applicability of night shift, which starts past 10pm or 2,200.

    It works okay for some entries, but entries that have time ins/outs containing 2,300 or 2,400 (11pm or 12pm) are not displaying the number of hours I want to reflect. I understand that this could be a mathematical problem with the formula. The calculations are correct but the logic is false. I have a feeling this is due to an incomplete identification of night shift.

    I was wondering if there was any logic i could add that may help remedy the problem.


    Thank you
    Last edited by j4987; 03-01-2016 at 06:35 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Getting the day and night shift by time
    By Exc3l in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-21-2016, 02:46 PM
  2. Replies: 2
    Last Post: 08-26-2014, 07:42 AM
  3. Need to Count Occurances over Time Range in a Night Shift
    By lmbrown2008 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-16-2013, 06:54 PM
  4. Need Help on Time Sheet Formula (Day Shift OK/Night Shift=Problem)
    By jomapac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-18-2013, 02:26 AM
  5. Help computing turnaround time for night shift
    By hypothetical in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-01-2013, 10:37 AM
  6. Replies: 4
    Last Post: 09-21-2012, 12:58 AM
  7. Day shift/night shift time calculation issue
    By STATEXCEL in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-31-2007, 08:48 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