=SUMPRODUCT(((INT((A1:A10-DATE(YEAR(A1:A10-WEEKDAY(A1:A10-1)+4),1,3)+WEEKDAY(DATE(YEAR(A1:A10-WEEKDAY(A1:A10-1)+4),1,3))+5)/7))=5)*1)
Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.
TRUSTED BY
Open in new window