Function Problems

How to Use Excel Formulas to Match Date Ranges and Return Titles

Jason MillerJason Miller Nov 10, 2026 869 views

Question details

The user needs to find an Excel formula that identifies which predefined date range fully contains a specified lookup date range and returns its associated title.

Product
Excel
Device & OS
not provided
Scenario
Comparing lookup start and end dates against a table of established start and end dates to find the containing period and retrieve its name.
Observed behavior
Requires a dynamic array formula approach to output the correct title when both the start date and end date conditions are satisfied.
Before you start

Ensure your dataset is organized into clear columns for established start dates, end dates, and titles, and verify that all date cells are formatted correctly as Dates.

Solution 1Recommended

Use the FILTER Function for a Single Date Range

The FILTER function is ideal for extracting a title when a single lookup date range falls entirely within an established date range.

This approach uses boolean logic to check two conditions simultaneously: the established start date must be less than or equal to the lookup start date, and the established end date must be greater than or equal to the lookup end date.

1
Select the Output Cell

Click on the cell where you want the matched title to appear.

2
Input the FILTER Formula

Enter the formula: =FILTER($C$2:$C$5,($A$2:$A$5<=F4)*($B$2:$B$5>=G4),""). Assume A contains start dates, B contains end dates, C contains titles, F4 is your lookup start date, and G4 is your lookup end date.

3
Apply the Formula

Press Enter. The cell will display the matching title or remain blank if no date range matches.

Use the FILTER Function for a Single Date Range
Array Function Logic: The multiplication symbol (*) acts as an AND operator in the array formula, ensuring both start and end date conditions are met before returning the title.
Efficient Data Analysis in WPS Spreadsheet

Use WPS Spreadsheet for Advanced Formula Processing

WPS Spreadsheet fully supports advanced array functions like FILTER, MAP, and LAMBDA, making it easy to match complex date ranges and extract data seamlessly.

  1. 1. Open Your Workbook: Launch WPS Spreadsheet and open the document containing your date ranges.
  2. 2. Organize Your Data: Ensure your established date ranges and lookup dates are in clearly defined, separate columns.
  3. 3. Apply the FILTER Function: Use the =FILTER() function in an empty cell to cross-reference the start and end dates just as you would in standard spreadsheet software.
  4. 4. View Matched Titles: Press Enter to instantly process the array and display the correct matching titles.
Fully compatible with Microsoft Excel formulas and dynamic array functions.Lightweight software that processes complex conditional formulas and large datasets quickly.Clean, user-friendly interface with free built-in data visualization tools.
microsoft office alternative - wps office

Frequently Asked Questions

What happens if the lookup date range overlaps two established date ranges?

If the lookup dates satisfy the conditions of multiple established date ranges, the FILTER function will return multiple titles in a spilled array. Ensure your established ranges do not overlap if you only want a single result.

Why does my FILTER function return a #CALC! error?

A #CALC! error typically means the FILTER function couldn't find any established date range that fully contains your lookup dates. Adding ,"" at the end of the FILTER formula prevents this error by returning a blank cell instead.

Can I match date ranges without using the FILTER function?

Yes, if you are using an older version of your spreadsheet software that does not support dynamic arrays, you can use an alternative formula combining INDEX and MATCH with boolean logic, or SUMPRODUCT to calculate the matching row.