How to find overlapping date/time ranges in Excel?
Author: SunLast Modified: 2024-09-24
In this article, I am going to talk about how to find or check if a date range or time range is overlapping with others in Excel as below screenshot shown.
1. Select the start date cells, go to Name Box to type a name and press Enter key to successfully give this range a ranged name. See screenshot:
2. Then go to select the end dates, and give it another ranged name in the Name Box and press Enter key. See screenshot:
3. Select a blank cell that you will place the judgement, and type this formula =SUMPRODUCT((A2<enddate)*(B2>=startdate))>1, and drag auto fill handle down to the cells with the formula. If the cell displays TRUE, it means the relative date range is overlapping with others, otherwise the data ranges are not overlapping with others.
In the formula, A2 and B2 are the date range you want to check, enddate and startdate are the ranged names you gave in above steps.
Tip. In some cases, you may want to add days to a date, if you are interested in quick add-in, I introduce Kutools for Excel’s Add days to date utility for you, you can easily handle the task as shown in the following screenshot. It’s full function without limitation in 30 days, please download and have a free trial now.
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...