Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Grouping Dates and Numbers | Sorting, Filtering, and Grouping Data
Excel Pivot Tables in Depth v2

bookGrouping Dates and Numbers

Stryg for at vise menuen

Pivot Tables allow you to group raw values into logical ranges. Instead of analyzing individual dates or numbers, you can group them into months, quarters, years, or numeric intervals. This makes trends easier to see.

Grouping Dates

When a date field is placed in the Rows area, Pivot Tables initially display individual dates. You can group dates into: months, quarters, years, days, or any combination of these.

To group dates:

  1. Place a Date field in the Rows area;
  2. Right-click any date inside the Pivot Table;
  3. Choose Group;
  4. Select the grouping options (for example, Months and Years);
  5. Confirm.

Excel creates a new grouped structure in the Pivot Table without modifying the original data.

Data Working with

Order ID

Order Date

Customer Name

Product

Category

Region

Sales Amount

Quantity

Customer Age

ORD-1001

2023-03-22 0:00:00

Liam Johnson

Smartphone

Mobile

East

1013

8

61

ORD-1002

2025-10-12 0:00:00

William Anderson

Mouse

Accessories

North

3017

1

57

...

...

...

...

...

...

...

...

...

ORD-1200

2025-09-21 0:00:00

Ava Martinez

Printer

Office

South

3226

2

36

carousel-imgcarousel-imgcarousel-imgcarousel-imgcarousel-imgcarousel-img
Note
Note

You can ungroup at any time: right-click a grouped label and choose Ungroup.

Grouping Numbers

Numeric fields in the Rows or Columns area can also be grouped into intervals. For example: sales grouped into ranges of 0–499, 500–999, etc., or ages grouped into 10-year ranges.

To group numbers:

  1. Place a numeric field in Rows;
  2. Right-click a number in the Pivot Table;
  3. Choose Group;
  4. Set:
    • Starting value;
    • Ending value;
    • Interval size.

Excel creates automatic numeric ranges based on the interval you define.

carousel-imgcarousel-imgcarousel-imgcarousel-img
Note
Note

Grouping works only with true dates and numbers (not text).

The grouping exists only inside the Pivot Table.

Date Grouping

  • Create a Pivot Table;
  • Place Date in Rows;
  • Place Sales in Values;
  • Group the Date field by Months.

Number Grouping

  • Create or modify a Pivot Table;
  • Place Sales in Rows;
  • Place Count of Sales in Values;
  • Group Sales into intervals of 500.
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 2. Kapitel 2

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

Sektion 2. Kapitel 2
some-alt