Hello everyone,
Thank you in advance. I have been working on this for a while today and can't sort it out. Has been a long time since I have tried to do anything complex in Excel.
So this is a days worked tracker I want to create for work.
Sheet 1 - Row one begin employee names. Column 1 is the date. We have numbers assigned to equal Reg Day, OT day, Sick and so on that are entered for each employee each day.
B C D E F
1 1 1 1 1 1
2 1 1 1 1 1
3 1 1 2 1 1
4 1 1 1 1 1
5 1 1 1 1 4
Sheet 2 - I have this sheet set up to take all the "values" for Reg day and OT day and turn them into "1" for days worked and "0" for days where no time was put in.
1 0 0 0 0 0
1 0 0 0 0 0
1 1 0 1 0 0
1 0 0 1 0 0
1 0 0 0 0 0
0 1 0 1 1 1
What I want to do is, and this can be on a separate sheet if it is easier, have Excel count the days worked up, 1,2,3,4,5, but the count needs to reset back to 1 under certain conditions. I will try and explain the conditions the best I can. So the days worked will work as followed;
- if you work 1 - 6 days you need to take 1 off then it will reset to 0
- if you work 7 - 12 days you need to take 2 consecutive days off then it will reset to 0, if the days off are not consecutive, ex. work 10, took 1 day off then back to work for 1 day, your
total days worked would actually be 12 days, the day off counts as a day worked
- if you work 13 - 18 days you need to take 3 consecutive days off then it will reset to 0, non consecutive follows the rule above
- if you work more than 18 days you need to take 4 consecutive days off then it will reset to 0, non consecutive follows the rule above
I hope that makes sense to people. I don't care if this takes multiple sheets to do or not. Would be very thankful for any assistance with this matter.
Bookmarks