extract year

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a date like this: 23/05/2005 15:59:43. I need a formula to extract the
year - I've been trying mid, right, etc, but just can't get it. Thanks!

maryj
 
=YEAR(date_cell)

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Is the entry really a date or a string? If a date, then =year(a1) will get
the year. If a string, =MID(A1,FIND(" ",A1)-4,4).
 
That did it! I was trying to do a search based on the /, didn't think of
using the space!!
 

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

Back
Top