How to extract dates from cell, and return in date format (Jun-19)

DisplayName

New Member
Joined
May 24, 2017
Messages
10
Hello - I have several cell that contain dates in text format. I'm trying to extract the dates from those cells & return values as a date format, preferably (Jun-19) format. Below is an example: I'm using =MID(A1,FIND("/",A1)-2,5) to extract -6/18, and then =SUBSTITUTE(B1,"-","") to get rid of the -. Ultimately I want it to return the value in this date format (Jun-18). Please haaalp!

LAHSA G391-6/18 REV
07/18 GRANT REV 391
LAHSA G391-7/18 REV
08/18 GRANT REV 391
LAHSA G391-8/18 REV
09/18 GRANT REV 391
LAHSA G391-9/18 REV
10/18 GRANT REV 391
LAHSA G391-10/18 REV
11/18 GRANT REV 391
LAHSA G391-11/18 REV
12/18 GRANT REV 391
LAHSA G391-12/18 REV
01/19 GRANT REV 391
LAHSA G391-1/19 REV
02/19 GRANT REV 391
LAHSA G391-2/19 REV
03/19 GRANT REV 391
04/19 GRANT REV 391
05/19 GRANT REV 391
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
How about
=("1/"&SUBSTITUTE(MID(A1,FIND("/",A1)-2,5),"-",""))*1
and then format the cells
 
Upvote 0
If you just want it returned as text, rather than an actual date, you can use
=TEXT(("1/"&SUBSTITUTE(MID(A1,FIND("/",A1)-2,5),"-",""))*1,"mmm-yy")
 
Upvote 0
So I just tried it, formatted the cells, and it returned January for all the cells. I removed the (1/&) & it returned the correct months, but all the years are now 2019.

=SUBSTITUTE(MID(A1,FIND("/",A1)-2,5),"-","")*1
 
Last edited:
Upvote 0
Ok, probably due to date formats where you are. How about
=SUBSTITUTE(SUBSTITUTE(MID(A1,FIND("/",A1)-2,5),"-",""),"/","/01/")*1
 
Upvote 0
This one worked! Thank you so much! Saved me so much time by not having to look at each cell, and manually keying in the dates.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,421
Messages
6,119,392
Members
448,891
Latest member
tpierce

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