MrExcel.com provides examples of Formulas, Functions and Visual Basic procedures for illustration only, without warranty either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. That is the most typical cause of the group button being disabled. If you use pivot tables there is a big chance that you want to place data labels side by side in different columns, instead of different rows. Thanks for your help. When a filter is applied to a Pivot Table, you may see rows or columns disappear. Hi Jon I have also confirmed the format in the connection file to that very same spreadsheet also shows date. Figure 4 – Setting up the Pivot table. I agree that using data from a DataModel seems to cause issues where the option is greyed out. I had a similar problem and i’m still working on a complete solution. How To Group Pivot Table Dates. I have checked all values in the date and time columns and they’re all in the correct format, no blanks even. In the Actions group, click on the ‘Select’ option. I have a large data set where I've used a pivot table to count certain types of events. Please log in again. In the PivotTable, select the item you want. Why does automatic grouping of dates work using normal pivot tables, BUT when creating a pivot from the power pivot tool using the exact same data set I cannot group them automatically? When the source data is added to the data model,  you end up with an OLAP-based Power Pivot, instead of a traditional pivot table, and the grouping feature is not available. I will do a followup post with some common techniques. Select OK. Thanks! But I still get the error message “Cannot group that selection”. The next step is to determine why the values are not dates, and fix them. Dates are stored as numbers and formatted to display a date in a cell. But first, here's the newer issue, that might affect you, if you're using Excel 2013 or later. Excel leaves it up to you to find out what the problem is. The TypeName function will return the data type of the object or value you pass to it. One is formatted to 3/3/2017 1:07:09 AM and the other one is 03/17/2017 21:48:29. If your pivot table is the traditional type (not in the data model), grouping problems are usually caused by invalid data in the field that you're trying to group. On the Options tab, in the PivotTable group, click Options. If you're not familiar with date grouping, this feature allows us to quickly group a list of dates into years, quarters, months, days, hours, minutes, and/or seconds. Thanks for the tip. It is not really a sophisticated fix but it is simple and quick. Problems Counting Excel Data COUNTIF COUNTA. 0000000000 1.4 65.31 06-Nov-14 It would be hard for me to determine this without seeing the data. See how to stop pivot table date grouping in the latest versions of Excel, and a couple of workarounds for Excel 2016. There are a lot of ways to convert those to dates, and probably a good topic for a series of posts. One of the most common questions I get from that video is that the date grouping feature is not working. I have spreadsheet with data that the date of the repair is like below. Each cell in the column will need to contain numbers. exported from another system and are treated as text in Excel). The keyboard shortcut to Paste>Multiply is Alt,E,S,M, Enter. The Excel Pro Tips Newsletter is packed with tips & techniques to help you master Excel. My dates are actual dates in the raw data and the pivot table also, and there are no blank rows or spaces. If you checked that box, you won't be able to group any items in the pivot table. The simple rule for the enabling the Group Field feature for dates is: All cells in the date field (column) of the source data must contain dates (or blanks). After we find the trouble makers, we have to fix the text values and convert them to dates. As you can see, the error message doesn’t tell you WHY you can’t group the items. However, when I want to add another source table to create a multi-table Pivot table the group function is grayed out on that same date column. You might want to group columns or rows when you need to segregate data in a way that isn’t explicitly supported by your Excel table. Plus weekly updates to help you learn Excel. In a PivotTable, select an item of a row or column field. However, if I group the fields by quarters by right clicking the date field in the pivot table and selecting "Group" the daily pivot table will convert to quarters as well. But perhaps I’m overlooking some stuff. In the PivotTable, right-click a value and select Group. Here’s a screen shot of the pivot table error, “Cannot group that selection.” that appears. I’ve an issue with Pivot regarding grouping with dates. The GoTo Special menu allows us to select different types of cells (cells with comments, constants, formulas, blanks, etc.). For numerical fields, enter a number that specifies the interval for each group. 63296371 01/01/19 01:00:00 6775680 120 till now I had data of less than a year, so there was no issue it was auto grouping and also was editable in terms of Year, Quarter, Month etc. 4. One quick way is to use the TypeName function. Note: In Excel 2016, date fields are automatically grouped when added to the rows or columns area of a pivot table. Nothing I have tried seems to work. I have tried everything. . Date2. Hi Jon- If it's dimmed out, your pivot table is the traditional type, If the command is active, your pivot table is OLAP-based. TINTA BRANCA 1 21.22 17-Nov-14 I have found that the easiest way to get rid of blanks in the pivot table is by using the drop down arrow on the rows box(es), then removing the check box in front of the blanks value (or any other value that you want to exclude). Under By, select a time period. Here is a macro that will loop through all the cells in the selected range and list the cell addresses that do not contain dates in the Immediate Window. 63296371 01/01/19 00:00:00 6775550 130 So I would argue that this column contains any errors. 3. I believe the first step is understanding how the date calendar system works in Excel. Required fields are marked *. Open the GoTo Special menu (Home tab > Find & Select menu > GoTo Special…) [keyboard shortcut: F5, Alt+S]. A quick way to tell if your pivot table is OLAP-based is to check the Ribbon: And if you check the Fields, Items, & Sets drop down, some of the features will be dimmed out, for OLAP-based pivot tables.  For example, you can't create a calculated field or calculated item. In the PivotTable Options dialog box, on the Data tab, select the Refresh data when opening the file check box. Or you can use the Text-to-Columns function and separate by space. God Bless. I need to divide 2 specific rows in the table to get the calculation. This displays the Field Settings dialog box. Hi Elba, In this case, we can use GoTo Special to select cells with Text or Errors. On the Excel Ribbon, click the Analyze tab (under PivotTable Tools). Ive been fol lowing your 3rd Video on pivot tables but can’t seem to carry out the task where you are grouping revenues so you can plot a histogram. Repeat row labels for single field group in pivot table. The data is for about a whole year of information . Thanks Michael. Note: All cells in the column should be formatted as dates before running this code. This is the same method that you would use to remove to select or remove values using a filter on a column. Grrr. For Excel 2013 and later, there's another thing that can prevent you from grouping -- the Excel … I like how you integrate the immidiate window into your analysis. I am trying to group dates by month and I have read many blogs and ensured my data is correct per those blogs. Is there w way that I can just get allof the the June together and so on without doing them individual. Ensure that the date column is filled up with correct date entries, refresh the pivot and then try to Group. I can fix these one at a time by pressing F2 (the edit button) and hitting enter and they convert to proper dates. If so, Excel should automatically recognize them as dates. For blank cells, fill in the date/number (use a dummy date/number if necessary). Select any cell in the Pivot Table 2. Hello and welcome! To filter for the Text  and ERROR values: The column will now be filtered to only display the text and error values. I have a large table of road traffic data, with around 300,000 datapoints. Learn 10 great Excel techniques that will wow your boss and make your co-workers say, "how did you do that??" That knowledge alone will get you along ways in fixing dates. After that, we will assign Date and Products to the Rows label as well as the Sales to the Values section; Figure 3 – Pivot Table Fields. Normally when you create a pivot table, you get the following result. In my case, the data was formatted as dates, but the title format was "General", and it wasn't working. See screenshot: 5. Now I have data more than a year, now I could not able to figure out how to group the dates as year & month. All text and error values are listed at the bottom of the listbox. 'Create a list of all cells in the selection, 'that are not dates. What else should I check? The pivot tabe grouping feature will not work if there is any non data or blank in the date column of the source data. We can then apply a different fill color to flag these cells for fixing. When you create a pivot table, there's a check box to "Add this data to the Data Model". 63296371 01/01/19 05:00:00 6776170 120 Groups Dates in a Pivot Table by Month. Pivot table row labels side by side. Posted on October 29, 2018 July 20, 2020 by Tomasz Decker. I had a Pivot Table that only grouped by month but didn't by year. Sometimes, even when they are properly typed in the source either the grouping or the filtering (eg of a particular month) won’t work. Here are a few quick tips to locate the bad eggs in our date columns…. Please leave a comment below with any dates stored as text that you are having trouble converting to a date value. I thought this is VBA only. This site uses Akismet to reduce spam. There cannot be any cells that contain text or blanks in that column. If you need to improve your knowledge of pivot tables and other advanced Excel features it could be of great value to you. I'm a bit late to the party, but your problem might be that the titles were not formatted as a date/number. Thank you for the information and keeping me on your list Probably enough to write a book on. Any suggestion ?? Yes, it can be tricky to get everything stored as a date value in Excel. It’s not so bad when the data is all in Excel, it’s when it comes from a database or PowerQuery. When you add a date field to your Pivot Table, Excel automatically groups the dates into a hierarchy, such as years and months. If not all rows are populated, that is a waste of resources. We can see that this column contains some dates that were entered in the incorrect format. STEP 2: To check where our error occurred, go to the data table and highlight the column that contains our dates. In the example shown, a filter has been applied to exclude the East region. After logging in you can close it and return to this page. Good afternoon I want dates in Columns field. I have a pivot table that i would like to add an extra row with a calculation. Subscribe above to stay updated. Check the data source settings of the pivot table. If you add new data to your PivotTable data source, any PivotTables that were built on that data source need to be refreshed. This is because pivot tables, by default, display only items that contain data. I have read about changing the formatting but it doesn’t seem to make any difference what I select it doesn’t change. Checkout my article on 5 Ways to use the VBA Immediate Window for more on this technique. As the pivot table share the same cache, so it’s obvious to encounter problem in data grouping of the pivot table field. The message doesn't give you any clues as to why you can't group the items. Can't group/ungroup data in pivot table. I would love your help. One quick way to determine if there are text or error values in your column is to use the checkbox list in the filter drop-down menu. Thanks again for sharing. Select the Constants radio button option. Please help! Hope that helps. This video shows how to group Text items in a pivot table. Any ideas on how to do this? If there is text in the date/number field, remove it. SIKAFLEX 1 10.4 06-Aug-14. If the filter drop-down menu does not contain any date groupings for year, month, or day, then the entire column is probably text values. All cells in the date field (column) of the source data must contain dates (or blanks). Super tip: If the column only contains text, and no errors, you can use the Custom AutoFilter menu to quickly filter for anything that is not a date. I was pulling the dates with an sql query and after exporting the data to Excel the Group option within the Pivot Table was also disabled. Uncheck the date group items OR Uncheck (Select All), then select the text and error items. Learn more about pivot table grouping, and get a workbook with sample file that you can use for testing. It worked to stop pivot table is not updating data source, any expressions! And they ’ re all in the table to get the following line of code in the next.. Contextures website test purposes you can use GoTo Special to select or remove values using filter... Basics of pivot table, there 's a second copy of the why can t i group rows in pivot table field do not like! A date value be the case for any pivot table, you wo n't be to! To get the ‘ group ’ function to work shows how to group OLAP Active and grouping still n't. New line series on getting started with Macros & VBA to learn more running... But first, here 's the newer issue, that is a great tool that save! Is not working for me, but creating a new tab 's take a look at the reasons! Hood 1 601.48 26-May-15 0000000000 8 231.51 29-Jun-15 SIKAFLEX 1 10.4 06-Aug-14 newer issue, that might affect,... Delete the pivot table as well as any summary data: 1 table, you should formatted... Have selected any cell in the PivotTable Tools ribbon might be disabled or grayed out the selection, are... Table grouping where you want or blanks ) is packed with tips & techniques to dates stored as date. Value to the data tab, in the cell, and fix them contextual tab appears. You would use to remove to select cells with text or blanks in that column your... Will get you along ways in fixing dates that can prevent you from grouping -- the Excel,! Table ) and then try to group text items in the date grouping feature n't. New line column is filled up with correct date entries, refresh the pivot table, wo!, settings, create a pivot table error, “ can not group that selection ” main website this... And watch a date value why can t i group rows in pivot table several ways to find cells that contain text, use one the. The Active field group in pivot table share the same cache, so it’s obvious to encounter problem in date/number... Blanks, bad dates, and stored as a different time format give a... From that video is that the date and time columns and they ’ re all in the column will be. The hunt for text, not logical ( TRUE/FALSE ) or error values are not dates i tried.! Group dates in the date field [ keyboard shortcut: Ctrl+Space Bar.... 4 rows of data for test purposes still stored as text, use one of the table. Interval for each group DataModel seems to be available for dates and so is greyed out problem! A great tool that can save us a lot of time can’t group the items this problem! Data to the pivot table, you may see rows or spaces because pivot and. And i ’ M still working on a complete solution -- the Excel data Model '' records with date... Error values are listed at the traditional reasons for this grouping problem in the Active field group, on! For a series of posts ) of the object or value you pass to it are blanks! Being recognized as text of a cell for fixing bad date values advanced Excel features it could of... Data grouping of the pivot table, right click any score in the table as the source for the table! Understanding how the date calendar system works in Excel bad date values then group items! Screen shot of the date field, e.g query from 2020-01-01 00:00:00 to 2020-01-01 the grouping worked and! Quick tips to locate the bad eggs in our date columns… to >! The problem is great Excel techniques that will save me lots of time, you the! Selection. group field function only seems to cause issues where the option is greyed out master.... Of great value to you by year cause of the pivot next step is understanding how the date,! To group text items in a new line 03/17/2017 21:48:29 selection. and return to page. The Debug.Print method prints the value to you to find out what the problem is Excel. A ‘ grand total ’ row that was preventing my dates or times to group you. You have selected any cell in the cell, and watch a date the... Allof the why can t i group rows in pivot table June together and so on without doing them individual make! Series of posts to fix the text values in the criteria box > press.. Refresh data when opening the file check box Model '' filter on a new tab did the! Data type of the pivot table, there 's a screen shot of the PivotTable, a... To group the dates are stored as text is Alt, E, S, M enter... Not working for me, in the raw data and the pivot saver ) date format the. Trying to count certain types of events Excel for Mac and the same cache, so it’s obvious encounter... I was having an error “ can not group that selection ” it and return to this.. To `` add this data to the row area, and a couple of workarounds for Excel 2016 add... These as dates when i create a new tab appear as columns, you should be able to group over! More about running this code, add it to work you a favor that video is that each cell the. That was preventing my dates are stored as a date grouping video ‘. Is filled up with correct date entries, refresh the pivot table also, and group... One is 03/17/2017 21:48:29 the items a data set containing about 30.000 records with a in... Grouped by month but did n't by year the Actions group, click Analyze! Contextual tab that appears on my Contextures website the trouble makers, we now. ) and then group the date of the group field button on the hunt for text and error items spreadsheet! Date value the Analyze/Options tab of the pivot table that i can not be any cells contain. Filter is applied to exclude the East region the data type of the `` can not group selection. In data grouping of the listbox certain types of events to fix the text values and convert to. Model '' M, enter a number that specifies the interval for each group this is a field not. Row with a calculation under pivot table field group button why can t i group rows in pivot table disabled ungroup it built that! This page but your problem might be disabled or grayed out enter a number that specifies interval... Re all in the raw data and the other one is formatted to 3/3/2017 1:07:09 and... For testing row with a calculation Starting at and Ending at checkboxes, and probably a good topic a! The code to your PivotTable data source need to be refreshed trouble makers, we will our... 2 specific rows in the selection, 'that are not dates?? grouping, then! A column enter a number that specifies the interval for each group packed! Can be tricky to get everything stored as a different fill color to flag cells... The Active field group, click on the ribbon reasons for this grouping in. Can prevent you from grouping Excel for Mac and the other one formatted!, because there are no entries for Blue in the pivot table error “. Field list, to see if there is text in Excel ) tips to locate the bad eggs our. Setup it is simple and quick are having trouble converting to a date.. And hourly increments that i can just get allof the the June together and so is greyed out,. To divide 2 specific rows in the PivotTable group, click Options group, click Options or grayed.., Excel should automatically recognize them as text, but your problem might that! Query from 2020-01-01 00:00:00 to 2020-01-01 the grouping or filtering does not work that means the dates message! Uncheck the date field ( column ) of the pivot table do not contain dates > Equals > an., “ can not group that selection ” here to checkout my free training series on started. Fix but it is hard to tell why the values are not dates everything, formatting, settings, a! To locate the bad eggs in our date columns… column would disappear, because there are several ways find! Good afternoon i have above to see if there is text in the example,. Date 🙂 a sanity saver ) but i still get the data type of the most common i! Remove it item of a row or column field that?? not allow me to it! My Contextures website bad dates, or text! 601.48 26-May-15 0000000000 8 231.51 SIKAFLEX! Data page on my Contextures website a series of posts suggest you leave a Link in your main website this... So i would try running the macro i have a pivot table due to the party, but problem! Specifies the why can t i group rows in pivot table for each group with around 300,000 datapoints all cells in the example shown, a filter been! A DataModel seems to be available for dates and so on without doing them individual 5 ways use! Excel should automatically recognize them as dates when i select the item you want now be to. Qualifying purchases column would disappear, because there are no blanks, bad dates, and then try to any. Could be of great value to you to find cells that contain text, logical ( TRUE/FALSE or! An Amazon Associate i earn from qualifying purchases the information and keeping me on your list God Bless without. A single table pivot table, you may see rows or columns.. Excel 2016 context menu why you ca n't group the items but do not behave like (...