Returns TRUE if two date ranges overlap
=AND(start_a<=end_b, start_b<=end_a)This function checks whether two date ranges overlap at any point, including cases where they touch on the same start or end date. It's useful for conflict detection in schedules, travel plans, resource bookings, and timeline validation. For example, if A2 is "2026-01-10", B2 is "2026-01-15", C2 is "2026-01-15", and D2 is "2026-01-20", then =DATES_OVERLAP(A2, B2, C2, D2) returns TRUE because the ranges share a boundary date.
Use the inputs below to create DATES_OVERLAP as a reusable custom function in Google Sheets.
Learn how to add custom functions to Google SheetsDATES_OVERLAP
Returns TRUE if two date ranges overlap
=AND(start_a<=end_b, start_b<=end_a)
start_a
end_a
start_b
end_b
Start date of the first range
A2
End date of the first range
B2
Start date of the second range
C2
End date of the second range
D2
Other functions in the same category: Date & Time Operations
Determine if a date falls within a start and end date
Calculates the difference between two dates in whole weeks.
Converts a time duration in minutes to a readable format (e.g., 1 hr 30 min)
Returns TRUE if a date falls on Monday through Friday
Returns TRUE if a date falls on Saturday or Sunday
Return the next date that matches a weekday number
Named functions enable the creation of custom, reusable formulas that mimic built-in functions, streamlining calculations and data manipulations. These functions simplify complex formulas, making spreadsheets more readable and less prone to errors. By encapsulating intricate logic within a single function call, they enhance consistency across your data. Utilizing named functions reduces the need to write lengthy formulas repeatedly, thereby improving workflow efficiency and productivity in data analysis and management.
Download and import — fastest way to add the function but does not include argument descriptions and examples
Follow these simple steps to download and import a function into your spreadsheet. This method is the quickest and easiest way to add the named function to your Google Sheets document, but will not include the argument description and examples.
Once added, the function will be ready to use in your document like any other built-in function. Simply type the function name and provide the required inputs to use it in your calculations.
Copy and paste — copy and paste each property one at a time
Follow these simple steps to integrate a custom named function into your spreadsheet:
Once added, the function will be ready to use in your document like any other built-in function. Simply type the function name and provide the required inputs to use it in your calculations.