In cell B2, you have a date:
5/26/20 13:00
but this date is actually stored in Excel as a decimal number:
43977.54167
The integer part is the number of days since 1/1/1900 and the decimal part is the fraction of the 24 hour day elapsed since 12:00AM
therefore whole numbers are DAYS, fractions are hours. One hour is 1/24 of a day, etc.
Notice that in your original attachment, the "corrected" values have the wrong date!
If you prefer the IF() formulas the you must correct it:
I used named cells in my attached workbook to make the formula simpler, all you had to do was drag it down...
Bookmarks