Forum Discussion
busymamabee
Nov 10, 2022Copper Contributor
COUNTIFS by Month Excluding Year
I'm attempting to do a COUNTIFS function based on a date range but want to exclude the year so that the date can be updated easily from one year to the next without having to redo all of the formulas...
PeterBartholomew1
Nov 10, 2022Silver Contributor
Being a committed Excel 365 user, I would employ something like
WorksheetFormula
= MAP(goalDate, MonthlyTotalλ(date,goals))
MonthlyTotalλ
= LAMBDA(mnth, goals, LAMBDA(gdate,
SUM(IF(MONTH(date) = MONTH(gdate), goals))
));
... or would that constitute 'cruelty to Excel users'?