Convert 20200917 10:17:00 to date format

plettieri

Well-known Member
Joined
Sep 4, 2002
Messages
1,558
Platform
  1. MacOS
Hi All

I did some research on this conversion but still did not find solution on board for this...


needed in "date format" with year month day time. like this...... 2020 09 17 10:17:00

any help appreciated

plettieri
 

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.
How about
+Fluff New.xlsm
HI
1520200917 10:17:0017/09/2020 10:17
Master
Cell Formulas
RangeFormula
I15I15=DATE(LEFT(H15,4),MID(H15,5,2),MID(H15,7,2))+TIMEVALUE(RIGHT(H15,8))
 
Upvote 0
Along the same principal as Fluff has posted, just another way. Custom format C1 as yyyy mm dd hh:mm

Book1
ABC
120200917 10:17:012020 09 17 10:17:01
Sheet1
Cell Formulas
RangeFormula
C1C1=(LEFT(A1,4)&"-"&MID(A1,5,2)&"-"&MID(A1,7,2)&" "&RIGHT(A1,8))+0
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
Custom format to your preference
T202009b.xlsm
AB
220200917 10:17:0017-Sep-20 10:17:00
3b
Cell Formulas
RangeFormula
B2B2=--TEXT(LEFT(A2,8),"0000-00-00")+TIMEVALUE(RIGHT(A2,8))
 
Upvote 0
Thanks for your feedback.
Minor edit is included below
T202009b.xlsm
AB
220200917 10:17:002020 09 17 10:17:00
3b
Cell Formulas
RangeFormula
B2B2=--(TEXT(LEFT(A2,8),"0000-00-00")+RIGHT(A2,8))
 
Upvote 0

Forum statistics

Threads
1,215,039
Messages
6,122,802
Members
449,095
Latest member
m_smith_solihull

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