tezza
Active Member
- Joined
- Sep 10, 2006
- Messages
- 375
- Office Version
- 2016
- 2010
- Platform
- Windows
- Web
Hi all,
Can anyone help automate the contents below please?
Col A & B are entered manually (well, copied from another data source) and the rest needs a formula/conditional formatting.
The idea is quite straight forward but I can't get excel to play ball.
If any of the hours from Col A and Col B are between 8pm and 9am then return how many hours are in that range, then the same for hours between 9am and 8pm. I think the biggest challenge would be row 6 so maybe only D6 and E6 needs to be correct and the rest would just follow.
The conditional format isn't so important but it would finish it off with a good visual
I've made a start with Col C
I've you take this on then I thank you very much in advance as I have roughly 1000 rows per week to calculate and it's taking a long time to do something I'm sure excel can do very quickly.
Tez
Can anyone help automate the contents below please?
Col A & B are entered manually (well, copied from another data source) and the rest needs a formula/conditional formatting.
The idea is quite straight forward but I can't get excel to play ball.
If any of the hours from Col A and Col B are between 8pm and 9am then return how many hours are in that range, then the same for hours between 9am and 8pm. I think the biggest challenge would be row 6 so maybe only D6 and E6 needs to be correct and the rest would just follow.
The conditional format isn't so important but it would finish it off with a good visual
I've made a start with Col C
Book1 | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | |||
1 | Start Time | End time | Total Time | Between 8pm and 9am | Between 9am and 8pm | 00:00 | 01:00 | 02:00 | 03:00 | 04:00 | 05:00 | 06:00 | 07:00 | 08:00 | 09:00 | 10:00 | 11:00 | 12:00 | 13:00 | 14:00 | 15:00 | 16:00 | 17:00 | 18:00 | 19:00 | 20:00 | 21:00 | 22:00 | 23:00 | |||
2 | 06:00 | 10:00 | 04:00 | 03:00 | 01:00 | |||||||||||||||||||||||||||
3 | 18:00 | 02:00 | 08:00 | 06:00 | 02:00 | |||||||||||||||||||||||||||
4 | 11:00 | 15:00 | 04:00 | 00:00 | 04:00 | |||||||||||||||||||||||||||
5 | 23:00 | 05:00 | 06:00 | 06:00 | 00:00 | |||||||||||||||||||||||||||
6 | 18:00 | 10:00 | 16:00 | 11:00 | 05:00 | |||||||||||||||||||||||||||
7 | MANUAL ENTRY | FORMULATED ENTRY | CONDITIONAL FORMAT | |||||||||||||||||||||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C2:C6 | C2 | =B2-A2+(B2<A2) |
I've you take this on then I thank you very much in advance as I have roughly 1000 rows per week to calculate and it's taking a long time to do something I'm sure excel can do very quickly.
Tez