mole999
Well-known Member
- Joined
- Oct 23, 2004
- Messages
- 10,524
- Office Version
- 2019
- 2016
- 2013
- Platform
- Windows
I need to return Start and Start2 separately, when a time supplied is between length and length2. Currently 5 IFs but need to extend to 13 periods
<tbody>
</tbody>
length | length2 | Start | Start2 | test | ||
05:59:59 | 0 | 0 | 0 | 0 | ||
06:00:00 | 06:29:59 | 02:00:00 | 04:00:00 | 1 | 07:29:00 | |
06:30:00 | 06:59:59 | 02:30:00 | 04:30:00 | 2 | ||
07:00:00 | 07:29:59 | 03:00:00 | 05:00:00 | 3 | ||
07:30:00 | 07:59:59 | 03:30:00 | 05:30:00 | 4 | ||
08:00:00 | 08:29:59 | 02:30:00 | 04:30:00 | 5 | ||
08:30:00 | 08:59:59 | 03:00:00 | 06:00:00 | 6 | ||
09:00:00 | 09:29:59 | 03:30:00 | 06:30:00 | 7 | ||
09:30:00 | 09:59:59 | 04:00:00 | 07:00:00 | 8 | ||
10:00:00 | 10:29:59 | 04:00:00 | 07:00:00 | 9 | ||
10:30:00 | 10:59:59 | 04:30:00 | 07:30:00 | 10 | ||
11:00:00 | 11:29:59 | 04:30:00 | 07:30:00 | 11 | ||
11:30:00 | 11:59:59 | 04:30:00 | 07:30:00 | 12 | ||
12:00:00 | 12:29:59 | 04:30:00 | 07:30:00 | 13 |
<tbody>
</tbody>
Last edited: