How to use a right formula on a date-format

  • Thread starter Thread starter Heine
  • Start date Start date
H

Heine

Hi everybody,

My problem is this. I have a lot of cells containing dates 06-06-2006
etc. They are in a date format. I want the next column to only return
the year i.e. 2006 in the above exampel. I tried the right formula -
but that only returns the corresponding number (corresponding to the
date) - any ideas?

Regards
Heine
 
Use =YEAR(A1) rather than =RIGHT(A1,4). If you want to use RIGHT then you
must also use TEXT.
 
You are very welcome!

The alternative is:
=RIGHT(TEXT(A1,"mm/dd/yyyy"),4)
 

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