+ Reply to Thread
Results 1 to 9 of 9

Timesheet Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    05-21-2006
    Location
    Cochrane
    MS-Off Ver
    365
    Posts
    59

    Timesheet Formula

    Hello,
    I am trying to do the following
    If an employee works more than 7hrs., any time more than 7 hrs is banked
    So i would have another column with the banked time
    =if(g10>7,g10-7,0)
    if the employee worked less than 7hrs and had some banked hrs, then add the banked hrs to the time to get seven or as close as possible, because maybe there is not enough banked hrs yet to hit 7
    any ideas?
    Paul

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080
    What happens if the employeee already has some banked hours?
    Your "g10" function will overwrite the previously banked hours.
    What should hapopen in that case?

    Would be best if you could provide an example of your spreadsheet so we can see how the above relates as an employee accumulates banked hours over days/weeks etc
    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
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664
    Hi,

    If I'm right, you're trying to work out if the employee has worked more or less than their alloted amount of hours per week.

    I've attached a spreadsheet that displays how many hours an employee has worked, and if they've banked some hours, or if they're owing some.

    HTH,

    SamuelT
    Attached Files Attached Files
    Last edited by SamuelT; 08-07-2007 at 09:49 AM.

  4. #4
    Registered User
    Join Date
    05-21-2006
    Location
    Cochrane
    MS-Off Ver
    365
    Posts
    59
    Thanks SamuelT,
    Here's a zipped copy of the timesheet,
    I am having problems with the formula as well
    =IF(H7>7,H7-7,"")

    Thanks
    Attached Files Attached Files

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719
    Because column H is in time format that formula won't work. Try this in I7 copied down

    =IF(H7>7/24,H7-7/24,"")

  6. #6
    Registered User
    Join Date
    05-21-2006
    Location
    Cochrane
    MS-Off Ver
    365
    Posts
    59
    Thanks works great

  7. #7
    Registered User
    Join Date
    05-21-2006
    Location
    Cochrane
    MS-Off Ver
    365
    Posts
    59
    Hi, I'm back
    On the same sheet
    range StartDay is the first day of a month
    How can I perform this formula

    =(number of workdays for the StartDay month)*7

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719
    If you use Analysis ToolPak functions NETWORKDAYS and EOMONTH

    =NETWORKDAYS(StartDay,EOMONTH(StartDay,0),holidays)*7

    where holidays is a named range containing your holiday dates

    or this way doesn't need Analysis ToolPak but just excludes weekends not holidays:

    =SUM(INT((WEEKDAY(StartDay-{1,2,3,4,5},3)+DAY(Startday+31-DAY(StartDay+31)))/7))*7

  9. #9
    Registered User
    Join Date
    05-21-2006
    Location
    Cochrane
    MS-Off Ver
    365
    Posts
    59
    Thanks Daddylonglegs

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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