For all data described just for month (do not care of year)
Use an array formula (committed with Control+Shift+Enter) similar to this one:
Here I made assumption that the month is determined by start date (in column A) and duration is in column.
The result will be for January,
copy down for next 11 rows
If you want take into account also a year - instead of simple condition on monthnumber, more elaborated shall be used to check both year and month.
But as there is no attachment with sample spreadsheet I cease to do it.
Bookmarks