tezza
Active Member
- Joined
- Sep 10, 2006
- Messages
- 384
- Office Version
- 2016
- 2010
- Platform
- Windows
- Web
Hi All,
I'm working on a sheet that breaks down working shift patterns into categories:
Col G to L needs to populate automatically based on certain rules:
Col B must first me checked to see if the date is a Bank Holiday (so check a list eg: Cell N9 down for dates), if so then it's set at Weekend rate, however, if it goes past midnight then the remaining hours goes into the column based on Col E (so if Row 6 went past midnight it would look at Col E and put the extra hours into Col H), the same rule applies if working the day before a bank holiday into a bank holiday eg: 24/12 into 25/12
Weekend Rate starts at 00:00 Sat and ends 00:00 Mon
Therefore, Row 2 starts on a Friday at 10pm and works into Sat until 3am so so 2 hours would go into Col G based on the rate in Col E then switch to Col K Weekend rate
Same principle in reverse for Row 3 as the shift starts on the weekend but ends in monday - weekday (I've just seen a typo, D3 should be 4am not 16:00)
ST rate has it's own weekday and weekend rate as in row 4
I'm using formulas right now as I now very, very basic vba so that's getting complicated but I can't figure out the weekend to weekday split, same with bank holidays
The auto filled areas need to round to .25 - in formula I used Ceiling(G2,.25) as an example
The rate list needs to be dynamic so that different rates can be added, I'd have to add a new column to show that most likely.
Priority List:
Bank Holiday hours go into either Weekend or Weekend ST depending on Col E Rate
Weekend or Weekend ST hours same as above
Any hours that fall outside Bank Holiday or Weekend Hours fit into their own Col (Using midnights as a time cutoff)
Anyone fancy trying to set this up for me please?
Kind regards
Terry
I'm working on a sheet that breaks down working shift patterns into categories:
Col G to L needs to populate automatically based on certain rules:
Col B must first me checked to see if the date is a Bank Holiday (so check a list eg: Cell N9 down for dates), if so then it's set at Weekend rate, however, if it goes past midnight then the remaining hours goes into the column based on Col E (so if Row 6 went past midnight it would look at Col E and put the extra hours into Col H), the same rule applies if working the day before a bank holiday into a bank holiday eg: 24/12 into 25/12
Weekend Rate starts at 00:00 Sat and ends 00:00 Mon
Therefore, Row 2 starts on a Friday at 10pm and works into Sat until 3am so so 2 hours would go into Col G based on the rate in Col E then switch to Col K Weekend rate
Same principle in reverse for Row 3 as the shift starts on the weekend but ends in monday - weekday (I've just seen a typo, D3 should be 4am not 16:00)
ST rate has it's own weekday and weekend rate as in row 4
I'm using formulas right now as I now very, very basic vba so that's getting complicated but I can't figure out the weekend to weekday split, same with bank holidays
The auto filled areas need to round to .25 - in formula I used Ceiling(G2,.25) as an example
The rate list needs to be dynamic so that different rates can be added, I'd have to add a new column to show that most likely.
Priority List:
Bank Holiday hours go into either Weekend or Weekend ST depending on Col E Rate
Weekend or Weekend ST hours same as above
Any hours that fall outside Bank Holiday or Weekend Hours fit into their own Col (Using midnights as a time cutoff)
Anyone fancy trying to set this up for me please?
Kind regards
Terry