Summarizing data by month is very popular - but if you need to summarize data by month and your dataset bridges two years, your data will most likely be out-of-order or worse, summarized incorrectly as the group for “July” will contain 2006 and 2007 data. Here’s a function I use to print out the year+month so I can summarize across years:
=YEAR(A1)&”-”&IF(MONTH(A1)<10,”0″,”")&MONTH(A1)
That function will produce the year + month value in the format “CCYY-MM” and thus will always sort well in pivot tables or even just filtering.
Tags: OpenOffice Calc, Excel 2002, Excel 2007, Excel 2003, Excel 2000, Excel XP, General by James Sullivan
3 Comments »