I have a report that I need to sum all values between 9 am on day 1 and 5 am on day 2. Unfortunately my report format is the below. This report updates every day so I need a dynamic formula that will always sum 9 am to 5 am based on a date stated in a different cell. So for example, if my reference cell says 10/4/22, I need the sum of column 2 for 10/4/22 9:00:00 AM through 10/5/2022 5:00:00 AM. I've tried just reformatting the first cell into a date but the time format won't let me do a between formula because the dates are different and the time isn't in a 24 hour format and I'm not sure how to get it to that point. Formulas or macro solutions would be welcome, thanks in advance!
10/5/2022 5:00:00 AM | 61 |
10/5/2022 4:00:00 AM | 40 |
10/5/2022 3:00:00 AM | 25 |
10/5/2022 2:00:00 AM | 15 |
10/5/2022 1:00:00 AM | 69 |
10/5/2022 12:00:00 AM | 107 |
10/4/2022 11:00:00 PM | 107.84 |
10/4/2022 10:00:00 PM | 110.95 |
10/4/2022 9:00:00 PM | 104 |
10/4/2022 8:00:00 PM | 108 |
10/4/2022 7:00:00 PM | 115 |
10/4/2022 6:00:00 PM | 113 |
10/4/2022 5:00:00 PM | 116 |
10/4/2022 4:00:00 PM | 114 |
10/4/2022 3:00:00 PM | 120 |
10/4/2022 2:00:00 PM | 123 |
10/4/2022 1:00:00 PM | 120 |
10/4/2022 12:00:00 PM | 117 |
10/4/2022 11:00:00 AM | 116 |
10/4/2022 10:00:00 AM | 119 |
10/4/2022 9:00:00 AM | 121 |
10/4/2022 8:00:00 AM | 123 |
10/4/2022 7:00:00 AM | 117 |
10/4/2022 6:00:00 AM | 104 |
10/4/2022 5:00:00 AM | 67 |