Skip to main content

Count dates shared by two inclusive intervals

Your goal: Clip each original interval to a reporting window, count both endpoints and preserve a distinct review result for reversed records.

Full task requirements

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.

Inside, touching, outside and reversedFind the inclusive overlap for row 20 cells selected
Reporting window: G2 is From (start); G3 is Through (end). Choose the source interval and these window boundaries. Dates remain numeric.
Click or drag source cells; selected cells change color Drag from selected cells to deselect.
#
1
2
3
4
5
Step 1 of 4

Find the inclusive overlap for row 2

Select the source cells in the worksheet, then complete the choices below.

Rules for this step

Reject a reversed source interval first. Otherwise keep the later opening and earlier closing, include both endpoints, and use zero when they do not overlap.

Overlap dates / Review · C2
0 cells selected