A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Assume:
- Start date is in B1
- Duration (number of days to include, including the start date) is in B2
- The list of allowed dates is in a vertical range, for example D5:D20
Use this formula to return the end date based only on the dates in the list:
=INDEX($D$5:$D$20,
MATCH(B1,$D$5:$D$20,0) + B2 - 1)
Explanation:
-
MATCH(B1,$D$5:$D$20,0)finds the position of the start date in the allowed‑dates list. -
+ B2 - 1moves forward by the remaining days (because the start date counts as day 1). -
INDEXreturns the date at that final position, which is the end date.
Ensure that:
- The start date exists in the list of allowed dates.
- The list is sorted in ascending order and contains at least as many dates as the duration requires.
References: