T
Tomkat
Hello,
I am wondering if there is a way to compare to ranges of
times, then compute how many
hours from 1 range fall within the other.
I am trying to calculate hours worked for 2nd shift
differential pay, but there are 5
different scenarios that I can think of. I have
illustrated them as follows....
2nd shift begins at 15:00 and ends at 23:00
A1 = Time in
B1 = Time out
15:00 23:00
| |
1. A1|--+--|B1 |
| |
2. A1|-----------------------|B1
| |
3. | A1|----------|B1 |
| |
4. | A1|---+---|B1
| |
5. A1|--+-----------------------+--|B1
| |
| |
Will I need a separate formula for each scenario...joined
by +IF function,
or is there one formula that will account for all scenarios?
I have been racking my brain for awhile, but I'd rather
save some time by not re-creating
a formula from scratch if there's one already available.
Any help would be GREATLY appreciated!
I am wondering if there is a way to compare to ranges of
times, then compute how many
hours from 1 range fall within the other.
I am trying to calculate hours worked for 2nd shift
differential pay, but there are 5
different scenarios that I can think of. I have
illustrated them as follows....
2nd shift begins at 15:00 and ends at 23:00
A1 = Time in
B1 = Time out
15:00 23:00
| |
1. A1|--+--|B1 |
| |
2. A1|-----------------------|B1
| |
3. | A1|----------|B1 |
| |
4. | A1|---+---|B1
| |
5. A1|--+-----------------------+--|B1
| |
| |
Will I need a separate formula for each scenario...joined
by +IF function,
or is there one formula that will account for all scenarios?
I have been racking my brain for awhile, but I'd rather
save some time by not re-creating
a formula from scratch if there's one already available.
Any help would be GREATLY appreciated!