Date functions - Extracting simply the year

Bobthebuilder

Board Regular
Joined
May 2, 2002
Messages
76
I have a date in the form mm/dd/yy

How do I simply extract just the year, so that when I create a pivot table, I dont get all unique entries which are behind the date. I tried formatting, but that doesn't work, the format is ignored and the source date is looked at!

Thanks
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
You could add another column and use =year(A2) to get the year, then use this data in your pivot table
 
Upvote 0
On 2002-05-03 10:00, Bobthebuilder wrote:
I have a date in the form mm/dd/yy

How do I simply extract just the year, so that when I create a pivot table, I dont get all unique entries which are behind the date. I tried formatting, but that doesn't work, the format is ignored and the source date is looked at!

Thanks
Add a column with the YEAR formula. If your date is in A1, use =YEAR(A1).

Alternatively, you can create a pivot table using the unique dates and then use the group feature. Right click in the pivot table, choose Group and Outline then Group and select Years in the By box.

Hope that helps.
 
Upvote 0
I know that my question seamed pretty straight forward, however, I have tried your suggestion, and I'm getting 1905 instead of 2000.

Any ideas!??
 
Upvote 0
Your doing something wrong or your date is already 1905...
The Year function does indeed pull the year from a date...
Make sure it is a valid date and not text.
Tom
 
Upvote 0

Forum statistics

Threads
1,213,534
Messages
6,114,186
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top