polarisking
Member
I consider myself a fairly advance user, but I need help understanding what this formula is doing
=SUMPRODUCT(--ISNUMBER(--(ROW(INDIRECT(YEAR(StartDate)&":"&YEAR(EndDate)))&"-02-29")))
For StartDate, use 10/1/2001.
For EndDate, use 2/1/2014.
The correct answer is 3 (2004, 2008, and 2012) and that's exactly what this formula returns.
It must be counting the number of TRUE occurrences in an array of dates where 02-29-YYYY is valid, but I can't fully understand what's happening "under the covers." Any assistance would be much appreciated.
=SUMPRODUCT(--ISNUMBER(--(ROW(INDIRECT(YEAR(StartDate)&":"&YEAR(EndDate)))&"-02-29")))
For StartDate, use 10/1/2001.
For EndDate, use 2/1/2014.
The correct answer is 3 (2004, 2008, and 2012) and that's exactly what this formula returns.
It must be counting the number of TRUE occurrences in an array of dates where 02-29-YYYY is valid, but I can't fully understand what's happening "under the covers." Any assistance would be much appreciated.