5.3 C
London
Thursday, December 19, 2024
HomeExcelDescriptive Statistics in ExcelExcel: How to Group Values in Pivot Table by Uneven Intervals

Excel: How to Group Values in Pivot Table by Uneven Intervals

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

The following step-by-step example shows how to group values in a pivot table in Excel by uneven intervals.

Step 1: Enter the Data

First, let’s enter the following data about 15 different stores:

Step 2: Create Helper Column

Suppose we’d like to create a pivot table to display the sum of sales by the follow intervals of store square footage:

  • 100-124 sq. feet
  • 125-149 sq. feet
  • 150-199 sq. feet
  • 200+ sq. feet

Notice that each interval does not have the same length.

In order to create a pivot table where we group by intervals of different length, we’ll first need to create a helper column that classifies each store into one of these intervals.

We can use the following formula to do so:

=IF(B2B2B2

The following screenshot shows how to use this formula in practice:

Step 3: Create Pivot Table

Once we’ve created the helper column, we can proceed to create a pivot table.

To create a pivot table, click the Insert tab along the top ribbon and then click the PivotTable icon:

In the new window that appears, choose A1:D16 as the range and choose to place the pivot table in cell F1 of the existing worksheet:

Once you click OK, a new PivotTable Fields panel will appear on the right side of the screen.

Drag the Sq. Feet Group field to the Rows box and drag the Sales field to the Values box:

The pivot table will automatically be populated with the following values:

Here’s how to interpret the values in the pivot table:

  • The sum of the sales for stores with square footage between 100 and 124 is 51.
  • The sum of the sales for stores with square footage between 125 and 149 is 82.

And so on.

Additional Resources

The following tutorials explain how to perform other common tasks in Excel:

How to Create Tables in Excel
Excel: How to Group Values in Pivot Table by Range
How to Group by Month and Year in Pivot Table in Excel

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories