= Right((Cells(2, 2)), 4)

G

Guest

Hi All

Can explain the following function

= Right((Cells(2, 2)), 4)

Basicall I need the RIGHT funtion to provide me with yyyy
of the following date 11/06/2004

can you help?
 
D

Domenic

Hi,

If the cell is formatted as a true date, try

=YEAR(A1)

otherwise, try

=TEXT(A1,"yyyy")

or

=RIGHT(A1,4)

Hope this helps!
 

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