ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Working with dates (https://www.excelbanter.com/excel-programming/355123-working-dates.html)

smitty24

Working with dates
 
If a cell has a date in it formatted either mm/dd/yyyy or m/d/yyyy how can I
identify the year (yyyy) and copy the year only to a new cell?

Thanks!

JE McGimpsey

Working with dates
 
One way:

In the new cell:

=YEAR(A1)

In article ,
smitty24 wrote:

If a cell has a date in it formatted either mm/dd/yyyy or m/d/yyyy how can I
identify the year (yyyy) and copy the year only to a new cell?

Thanks!



All times are GMT +1. The time now is 09:51 AM.

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