Extracting dates

Sean15

Well-known Member
Joined
Jun 25, 2005
Messages
698
Office Version
  1. 2010
Platform
  1. Windows
Hi:

I want to extract dates (mm/dd/yy) from data formatted as follows:

Thu, Sep 17, 2020 3:25 PM
Thu, Oct 29, 2020 8:31 AM

Required values should be
09/17/20
10/29/20

Could you help please?

Regards,
Sean
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Try using the following formula in a cell formatted as mm/dd/yy:

=INT(REPLACE(A1,1,5,""))
 
Upvote 0
Another way. Format col B as Date.
Book1.xlsm
AB
1Thu, Sep 17, 2020 3:25 PM9/17/2020
2Thu, Oct 29, 2020 8:31 AM10/29/2020
Sheet9
Cell Formulas
RangeFormula
B1:B2B1=DATEVALUE(MID(A1,5,65))
 
Upvote 0
Solution
Seems like OP & helpers must all be using US date system as none of the formulas work for me (d/m/y system).

@Sean15
For the future, with any date questions it is a good idea to
- state in your question what your system date format is as helpers can be anywhere in the world using a different system
- include examples that indicate whether day (& month if not text like yours) are always 2-digits or may be single digit (eg Nov 4, 2020 or Nov 04, 2020)
 
Upvote 0
Sean
Are you values true dates (ie. Numbers) or Text? I'm guessing from your response that they are text.
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,824
Members
449,050
Latest member
Bradel

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