I have an Excel form with some hidden functions. I’m not an Excel person so I’m translating it into another program code but I need help in understanding how Excel converts dates and time to make an arithmetic operations.
Here is an example:
Cell B5: 11/9/12
Function
=B5 =0.1/24 =D2+2415018.5+E2-$B$5/24
D2: 11/9/12 E2: 0:06:00 F2: 2456240.96
So my problem is that I don’t understand how Excel coverts D2 and E2 in the equation:
D2+2415018.5+E2-$B$5/24 so that I can write it in python code.
Would appreciate some clarification please!
I don’t follow your example, but what you need to know is that Excel stores dates as the number of days since January 0, 1900 (not a typo). An hour is 1/24 of a day, a minute is 1/24/60, etc. See this for more.