+ Reply to Thread
Results 1 to 2 of 2

How to Calculate Number of Overtime Hours but Only for Weekday

  1. #1
    Registered User
    Join Date
    04-15-2014
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2007
    Posts
    5

    How to Calculate Number of Overtime Hours but Only for Weekday

    Hello,

    I need help with a formula that will calculate the number of overtime hours, but only for weekdays.

    I have in:
    Column A1: Date of Work (for example, December 24, 2012)
    Column A2: Number of Hours worked (for example, 8)
    Column A3: Day of the Week (for example, Monday)

    I want to put the formula in Column A4, which will show "Number of Overtime Hours (Weekdays)".
    Basically, anything over 8 hours will be overtime. So in Column A4, I want something that says if A2>8 and A3 is Monday-Friday, then A2-8.
    So lets say for example it is 12 hours on a Tuesday. I'm guessing the formula would be something like: =IF(A2>8 AND MONDAY-FRI???, (A2)-8,0)=4.

    Can anyone help? Thanks,

    Tony

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: How to Calculate Number of Overtime Hours but Only for Weekday

    try this in the 4th column:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The weekday formula computes the day for a date, with Mon=1, Tue=2, .... Sat=6 and Sun=7. Since you only need from 1 to 5, using "<6" would get all those values. Hope that helps!

+ 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. Replies: 2
    Last Post: 01-17-2014, 02:22 PM
  2. [SOLVED] 40 Hours per week / how to calculate overtime hours
    By hudsonic72 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-07-2013, 02:33 AM
  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. Calculate Overtime Hours
    By Yelrihs in forum Excel General
    Replies: 2
    Last Post: 05-18-2011, 03:45 PM
  5. Calculate Hours and overtime by week
    By gregt812 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-23-2005, 03:10 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