I have the following case in Excel where I have hours based on date and task.

Based on an =UNIQUE() I add all my tasks in I column and in J column I am trying to add the hours based the task and the current month defined on I2.
That formula will throw me the #Error but I can’t really understand why.
Thank you for your time!
>Solution :
You may try this in Sheets
=sumifs(D:D,C:C,I4,index(month(A:A)),I$2)
- the parameter
month(A3:A)is not applied across the wholeA3:Acolumn_range & is same as writing it asmonth(A3). You may need to wrap it in anarrayformula / indexso that it is applied to the whole column_range. Otherwise you will be prompted withArray arguments to SUMIFS are of different size.error

