I have an excel spreadsheet containing a pivot table. One data column shows a date in the format dd/mm/yyyy and this column is used in a pivot table where only the year is required to be shown.
Until recently the year only appeared in the columns of the pivot table but now, when I click on the drop down for the years the drop down menu shows every year month not just the year. This makes it very difficult to change the years to be shown as there are twelve months/years to be selected or de-selected each time and instead of having only one column for each year I now have 12.
Is there anyway to get a formula in the source data worksheet that will extract only the year from the original dates. I have attempted it by using "yyyy" as the formating but still the month and year format is appearing in the pivot table.
I have had similar problems in the past when dealing with dates in Excel. Whilst the date function is normaly sufficient for most purposes I have often had occassion to require only the day, month or year to be extracted from a date. If I use the formula =year(a1) I do not get the year value of the date but 1905 which is the start year used by Excel for the date number.