Forum Discussion
Get earliest posted date within given month and year from range of dates
- Aug 28, 2022
Solution: Column B is where the dates are. Array MIN, IF and Year returns the earliest date for year 2022, from range B9:B1009
{=MIN(IF(YEAR(INDIRECT(NisConMth & "!B9:B1009"))=NisConYr, INDIRECT(NisConMth & "!B9:B1009")))}
I did not need to include the month in the criteria since it was already in the month sheet. Looking for the earliest date within the latest year was the solution
Solution: Column B is where the dates are. Array MIN, IF and Year returns the earliest date for year 2022, from range B9:B1009
{=MIN(IF(YEAR(INDIRECT(NisConMth & "!B9:B1009"))=NisConYr, INDIRECT(NisConMth & "!B9:B1009")))}
I did not need to include the month in the criteria since it was already in the month sheet. Looking for the earliest date within the latest year was the solution