Skip to main content

How to find overlapping date/time ranges in Excel?

Author: Sun Last Modified: 2020-07-14

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.
doc find overlapping datetime 1

Check overlapping date/time ranges with formula

arrow blue right bubble Check overlapping date/time ranges with formula

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:
doc find overlapping datetime 2

2. Then go to select the end dates, and give it another ranged name in the Name Box and press Enter key. See screenshot:
doc find overlapping datetime 3

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.
doc find overlapping datetime 4

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.

doc add days

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

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...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (5)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Formel ergänzen: "A2<=" statt "A2<"
This comment was minimized by the moderator on the site

I have been having problem with some overlapping events: I would like to calculate each even’ts non-overlap minutes from a time series of downtime events.

A generic formula supposed to work for any duration of a time event condition such as multiple events overlap, some, non etc. Up to that point no problem but when total duration of some random events overlap with a single event then I am having issues in terms of a generic excel formulation to calculate non-overlap time of each event. That sheet will be automated so I can’t use different formula for each row since when sheet gets updated all new downtime will be on it. Here is an example:

If you specifically look up 12/14/2017 8:00 am to 12/15/2017 9:00, you can see my point.

Downtime Start (with date) Downtime End (with date)
12/14/2017 6:00 12/14/2017 7:30
12/14/2017 6:30 12/14/2017 7:30
12/14/2017 6:30 12/14/2017 16:00
12/14/2017 7:00 12/14/2017 8:15
12/14/2017 7:30 12/14/2017 8:30
12/14/2017 7:30 12/14/2017 15:00
12/14/2017 7:45 12/14/2017 8:00
12/14/2017 8:00 12/15/2017 9:00
12/14/2017 9:00 12/14/2017 10:00
12/14/2017 11:00 12/15/2017 16:00

Your help would be really appreciated!


This comment was minimized by the moderator on the site
Sorry, I did not have any idea about your question, you can go to our forum, maybe someone can help you.
This comment was minimized by the moderator on the site
Hi, I a m looking for a formula to resolve the below issue. I have unique Employee ID with duplicate Leaves. I want to highlight duplicate or overlapped leaves (start Date and End Date) under 'My Remark' column. Appreciate your assistance.

find the attached template for your review.
This comment was minimized by the moderator on the site
Sorry I do not understand your question clearly. What you need is to highlight the groups by same values as below screenshot shown?
There are no comments posted here yet
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations