Creating number ranges in a Pivot Table

In a Numbers pivot table, how can I set up rows to show a number range instead of a row for each and every number?


For example, I have a two column table: 1. # of video clips and 2. Created a merged video


The standard pivot table would give me a row for each and every count of # of video clips. I'd like to instead create ranges (eg 0-5, 6-10, 11-15, etc). I can see how to summarize date fields by week or month. Would love to be able to do that with any numeric data.


Is that possible? I'm using Numbers V 13.0

MacBook Pro 13″, macOS 11.1

Posted on Apr 11, 2023 2:07 PM

Reply
Question marked as Top-ranking reply

Posted on Apr 12, 2023 1:31 AM

The ability of Pivot Tables to automatically aggregate by date ranges is a real time saver!


However, I do not think it is possible to do that directly with number values.


There is, though, a way to create the ranges in your data table without too much trouble, something like this:




=IFS(A2≤5," 0-5",A2≤10," 6-10",A2≤15,"11-15")


If you have more ranges, just include the ifs-expression, if-true pairs within the IFS function.


(I left an extra space before 0-5 and 6-5 here in case you might later want to sort on that column).


Then when creating the Pivot Table you can drag the added "range" column into the Rows box instead of the original column.


SG


3 replies
Question marked as Top-ranking reply

Apr 12, 2023 1:31 AM in response to hab1

The ability of Pivot Tables to automatically aggregate by date ranges is a real time saver!


However, I do not think it is possible to do that directly with number values.


There is, though, a way to create the ranges in your data table without too much trouble, something like this:




=IFS(A2≤5," 0-5",A2≤10," 6-10",A2≤15,"11-15")


If you have more ranges, just include the ifs-expression, if-true pairs within the IFS function.


(I left an extra space before 0-5 and 6-5 here in case you might later want to sort on that column).


Then when creating the Pivot Table you can drag the added "range" column into the Rows box instead of the original column.


SG


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Creating number ranges in a Pivot Table

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.