| View previous topic :: View next topic |
| Author |
Message |
kissmekate Newbie

Joined: 17 Jun 2010 Posts: 2 Location: Northern California
|
Posted: Thu Jun 17, 2010 9:49 am Post subject: Calculating differences between two datetime columns |
|
|
I've read about datediff, but that doesn't work for me because I'm not working with a database, I'm working with a spreadsheet and I need to reference cell numbers for what I'm trying to do.
I have one column with Creation Dates in the format of MM/DD/YY hh:mm. I have one column with Closing Dates in the same format.
Please tell me there is a simple and straightforward way to calculate the difference between the two in hours and minutes.
Please tell me that I don't have to split the dates from the times and calculate them independently.
Thanks! |
|
| Back to top |
|
 |
kissmekate Newbie

Joined: 17 Jun 2010 Posts: 2 Location: Northern California
|
Posted: Thu Jun 17, 2010 10:01 am Post subject: |
|
|
| Nevermind I think I just confused myself by trying to read the forums too early. Properly formatting each column (particularly the column where the calculation results are presented) seems to allow for straight forward =(Datetime2 - Datetime1) |
|
| Back to top |
|
 |
pitonyak Administrator


Joined: 09 Mar 2004 Posts: 3618 Location: Columbus, Ohio, USA
|
Posted: Thu Jun 17, 2010 10:55 am Post subject: |
|
|
Internally, a date/time is stored as a floating point number.
For a time, 0 references midnight December 30, 1899.
The fractional portions indicate time, so 0.5 is halfway through the day, or noon.
This system allows direct math to be used to calculate elapsed time. _________________ --
Andrew Pitonyak
http://www.pitonyak.org/oo.php |
|
| Back to top |
|
 |
|