Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Althea
 
Posts: n/a
Default Divide date into separate columns

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


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Divide date into separate columns

=YEAR(A1)

where A1 holds the date

--
Regards,

Peo Sjoblom

(No private emails please)


"Althea" wrote in message
...
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


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Althea
 
Posts: n/a
Default Divide date into separate columns

Many thanks
is there any way to get this to work on pre1900 years
Thanks
Althea
"Peo Sjoblom" wrote in message
...
=YEAR(A1)

where A1 holds the date

--
Regards,

Peo Sjoblom

(No private emails please)


"Althea" wrote in message
...
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




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Divide date into separate columns

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)


"Althea" wrote in message
...
Many thanks
is there any way to get this to work on pre1900 years
Thanks
Althea
"Peo Sjoblom" wrote in message
...
=YEAR(A1)

where A1 holds the date

--
Regards,

Peo Sjoblom

(No private emails please)


"Althea" wrote in message
...
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





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Divide date into separate columns

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)


"Peo Sjoblom" wrote in message
...
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)


"Althea" wrote in message
...
Many thanks
is there any way to get this to work on pre1900 years
Thanks
Althea
"Peo Sjoblom" wrote in message
...
=YEAR(A1)

where A1 holds the date

--
Regards,

Peo Sjoblom

(No private emails please)


"Althea" wrote in message
...
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








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Althea
 
Posts: n/a
Default Divide date into separate columns

Thankyou for all help. Problem solved
:)
"Peo Sjoblom" wrote in message
...
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)


"Althea" wrote in message
...
Many thanks
is there any way to get this to work on pre1900 years
Thanks
Althea
"Peo Sjoblom" wrote in message
...
=YEAR(A1)

where A1 holds the date

--
Regards,

Peo Sjoblom

(No private emails please)


"Althea" wrote in message
...
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







  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
wjohnson
 
Posts: n/a
Default Divide date into separate columns


easiest way is to got Menu Bar - Select "DATA" - "TEXT TO COLUMNS" and
then put two dividers where you want the text to split and follow the
direction on the pop-up menu


--
wjohnson
------------------------------------------------------------------------
wjohnson's Profile: http://www.hightechtalks.com/m390
View this thread: http://www.hightechtalks.com/t2306725

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Divide date into separate columns

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)


"wjohnson" wrote in message
...

easiest way is to got Menu Bar - Select "DATA" - "TEXT TO COLUMNS" and
then put two dividers where you want the text to split and follow the
direction on the pop-up menu


--
wjohnson
------------------------------------------------------------------------
wjohnson's Profile: http://www.hightechtalks.com/m390
View this thread: http://www.hightechtalks.com/t2306725


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I concatenate two columns when one is in date format? LauraL Excel Discussion (Misc queries) 3 August 29th 05 04:07 PM
How do I calculate if a date is in a certain time frame? Pe66les Excel Worksheet Functions 19 August 27th 05 11:07 PM
How to compare the lists in two columns & separate odd one ? Nikhil Excel Discussion (Misc queries) 2 June 13th 05 02:41 PM
split a single column into 2 separate columns Eve Excel Worksheet Functions 2 March 14th 05 07:33 PM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 02:48 AM


All times are GMT +1. The time now is 10:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"