Extract Date from Right Formula

S

steven.britton

I need a formula that will extract the last date from these type of
strings.

07/12/2006 07/12/2006 07/12/2006 07/17/2006 - -

Or

07/12/2006 -

Or

07/07/2006 07/07/2006 - - - -

-Steve
 
J

JE McGimpsey

One way:

=MID(A1, FIND("^", SUBSTITUTE(A1, "/", "^", LEN(A1) -
LEN(SUBSTITUTE(A1, "/", "")))) - 5, 10)
 
S

steven.britton

uh - - - WOW - I don't know how you guys keep coming up with this
stuff, but this worked perfectly the 1st time. Great work, thanks for
the help.
 
D

daddylonglegs

Another way...

=RIGHT(TRIM(SUBSTITUTE(A1,"-","")),10)

gives a text result, as does previous suggestion. For a true date

=RIGHT(TRIM(SUBSTITUTE(A1,"-","")),10)+0

format as dat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top