Converting unix timestamp to excel date-time...

dhcrusoe

New Member
Joined
Jan 10, 2005
Messages
11
Hey all,

This is a relatively simple problem, I think, but it's driving me crazy. I'm analyzing 13.8 million rows of data (participant observation in an educational MUVE) and need to convert the unix timestamp to a date/time.

I know that, for example:

Unix stamp: 1096405159
converts to: Thu 10/07/04 sometime around 9.00 am...

but my formula:

=(F2+((365*70+19)*86400))/86400-0.41667 isn't working right... any suggestions?

Thanks!

--dave
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Yes, that's perfect if you live on the Greenwich Mean Time Line...

To add GMT offset, timezone is required in the formula:
=(D17591 + ("1/1/1970"-"1/1/1900"+1)*86400 +36000) / 86400
=(M$_XL_Cell_Value + ("1/1/1970"-"1/1/1900"+1)*86400 + GMT_Offset) / 86400
36000 = GMT+10
Aussie Aussie Aussie, Oi Oi Oi!
:LOL:


I'm in Brisbane (GMT+10) I'm having to use the following formula to get accurate dates and times with data exported from GO SMS Pro

Epoch Date in cell D2 = 1431242184520

Formula in F2: =(D2/1000)/86400+25569+0.416666666667 - Gives the result 42134.7197282407

To convert to Readable date and time, 2 columns

=TEXT($F2,"dd/mm/yyyy") = 10/05/2015

=TEXT($F2,"hh:mm:ss") = 17:16:25

These dates and times are correct when I compare them to the SMS app on my phone.

However:

When I use the formula you describe, e.g. =(D2+("1/1/1970"-"1/1/1900"+1)*86400+36000)/86400 I get the result of 16590872.4782407... nowhere near the 42134.7197282407 I require.

I probably just don't understand your formula, but it would be nice to know what's going on.

Cheers,

Ticcer
 
Upvote 0

Forum statistics

Threads
1,215,494
Messages
6,125,139
Members
449,207
Latest member
VictorSiwiide

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top