Formula to convert the UTC date/time column in the M365 CSV exports to Sydney time

pedad

New Member
Joined
Jul 8, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I use the Microsoft 365 Admin Center exports and reports often, but am just exhausted by the mental process of converting a UTC time stamp in the CSV files to Sydney, AU time.
In most of the reports, there's an entire column for the zulu timestamp with upwards of 500 rows.

Are there any Excel whizzes who have a formula to convert 2020-08-12T05:24:05.9209092Z (for example) into something friendly? In Sydney, we're +10hrs on UTC.
Ideally I'd like hh:mm:ss dd-mm-yyyy formatted, but would even settle for the current format +10hrs.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
you can try with Power Query

Column1Custom
2020-08-12T05:24:05.9209092Z12/08/2020 17:24:06

Rich (BB code):
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    TypeDT = Table.TransformColumnTypes(Source,{{"Column1", type datetime}}),
    DT_Au = Table.AddColumn(TypeDT, "Custom", each [Column1]+#duration(0,10,0,0)),
    TDT = Table.TransformColumnTypes(DT_Au,{{"Custom", type datetime}}),
    TSC = Table.SelectColumns(TDT,{"Custom"})
in
    TSC
 
Upvote 0
I don't know how to use that?
Is it done in Excel?

Also, 5:24 AM UTC +10hrs is 3:24 PM AEST (or 15:24, not 17:24).
 
Upvote 0
Hi, here is a formula you can try. Note, you may need to format the cell that contains the formula as date/time.

Book2
AB
22020-08-12T05:24:05.9209092Z12/08/2020 15:24
Sheet1
Cell Formulas
RangeFormula
B2B2=SUBSTITUTE(LEFT(A2,19),"T"," ")+"10:00"
 
Upvote 0
my mistake, sorry
Column1DTZAu
2020-08-12T05:24:05.9209092Z12/08/2020 15:24:06

Rich (BB code):
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    DTZAu = Table.AddColumn(Source, "DTZAu", each DateTimeZone.From([Column1])+#duration(0,10,0,0)),
    TDTZ = Table.TransformColumnTypes(DTZAu,{{"DTZAu", type datetimezone}})
in
    TDTZ
column DTZAu is formated: dd/mm/yyyy hh:mm:ss

this is M code for Power Query (aka Get&Transform) which is also built into Excel 365
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,864
Messages
6,121,986
Members
449,058
Latest member
oculus

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