Forum Discussion

busymamabee's avatar
busymamabee
Copper Contributor
Nov 12, 2022
Solved

SUMPRODUCT Error by Month

The last couple of days I've been attempting to count the number of instances in a given month listed on a table.    The equation that I'm using is SUMPRODUCT(--((Month(Tracker[Date Closed])=1))). ...
  • HansVogelaar's avatar
    Nov 12, 2022

    busymamabee 

    The MONTH function treats empty cells as 0. 0 corresponds to the (non-existent) date January 0, 1900, so MONTH(empty_cell) = 1.

    You could use

     

    =SUMPRODUCT((Tracker[Date Closed]<>"")*(Month(Tracker[Date Closed])=1))

Resources