Extracting Multiple dates from Variable string

K_trea

New Member
Joined
Dec 21, 2016
Messages
2

my name is tim robins I was born 1/1/1980 at 1:30 AM in a small house in ny. Today is 2/2/2016 3:30. Bob walked 3 miles Wednesday 5/1/2016 at 5:15 PM.

Born 1/1/1980 at 1:30

Today is 2/2/2016 3:30

Wednesday 5/1/2016 at 5:15

Terminal 27 log 15 Date 7/3/2016 time 1:00. Happy Friday 5/1/2016 at 5:15 PM.

Date 7/3/2016 time 1:00

Friday 5/1/2016 at 5:15

Accession number 23435 date accessioned 9/5/2016 at 1:00. Tom Johnson 5/15/2016 4:13 bring your drink to here on 12/25/16 at 3:00 PM for fun. Don’t know what else to write 1/1/1999 3:22

accessioined 9/5/2016 at 1:00

Johnson 5/15/2016 4:13

here on 12/25/16 at 3:00

write 1/1/1999 3:20


<tbody>

Hi Guys,
New to macros and this is my first post. I am trying to create a macro to pull the date (plus the previous words) out of a string in the previous cell. Any help is appreciated, here is a chart demonstrating what I am trying to do (column A has the string, B-... is where I want the dates to be entered):

</tbody>
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Wow, sorry it didn't add my description.

Sorry, first post.

I am trying to create a macro that pulls out the date, time and word preceding word, then places them in adjacent columns. Any help is appreciated and I apologize for any errors.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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