I need to count the dates from a separate sheet that occurred in today's week number. The following function works if I choose a range of date fields that are not blank.
=COUNTIF({RANGE}, WEEKNUMBER(@cell) = WEEKNUMBER(TODAY())).
However, if I choose a range that includes date fields that are blank, it returns "Invalid Data Type" because the formula cannot take the WEEKNUMBER of a blank cell, even if the cell formatting is restricted to Date.
So I need the WEEKNUMBER function to only act on the cell if the cell is not blank.
I've tried COUNTIFS, with the first criteria being NOT(ISBLANK), and the second criteria being identical to above, but it did not work.
Can anyone recommend a solution?