+ Reply to Thread
Results 1 to 8 of 8

Total hours and paid hours calculation advice

  1. #1
    Registered User
    Join Date
    03-25-2013
    Location
    kiddy england
    MS-Off Ver
    Excel 2007
    Posts
    6

    Total hours and paid hours calculation advice

    Hi Guys i need a bit of advice please on how to fix this issue i'm having.

    Basically attached is a rota for working over a 2 week period, initially it was 1 box with the days working hours wrote inside, but i wanted to make the Total calculable at the end, in case the manager changes any hours so we know exactly what we have worked.

    in the total hours i have used a formula like

    Please Login or Register  to view this content.
    i had to use the divide by 100 at the end due to the total having two 0's at the end due to one hour being 100, and 30 mins as 50, through excel calculations. and also used that formula so if the manager adds extra hours in the blank boxes (our days off) it will automatically calculate.

    However in the paid total i'm really struggling to get this to work. on 10 hours shifts we get 1 hour lunch however 30 mins is paid and 30 unpaid. and 8 hour shift is 30 minutes unpaid. So in theory every shift we work we would just lose 30 minutes for lunch, s

    i know if i had a separate box for lunch on the rota then it would be easy to calculate. but as i cant really change the way it looks on here, im forced to find an alternative way.

    i have tried the above formula again but added =SUM($D4-$c4)-50,($F4-$E4)-50 etc etc, but i keep getting an error. Also i thought afterwards if i did get it to work, the issue might be the blank boxes then, as there will be no time to subtract 50 off so it would be a value of -50 instead of a zero value.

    can anyone advise on how i can fix this? i've attached the file so you guys can have a look

    thank you
    Attached Files Attached Files
    Last edited by lozzauk; 03-26-2013 at 08:47 AM. Reason: title change and code command

  2. #2
    Registered User
    Join Date
    03-26-2013
    Location
    ireland
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Total hours and paid hours calculation advice

    I cut away the extra rows and focused on one. you can fill out what you need from there.

    I added conditional formatting so you can see what days are staffed easily. the calculation steps are at the end which you can hide.

    The countif counts any day that is staffed (but it counts both start and end times hence the /2) this gives you a multiplier to find the amount to deduct from working hours for lunches.
    Attached Files Attached Files
    Last edited by jaggeh; 03-26-2013 at 10:28 AM. Reason: forgot something

  3. #3
    Registered User
    Join Date
    03-25-2013
    Location
    kiddy england
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Total hours and paid hours calculation advice

    mate thats great thankyou.

    only issue i am having with it, is if i edit another day that's a day off, it counts the hours but it doesnt increase the working day number to times by the 0.50
    so if normal week is 72.5 paid hours, adding another 0800-1800 it displays 82.5 instead of 82, but the box does go green indicating the shift.

  4. #4
    Registered User
    Join Date
    03-26-2013
    Location
    ireland
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Total hours and paid hours calculation advice

    ***i see that now, im not sure why its not working. the Countif should capture every field above 0.***

    im a dummy, i have it backwards change the countif to >0 (for some reason i have it set to >= )

    I have tested it by changing all times to 00:00 to get a 0 and all times to 09:00/17:00 to get 14 so it should be working
    Last edited by jaggeh; 03-26-2013 at 12:06 PM. Reason: im a dummy

  5. #5
    Registered User
    Join Date
    03-25-2013
    Location
    kiddy england
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Total hours and paid hours calculation advice

    lol thanks mate.

    if i put a value other than the time in any boxes, would it mess it up with the way you have done it?

    for example if someone was on holiday and hol was wrote in the box and we added it to go blue, would it still function properly?

  6. #6
    Registered User
    Join Date
    03-26-2013
    Location
    ireland
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Total hours and paid hours calculation advice

    that would probably break it

    but you can just change the color formatting a day with 0 hours marked blue is an unpaid holiday, a day with hours marked blue is a paid one.
    shouldn't be an issue.

  7. #7
    Registered User
    Join Date
    03-25-2013
    Location
    kiddy england
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Total hours and paid hours calculation advice

    i removed the = from the >=0 but its throwing out a 1 in the box at the end if i add hours on a scheduled day off. and if i still leave the = in, i still only get 7... hmmmmm how did you get it to work after you insulted yourself by saying your a dummy :D when your clearly not :D
    edit: i dont know if its the wednesday causing the problem as its a different custom. however ive chopped and changed but the best ive done is getting it to recognise days off rather than on. any ideas mate?
    Last edited by lozzauk; 03-26-2013 at 08:36 PM. Reason: added to question

  8. #8
    Registered User
    Join Date
    03-26-2013
    Location
    ireland
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Total hours and paid hours calculation advice

    im not sure what you have done. ive set the two weeks to a 9-5 shift monday to friday as an example and its coming out with 5 hours of unpaid break time as it should. ive attached the update
    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)

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