Date Format: Entering Date as 121214 but want excel displays as 12/12/2014

Warmhearted

Board Regular
Joined
Nov 17, 2012
Messages
96
Office Version
  1. 2019
Platform
  1. Windows
Hello Helpers:

I want to enter a date as 121214 on cell but want excel displays it as 12/12/2014. Please help me how to format it. Thanks.

Brando
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
put 121214 in A1

B1: =TEXT(LEFT(A1,2)&"/"&MID(A1,3,2)&"/"&RIGHT(A1,2),"MM/DD/YYYY")
 
Upvote 0
Thank you for your information Andrew! I'll play with them to see what can I get.
 
Upvote 0
Thank you ttdk1. However, I got problem when entering 011213 or 051414 for 01/12/13 and 05/14/14 but excel displays 11/21/13 and 51/41/14. As you can see, Jan thru Sep will encounter problem with this formula. Any idea? Thanks.

Brando
 
Upvote 0
Code:
=text(left(a1,len(a1)-4)&"/"&mid(a1,len(a1)-3,2)&"/"&right(a1,2),"mm/dd/yyyy")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,822
Members
449,096
Latest member
Erald

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