yes that is correct I want to see only the data upto the 1700 on 1/3/22

The dataset on the left is sorted from a 11000 line data set,
that is a small sample of the dates indicated on the right
That sample on the left is from the formulas on the right 3rd line up 1/2/2022 is sorted from the large set and gives me the 1/2/22 start date the formula for 1/3/22 shows data through midnight on 1/3/22,
I wanted that time to end on 1700 hour of 1/3/22 not at midnight