Date format does not correct from third party program

maiwarits

New Member
Joined
Jul 17, 2022
Messages
26
Office Version
  1. 365
Platform
  1. Windows
Hello guys,

I got date format from third party program like in the below pictures.
1679466073739.png


2023 = years
03 = month
22 = date
01 = hours time
13 = minute
50 = secs

I have tried to change date format to Short format, Custom format. But it always show like in the Cell A1.

Could you help me to change date format and separate them with date and time into 2 cells?

Thanks,
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi,
You can test
Excel Formula:
=DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))+TIME(MID(A1,9,2),MID(A1,11,2),RIGHT(A1,2))
and use the custom format :
dd mm yyyy hh:mm:ss
 
Upvote 0
Solution
Maybe this:
Book1
ABC
12023032201135022/03/202301:13:50
22023032201145022/03/202301:14:50
32023032201155022/03/202301:15:50
42023032201165022/03/202301:16:50
52023032201175022/03/202301:17:50
62023032201185022/03/202301:18:50
72023032201195022/03/202301:19:50
82023032201205022/03/202301:20:50
92023032201215022/03/202301:21:50
102023032201225022/03/202301:22:50
112023032201235022/03/202301:23:50
122023032201245022/03/202301:24:50
132023032201255022/03/202301:25:50
142023032201265022/03/202301:26:50
152023032201275022/03/202301:27:50
162023032201285022/03/202301:28:50
Sheet1
Cell Formulas
RangeFormula
B1:C16B1=LET(d,A1:A16,HSTACK(DATEVALUE(BYROW(MID(d,{1,5,7},{4,2,2}),LAMBDA(x,TEXTJOIN("/",,x)))),TIMEVALUE(BYROW(MID(d,{9,11,13},{2,2,2}),LAMBDA(x,TEXTJOIN(":",,x))))))
Dynamic array formulas.
 
Upvote 0
more alternatives

Date conversion.xlsm
ADE
12023032201135022-Mar-2301:13:50
22023032201145022-Mar-2301:14:50
32023032201155022-Mar-2301:15:50
42023032201285022-Mar-2301:28:50
5
6or Data TexttoColumns
72023032222-Mar-23
82023032323-Mar-23
92023032424-Mar-23
102023032525-Mar-23
11
2bb
Cell Formulas
RangeFormula
D1:D4D1=--TEXT(LEFT(A1,8),"0000-00-00")
E1:E4E1=--TEXT(RIGHT(A1,6),"00\:00\:00")
 
Upvote 0

Forum statistics

Threads
1,215,201
Messages
6,123,621
Members
449,109
Latest member
Sebas8956

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