Divide date into separate columns

  • Thread starter Thread starter Althea
  • Start date Start date
A

Althea

Hi
Need to get year of a date entry into a separate column, whats the formula?
eg 2/5/1900..want 1900 in separte column

Thanks
Althea
 
=YEAR(A1)

where A1 holds the date

--
Regards,

Peo Sjoblom

(No private emails please)
 
There are no pre 1900 years when it comes to excel, it is text but you can
get it through a text function

=RIGHT(B1,4)


(excel year 0 is Jan 0 1900 thus anything before that will just be numbers
but seen as text by excel)

--
Regards,

Peo Sjoblom

(No private emails please)
 
You might want to combine those into one formula like

=IF(ISERR(YEAR(A1)),--RIGHT(A1,4),YEAR(A1))

--
Regards,

Peo Sjoblom

(No private emails please)
 
Thankyou for all help. Problem solved
:)
Peo Sjoblom said:
There are no pre 1900 years when it comes to excel, it is text but you can
get it through a text function

=RIGHT(B1,4)


(excel year 0 is Jan 0 1900 thus anything before that will just be numbers
but seen as text by excel)

--
Regards,

Peo Sjoblom

(No private emails please)
 
It depends on if you want to keep the original date and just parse the year
from it, if so it won't work since text to columns will split it into 3
columns, the OP's subject maybe sounds like that is what she wanted but the
body of here message might be interpreted to get the year
--
Regards,

Peo Sjoblom

(No private emails please)
 

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