Turning text into dates with vba (or formula)

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,201
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,

So in column A I have text recorded like this "Oct 16, 2015 6:29:29 PM PDT"

in column AA I want it to show just as the date "Oct 16 2015" not text but date

Please help if you can

Thanks

Tony
 
ISO8001 is far better for sorting in directories and documents
 
Upvote 0

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Maybe I am missing the point, but the OP said his "dates" were text in the form of Oct 16, 2015 6:29:29 PM PDT, so that is what has to be modified in someway.

Rick

Sorry for going off topic, I was only commenting the date format I personally use.
 
Upvote 0
Rick

Sorry for going off topic, I was only commenting the date format I personally use.
Ah, okay, I see now. I thought you were making a comment about how the OP should have has data in the cells. Of course, if he had a choice, yes, 2017-10-16 format would be best as it is a universally recognized date format which removes any ambiguities.
 
Upvote 0

Forum statistics

Threads
1,215,890
Messages
6,127,598
Members
449,387
Latest member
TheTeaTiger

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