Pivot Table won't Group Dates from growing Table

BrerRabbit

Board Regular
Joined
Aug 20, 2023
Messages
84
Office Version
  1. 2021
  2. 2016
  3. 2013
Platform
  1. Windows
I have a table that is solely populated by formulae. Over the course of time more data will populate this table via the formulae.

The Date column does use the DateValue formula.

I'm trying to do a pivot table off this table.
If I do a pivot table where the range from the table is just the data then I can group the dates. BUT, the pivot table won't include new data.
If I do a pivot table where the range includes blank rows (only has formula in them) then the dates won't group bcuz there is a blank row included in the pivot table.

I don't know how to proceed.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
If your data is in a Table, it shouldn't have blank rows in it. Half the point of using a table is that it automatically expands as you add new data to it.
 
Upvote 0
If your data is in a Table, it shouldn't have blank rows in it. Half the point of using a table is that it automatically expands as you add new data to it.
the table is populated by formula coming from another worksheet. hence the empty rows of formula. I don't know how large the table will ultimately be. It collects data over the year.
 
Upvote 0
You should still only add new rows as and when necessary. If you don't, and you can't put a valid default date in that column, then your pivot table won't be able to group, so you'd have to include the groups in the source table.
 
Upvote 0
Why do you need an intermediate table with formulas to get data for a pivot table?
It's an unusual project where I've had to do alot of thinking outside the box. I've essentially had to break down a very basic 4 week per month calendar into a single column and then analyse the data from that column. over 90,000 rows long. The table is a list of first instances from that column.

Bcuz the "calendar" events that were being recorded meant that each cell had to have 3 bits of information instead of one, the table expands those 3 bits of information into useable data. Hence why the table is all formulae. Plus, it's usable over 5 years. So the table is never going to be an exact fit to the populated data.

I may just have to do the pivot tables as normal tables and do them the "long" way.
 
Upvote 0
You should still only add new rows as and when necessary. If you don't, and you can't put a valid default date in that column, then your pivot table won't be able to group, so you'd have to include the groups in the source table.
I don't understand "include the groups in the source table". Can you please explain what you mean by that?
 
Upvote 0
I mean add columns to the table that extract whatever date groupings you need - e.g. using the YEAR, MONTH, or TEXT functions.
 
Upvote 0
Solution
You can probably use Data, From Table to massage your original data into the same structure you currently have for the Pivot table. The result of that automagically is a table and hence no issues with grouping.
 
Upvote 0
I mean add columns to the table that extract whatever date groupings you need - e.g. using the YEAR, MONTH, or TEXT functions.
Actually thats an intriguing thought. Why would I do that and how would that be used in a pivot table? I understand formulae VERY well, but am still very new to pivot tables. In this project pivot tables could not be utilised until the very last step. Even Excel popped up a message saying I couldn't use pivot tables in this project.

Can you describe how I would incorporate those groupings into a pivot table?
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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