Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing the Date Format for GROUPED dates in a PIVOT TABLE

Tags:

I'm working in Excel 2010

Let's say you have a legitimate date field in your raw data with dates such as 1/1/2015. Then you create a pivot table with your date field in the row labels.

Now assume you want to show results by month, so you right click "Group Field" and select to group it by month.

Now, your data is displayed in months with the Mmm format. How would you change it the Mmmm format? Or what if you want to display it as a Number (i.e. Jan is displayed as 1)

How about for dates that have timestamps and you group by Day. The pivot table will display the date as D-Mmm. What if I want MM/DD/YYYY?

Yes, I've already tried changing it through right clicking -> field settings -> number format. It didn't work.

like image 539
ChrisG Avatar asked Aug 06 '15 17:08

ChrisG


People also ask

How do I stop PivotTable from changing date format?

Are you formatting the cells on the sheet, or the PivotTable field itself? Right click > Field settings > Number format, or in the field list pane, use drop-down arrow > Field settings. Change it in there and it should "stick". The number format is not available when using the field in a Row setting.

Why are my dates not grouping in PivotTable?

When you try to Group this Data, you will see that Excel Pivot Table not grouping dates and will display this Cannot group that selection error. Now, to fix this you can simply use the filter button to find the cells containing incorrect format or text.


1 Answers

I was having the same problem. What I have done was to right-click on a value for which I want to change the view on the pivot table and selecting "Ungroup" option. This brings back the reguler view format. I hope this can help you.

like image 53
Baris Sari Avatar answered Sep 23 '22 01:09

Baris Sari