I have this data and need to fix the current and pervious date, the time is dinamic, every hour it will change but the range is for 24 hrs only. any way
Hourly_Founding_Day_Automation_V11.xlsm | |||||
---|---|---|---|---|---|
A | B | C | |||
5 | Time | AM/PM | Day | ||
6 | 12:00:00 | PM | 24 | ||
7 | 13:00:00 | PM | 24 | ||
8 | 14:00:00 | PM | 24 | ||
9 | 15:00:00 | PM | 24 | ||
10 | 16:00:00 | PM | 24 | ||
11 | 17:00:00 | PM | 24 | ||
12 | 18:00:00 | PM | 24 | ||
13 | 19:00:00 | PM | 24 | ||
14 | 20:00:00 | PM | 24 | ||
15 | 21:00:00 | PM | 24 | ||
16 | 22:00:00 | PM | 24 | ||
17 | 23:00:00 | PM | 24 | ||
18 | 00:00:00 | AM | 25 | ||
19 | 01:00:00 | AM | 25 | ||
20 | 02:00:00 | AM | 25 | ||
21 | 03:00:00 | AM | 25 | ||
22 | 04:00:00 | AM | 25 | ||
23 | 05:00:00 | AM | 25 | ||
24 | 06:00:00 | AM | 25 | ||
25 | 07:00:00 | AM | 25 | ||
26 | 08:00:00 | AM | 25 | ||
27 | 09:00:00 | AM | 25 | ||
28 | 10:00:00 | AM | 25 | ||
29 | 11:00:00 | AM | 25 | ||
Slide3-Working |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A6:A29 | A6 | =TEXT(E6,"hh:mm:ss") |
B6:B29 | B6 | =TEXT(E6,"AM/PM") |
C6:C29 | C6 | =IF(AND(A6<="23:00:00",B6="PM"),$H$3-1,$H$3) |