ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   formatting date (https://www.excelbanter.com/excel-worksheet-functions/20101-formatting-date.html)

Torrance Pollard

formatting date
 
Hey,
is there any way to format this date 2005 so that it only shows the year
number 5
thanks



Trevor Shuttleworth

I don't think you can do it in the cell. This might give you a solution but
in another cell:

=RIGHT(TEXT(A1,"dd/mm/yyyy"),1)

Regards

Trevor


"Torrance Pollard" wrote in message
...
Hey,
is there any way to format this date 2005 so that it only shows the year
number 5
thanks





bpeltzer

Right-click on the cell and select Format Cells. Click on the Number tab and
select Custom at the bottom of the list. Clear the Type: text box and enter
yyyy. Click OK.

"Torrance Pollard" wrote:

Hey,
is there any way to format this date 2005 so that it only shows the year
number 5
thanks





All times are GMT +1. The time now is 11:46 PM.

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