A shared endpoint counts once
Subtracting dates without +1 loses the inclusive day, including a same-date interval.
Step-by-step guide · read-only ·
Loading your interactive spreadsheet…
Preparing the worksheet and formulas…
Fill C2:C5 with the number of calendar dates shared by each A:B interval and the inclusive reporting window G2:G3. Count both endpoints, return 0 for no overlap, and return Review when a source end precedes its start. Dates are whole numeric serials from 2000 through 2099; G3 must be on or after G2.
Follow the highlighted cells. Switch to Your turn to edit. Answer cells: C2, C3, C4, C5. Browser calculations may differ from your Excel version.
Practice stays on this device. No worksheet data is uploaded.
Clip each original interval to a reporting window, count both endpoints and preserve a distinct review result for reversed records.
Clip each original interval to a reporting window, count both endpoints and preserve a distinct review result for reversed records.
=IF(B2<A2,"Review",MAX(0,MIN(B2,$G$3)-MAX(A2,$G$2)+1))The formula uses the interactive worksheet above. Adjust ranges and criteria for your own data.
This task counts every shared date, including weekends and holidays. A workday calendar would require an additional explicit eligibility rule.
Both source and reporting intervals include their endpoints. A pair touching on one date overlaps for one day. Do not apply this formula unchanged to time intervals or half-open booking boundaries.
A reversed record is an issue to review. Sorting its endpoints silently changes the meaning of the source.
The overlap cannot begin before either interval begins. MAX selects the later of the source start and fixed reporting start.
The overlap cannot continue beyond either interval. MIN selects the earlier source or reporting end.
A same-day overlap counts one. Adding one handles inclusive endpoints; MAX with zero prevents a disjoint pair from producing a negative count.
Each row changes its own source interval. Keep the report window fixed in G2:G3 when filling down.
Subtracting dates without +1 loses the inclusive day, including a same-date interval.
MIN/MAX across all four values can hide a reversed source. Return Review instead.
Formula entry, fill and all six authored datasets were checked in Chrome on October 18, 2026. Numeric timestamp/clock display and original/current/frozen downloads have separate package/browser checks. Local clocks carry no timezone or daylight-saving interpretation; no payroll policy is inferred. Native Excel scope is recorded in the date/time validation report; Google Sheets remains unverified.
Content version 1. Practice checks compare calculated results across different datasets; they do not certify every possible formula.