Filter by Date Range Using Filter Menu in Google Sheets

Are you struggling to narrow down a dataset in Google Sheets based on date criteria? Look no further! In this tutorial, we will dive into the process of filtering by date range using the filter menu in Google Sheets. With just a few simple steps, you’ll be able to conditionally filter your data and extract the information you need.

Filter by Date Range Using Built-In Rule in Sheets

Let’s start with the built-in rule option. To begin, make sure you have a dataset with a date column that you want to filter. In this example, we will use the “Receipt Date” column in column F.

Sample data with date column for filtering using menu

Next, follow these steps:

  1. Select the range A1:F and go to Data > Create a filter.
  2. Click on the filter drop-down in cell F1 and select “Filter by condition”.
  3. From the drop-down menu, choose “Is between”.
  4. In the first field, enter =$H$1, and in the second field, enter =$J$1. Make sure to use static cell references by including the $ sign.
  5. Click “OK”.

Voila! You have successfully filtered your dataset by date range using the built-in rule in Google Sheets.

Filter Formula Equivalent to the Filter Is Between:

If you prefer using formulas over the filter menu, you can achieve the same result using the FILTER function. In a new range, enter the following formula:

=filter(A2:F18,F2:F>=H1,F2:F<=J1)

This formula will extract the data within the specified date range to the new range.

Filter Is Not Between:

If you want to reverse the filtering process and hide the rows containing dates within a specific range, follow the same steps as above but select “Is not between” in step 3. This will hide the rows with dates between the specified range.

Filter Formula Equivalent to the Filter Is Not Between:

For those who prefer formulas, here is the equivalent formula to achieve the “Is not between” filtering:

=filter(A2:F18,(F2:F<H1)+(F2:F>J1))

You can experiment with this formula in cell G1 or any other desired location.

Filter by Date Range Using Custom Formula in Sheets

Alternatively, instead of using the “Is between” built-in rule, you can utilize a custom formula to filter your dataset based on a date range. Here’s how:

  1. Select range A2:F and go to Filter > Create a filter.
  2. Click “Filter by condition”.
  3. Select “Custom formula is”.
  4. Enter either of the following custom formulas:
  • =(F2:F>=$H$1)*(F2:F<=$J$1)=1 – This formula filters the dataset for dates within the specified range.
  • =(F2:F<>$H$1)*(F2:F<>$J$1)=1 – This formula filters for dates that do not fall within the specified range.

That’s it! You have successfully filtered your dataset by date range using a custom formula in Google Sheets.

Remember, filtering your data based on specific date criteria can help you extract the most relevant information from your dataset. Whether you prefer using the built-in rule or custom formulas, Google Sheets provides versatile options to meet your filtering needs.

For more insightful tips and tricks on using Google Sheets, visit Crawlan.com. Happy filtering!

Related posts