Best way to convert date and timestamp format date into a date format?

Zee996

New Member
Joined
Nov 30, 2021
Messages
30
Office Version
  1. 365
Platform
  1. Windows
I have 1000s of raw data that I have pulled from SAP that came in text format.

I am trying to convert the date and timestamp to only the date so I can summarize the monthly data through the pivot table but as the date is in text pivot is not working.

I have tried "text to column" but no luck with that.

Is there a way to clean it?

6/14/2022 12:00:00 AM
6/13/2022 12:00:00 AM
6/13/2022 12:00:00 AM
6/13/2022 12:00:00 AM
06-10-2022 00:00​
06-09-2022 00:00​
06-08-2022 00:00​
06-08-2022 00:00​
06-07-2022 00:00​
06-07-2022 00:00​
 

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.
Can you repost the data using XL2BB as currently presented the data cannot be determined as to formatting and it cannot be manipulated.
 
Upvote 0
Book4
A
1Transaction Date
26/30/2022 12:00:00 AM
36/29/2022 12:00:00 AM
46/29/2022 12:00:00 AM
56/29/2022 12:00:00 AM
66/29/2022 12:00:00 AM
76/29/2022 12:00:00 AM
86/29/2022 12:00:00 AM
96/29/2022 12:00:00 AM
106/29/2022 12:00:00 AM
116/29/2022 12:00:00 AM
126/29/2022 12:00:00 AM
136/29/2022 12:00:00 AM
146/28/2022 12:00:00 AM
156/28/2022 12:00:00 AM
166/28/2022 12:00:00 AM
176/28/2022 12:00:00 AM
186/28/2022 12:00:00 AM
196/28/2022 12:00:00 AM
206/28/2022 12:00:00 AM
216/28/2022 12:00:00 AM
226/28/2022 12:00:00 AM
236/28/2022 12:00:00 AM
246/28/2022 12:00:00 AM
256/28/2022 12:00:00 AM
266/28/2022 12:00:00 AM
276/28/2022 12:00:00 AM
286/28/2022 12:00:00 AM
296/28/2022 12:00:00 AM
306/28/2022 12:00:00 AM
316/28/2022 12:00:00 AM
326/28/2022 12:00:00 AM
336/28/2022 12:00:00 AM
346/28/2022 12:00:00 AM
356/27/2022 12:00:00 AM
366/27/2022 12:00:00 AM
376/27/2022 12:00:00 AM
386/27/2022 12:00:00 AM
396/27/2022 12:00:00 AM
406/27/2022 12:00:00 AM
416/26/2022 12:00:00 AM
426/26/2022 12:00:00 AM
436/23/2022 12:00:00 AM
446/23/2022 12:00:00 AM
456/23/2022 12:00:00 AM
466/23/2022 12:00:00 AM
476/22/2022 12:00:00 AM
486/22/2022 12:00:00 AM
496/22/2022 12:00:00 AM
506/22/2022 12:00:00 AM
516/22/2022 12:00:00 AM
526/21/2022 12:00:00 AM
536/21/2022 12:00:00 AM
546/21/2022 12:00:00 AM
556/21/2022 12:00:00 AM
566/21/2022 12:00:00 AM
576/19/2022 12:00:00 AM
586/19/2022 12:00:00 AM
596/19/2022 12:00:00 AM
606/19/2022 12:00:00 AM
616/19/2022 12:00:00 AM
626/19/2022 12:00:00 AM
636/19/2022 12:00:00 AM
646/19/2022 12:00:00 AM
656/19/2022 12:00:00 AM
666/14/2022 12:00:00 AM
676/14/2022 12:00:00 AM
686/13/2022 12:00:00 AM
696/13/2022 12:00:00 AM
706/13/2022 12:00:00 AM
7106-10-2022 00:00
7206-09-2022 00:00
7306-08-2022 00:00
7406-08-2022 00:00
7506-07-2022 00:00
7606-07-2022 00:00
7706-07-2022 00:00
7806-07-2022 00:00
7906-07-2022 00:00
8006-06-2022 00:00
8106-06-2022 00:00
8206-05-2022 00:00
8306-05-2022 00:00
8406-05-2022 00:00
8506-03-2022 00:00
8606-03-2022 00:00
8706-03-2022 00:00
8806-03-2022 00:00
8906-03-2022 00:00
9006-02-2022 00:00
9106-02-2022 00:00
9206-02-2022 00:00
9306-02-2022 00:00
9406-01-2022 00:00
9506-01-2022 00:00
9606-01-2022 00:00
Sheet1
 
Upvote 0
I used power query to reformat your data. Here is the Mcode to achieve that. Since you are using 365, Power Query is called Get and Transform Data and found on the Data Tab

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Transaction Date", type date}})
in
    #"Changed Type"

Book8
ABC
1Transaction DateTransaction Date
26/30/2022 0:006/30/2022
36/29/2022 0:006/29/2022
46/29/2022 0:006/29/2022
56/29/2022 0:006/29/2022
66/29/2022 0:006/29/2022
76/29/2022 0:006/29/2022
86/29/2022 0:006/29/2022
96/29/2022 0:006/29/2022
106/29/2022 0:006/29/2022
116/29/2022 0:006/29/2022
126/29/2022 0:006/29/2022
136/29/2022 0:006/29/2022
146/28/2022 0:006/28/2022
156/28/2022 0:006/28/2022
166/28/2022 0:006/28/2022
176/28/2022 0:006/28/2022
186/28/2022 0:006/28/2022
196/28/2022 0:006/28/2022
206/28/2022 0:006/28/2022
216/28/2022 0:006/28/2022
226/28/2022 0:006/28/2022
236/28/2022 0:006/28/2022
246/28/2022 0:006/28/2022
256/28/2022 0:006/28/2022
266/28/2022 0:006/28/2022
276/28/2022 0:006/28/2022
286/28/2022 0:006/28/2022
296/28/2022 0:006/28/2022
306/28/2022 0:006/28/2022
316/28/2022 0:006/28/2022
326/28/2022 0:006/28/2022
336/28/2022 0:006/28/2022
346/28/2022 0:006/28/2022
356/27/2022 0:006/27/2022
366/27/2022 0:006/27/2022
376/27/2022 0:006/27/2022
386/27/2022 0:006/27/2022
396/27/2022 0:006/27/2022
406/27/2022 0:006/27/2022
416/26/2022 0:006/26/2022
426/26/2022 0:006/26/2022
436/23/2022 0:006/23/2022
446/23/2022 0:006/23/2022
456/23/2022 0:006/23/2022
466/23/2022 0:006/23/2022
476/22/2022 0:006/22/2022
486/22/2022 0:006/22/2022
496/22/2022 0:006/22/2022
506/22/2022 0:006/22/2022
516/22/2022 0:006/22/2022
526/21/2022 0:006/21/2022
536/21/2022 0:006/21/2022
546/21/2022 0:006/21/2022
556/21/2022 0:006/21/2022
566/21/2022 0:006/21/2022
576/19/2022 0:006/19/2022
586/19/2022 0:006/19/2022
596/19/2022 0:006/19/2022
606/19/2022 0:006/19/2022
616/19/2022 0:006/19/2022
626/19/2022 0:006/19/2022
636/19/2022 0:006/19/2022
646/19/2022 0:006/19/2022
656/19/2022 0:006/19/2022
666/14/2022 0:006/14/2022
676/14/2022 0:006/14/2022
686/13/2022 0:006/13/2022
696/13/2022 0:006/13/2022
706/13/2022 0:006/13/2022
7110/6/202210/6/2022
729/6/20229/6/2022
738/6/20228/6/2022
748/6/20228/6/2022
757/6/20227/6/2022
767/6/20227/6/2022
777/6/20227/6/2022
787/6/20227/6/2022
797/6/20227/6/2022
806/6/20226/6/2022
816/6/20226/6/2022
825/6/20225/6/2022
835/6/20225/6/2022
845/6/20225/6/2022
853/6/20223/6/2022
863/6/20223/6/2022
873/6/20223/6/2022
883/6/20223/6/2022
893/6/20223/6/2022
902/6/20222/6/2022
912/6/20222/6/2022
922/6/20222/6/2022
932/6/20222/6/2022
941/6/20221/6/2022
951/6/20221/6/2022
961/6/20221/6/2022
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,718
Members
448,986
Latest member
andreguerra

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