How to Use Pivot Table to Filter Date Range in Excel (5 Ways)

Suppose we have a dataset of a company’s sales having Delivery Date, Region, Salesperson, Product Category, Product and Sales Amounts. We’ll use a pivot table to filter the date ranges.

excel pivot table filter date range


Method 1 – Using Check Boxes to Filter a Date Range in an Excel Pivot Table

Steps:

  • Select any cell in your data range. You can’t have any blank columns or rows within your dataset.
  • Go to the Insert tab, select Tables, and choose PivotTable.

excel pivot table filter date range

  • The Create PivotTable dialogue box will open.
  • Your table or range will be automatically selected if you have selected it initially. Otherwise, select it using the Select button shown with an arrow in the image below.
  • If you want to work in the Existing Worksheet, check that option and use the Location button to place where the table will go.
  • If you want to work on a New Worksheet, check that option and press OK.

excel pivot table filter date range

  • The PivotTable Fields dialog box will open. It will have all Fields from your dataset’s Column Headings.
  • There are four Areas: Filters, Columns, Rows, Values. You can drag any Field to any of the Areas.

excel pivot table filter date range

  • Drag Delivery Date to FILTERS.
  • Suppose we want to find out the relationship between Product Type and Region. Drag them to Column & Row or vice versa.
  • We put the Sales Amount in the Value Area to triangulate it with Product Type and Region.
  • Excel will create the pivot table at the designated location.

excel pivot table filter date range

  • Click on the drop-down menu beside Delivery Date.
  • Click on any date that you want to Filter.
  • To select multiple dates, click on Select Multiple Items then make your selection.

  • We have selected 01-Jan to 04-Jan.
  • Click OK.

  • Your Pivot Table will contain only values from 01-Jan to 04-Jan. You can also select discrete dates just by clicking on them.

  • We have removed gridlines and selected all borders for the Pivot Table.

excel pivot table filter date range


Method 2 – Using an Excel Pivot Table to Filter a Date within a Specific Range

Steps:

  • Create a Pivot Table with the dataset following the same procedures as in Method 1.
  • Drag the Delivery Date field to Column. If we want to see its relationship with Salesperson and Sales Amount, drag both to Row and Values.
  • We will get a Pivot Table.

excel pivot table filter date range

  • To filter with a range of dates, click on the Column Drop-Down beside Column Labels.
  • Select Date Filters.
  • Select Between.
  • You can select any other desired Filters like This Month, Last Week, Last Year, etc. which are called Dynamic Dates and we have shown them in a different section.

excel pivot table filter date range

  • Upon selecting Between, the Date Filter dialogue box will open.
  • Select the range of dates you want to Filter.
  • We have selected is between, 01-01-2022, and 28-02-2022.

excel pivot table filter date range

  • Our Pivot Table will show data only with the filtered range of dates.

excel pivot table filter date range


Method 3 – Using Date Filters Within an Excel Pivot Table

Steps:

  • We have put Delivery Date in Rows, Region in Column, and Sales Amount in Values.
  • This Pivot Table will show us the Sales Amount for each Region per Delivery Date.

excel pivot table filter date range

  • To find the region-wise Sales Amount for a specific time only, select the Row Labels Drop-Down.
  • Select the Date Filters.
  • Select any desired Dynamic Date. We have selected This Month.
  • This will show the Sales Amount for This Month.

excel pivot table filter date range

  • After removing gridlines and selecting all borders for our data cells, we will get our desired Pivot Table.

Read More: Excel Pivot Table Date Filter Not Working


Method 4 – Filtering the Date Range in an Excel Pivot Table with Slicers

Steps:

  • We have created a Pivot Table having Delivery Date in Column Headings and Product Type and Product in Row Headings.

excel pivot table filter date range

  • We input Sales Amounts in Values Area. You can select your desired Field, and can drag multiple fields in a single area to make a more detailed Pivot Table.

excel pivot table filter date range

  • Go to Analyze, select Filter, and choose Insert Slicer.

  • The Insert Slicers dialogue box will show up. Select the Field you want to filter. We have selected Delivery Date as we want to filter with dates.
  • Press OK.

  • The Delivery Date box will open up. You can select any date from here for filtering.
  • To select multiple dates, select the checkbox at the top-right, then select multiple dates.
  • We have selected 01-Jan, 04-Feb, and 13-Mar for filtering the Pivot Table.

  • The Pivot Table will show us the data of the above 3 selected dates and we will have our desired Pivot Table.

excel pivot table filter date range


Method 5 – Using the Pivot Table to Filter a Date Range with Timelines in Excel

Steps:

  • We have created a Pivot Table using Delivery Date in Column Headings, Region as Row Headings, and Salesperson as Value.

excel pivot table filter date range

  • The Values area inputs everything as a numeric value. So, it counted each Salesperson to be One.

  • Go to Analyze, select Filters, and choose Timeline.

  • The only option available here is Delivery Date. Select it in the box, and press OK.

  • Move the Blue bar left and right to select your desired Timeline. We have selected FEB and MAR.

  • Excel will show us our desired Pivot Table with Sales from Feb and Mar.

Read More: How to Create a Timeline in Excel to Filter Pivot Table


Download the Practice Workbook


Get FREE Advanced Excel Exercises with Solutions!
Asif Khan Pranto
Asif Khan Pranto

Md. Asif Khan Pranto worked as an Excel and VBA Content Developer in Exceldemy for over two years and published some articles for the website. He is passionate about exploring new aspects of Excel and VBA. He received his Bachelor of Science in Mechanical Engineering from the Islamic University of Technology. Now, he is pursuing a Master of Development Studies to experience a new spectrum of knowledge. Apart from creating Excel tutorials, he is interested in Data Analysis... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo