Change format of exported data

dabon

New Member
Joined
Oct 9, 2022
Messages
11
Office Version
  1. 2019
Platform
  1. Windows
Hi,
the exported data is dated in this format 2015-04-22T12:07:13.059Z and I want to convert it in gg/mm/aaaa. It does not work from Format Cells menu, maybe because the starting data seems a string.
Can you please suggest me a solution?

Thanks
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Try:
Excel Formula:
=--(MID(A1,9,2)&"/"&MID(A1,6,2)&"/"&LEFT(A1,4))
 
Upvote 0
Maybe:

varios 10nov2024.xlsm
ABCD
1
22015-04-22T12:07:13.059Z22/04/2015
3
Hoja4
Cell Formulas
RangeFormula
C2C2=DATE(LEFT(B2,4),MID(B2,6,2),MID(B2,9,2))
 
Upvote 0
That is an ISO standard date time format so you have lots of options in addition to the above.
• Find T* and Replace with nothing
• Text to Columns
- Either fixed width up to the T
- Or delimited using the T
In both cases tell it to skip the 2nd column.
• Another formula
Excel Formula:
=--LEFT(A1,10)
• VBA
VBA Code:
Sub ConvertISODate()
    ActiveSheet.UsedRange.Columns("A").Replace what:="T*", replacement:=""
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,628
Messages
6,173,429
Members
452,514
Latest member
cjkelly15

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