ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Convert Text to Date Month and Year (https://www.excelbanter.com/excel-discussion-misc-queries/259586-convert-text-date-month-year.html)

Excellency

Convert Text to Date Month and Year
 
Hi

I have a cell for example that displays 03/07 as a text field for month and
year. I want it converted to date field to display as = mar-07 or march 2007.
when I use format or text function it converts to 03/07/2010. I dont want to
have the current year display instead it should display 2007.

Fred Smith[_4_]

Convert Text to Date Month and Year
 
Use:
=date(right(a1,2),left(a1,2),1)
and format as: mmm-yy or mmmm yyyy

Regards,
Fred

"Excellency" wrote in message
...
Hi

I have a cell for example that displays 03/07 as a text field for month
and
year. I want it converted to date field to display as = mar-07 or march
2007.
when I use format or text function it converts to 03/07/2010. I dont want
to
have the current year display instead it should display 2007.




All times are GMT +1. The time now is 02:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com