Dynamically adjusting time for unix conversion

tourless

Board Regular
Joined
Feb 8, 2007
Messages
144
Office Version
  1. 365
Platform
  1. Windows
Hi Folks.

I'm working with a YMSQL db that stores date/time in unix format. I can use a simple formula to bounce back and forth from one to the other but I'd like to be able to have my sheet update the date for TODAY() and I'd prefer to keep it at the sheet level and not have to rely on scheduling a macro. Any ideas? The goal i to have the date updated automatically and be fed to a query that will only pull data for the date given. Otherwise I'm looking at a huge table with upwards of 400K rows.

BI Dashboard Test v1.xlsx
AB
116826832004/28/23 12:00 PM
2
34/28/20231682683200
4
545046 12:00 PM#VALUE!
Parameters
Cell Formulas
RangeFormula
B1B1=(((A1/60)/60)/24)+DATE(1970,1,1)
B3,B5B3=(A3-DATE(1970,1,1))*86400
A5A5=TODAY() & " 12:00 PM"
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi @tourless. Thanks for posting on the board.

Review the formula in A5:
Excel Formula:
=TODAY() + "12:00 PM"
Cell Formulas
RangeFormula
B1B1=(((A1/60)/60)/24)+DATE(1970,1,1)
B3,B5B3=(A3-DATE(1970,1,1))*86400
A5A5=TODAY() + "12:00 PM"



I hope it helps you with your process.
With pleasure.
Dante Amor
----------------
 
Upvote 0
Solution
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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