COUNTIF date occurs in same week number and year

2019-10-04 01:57发布

问题:

I have a bunch of dates in Column C, and then other dates in column J. How would I count the instances of dates in column C that fall in the same week number (and same year) as a date in a particular cell in column J?

Thanks for all help in advance

回答1:

Something like

=SUMPRODUCT(--(ISOWEEKNUM(J1)=ISOWEEKNUM($C$1:$C$10)),--(YEAR(J1)=YEAR($C$1:$C$10)))

Data