BACKGROUND
In cell F5 I use the following formula to summarize values based on two criteria:
=SUMIFS(Input!$F:$F,Input!$B:$B,$D5,
Input!$G:$G,$D$2,
Input!$A:$A,">="&F$2,Input!$A:$A,"<"&G$2)
EXPLANATION
Input!$F:$F is a column with values
Input!$B:$B is a column with range1
D5 is criteria1 (that needs to match with criteria in the list Input!$B:$B with range1)
Input!$G:$G is a column with range2
D2 is criteria2 (that needs to match with criteria in the list Input!$G:$G with range2)
Input!$A:$A is a column with dates (format: dd/mm/yyyy)
F$2 and G$2 are (1st of the month) dates
The formula works like a charm: it summarizes for the month, the values, matching the two criteria.
REQUIREMENT
In cell B5 I want to do the same (as in cell F5) but not for a month but for a year: summarize the values for a year, matching the two criteria.
ISSUE
The layout of the sheet doesn’t allow me to use the ">="&F$2 and "<"&R$2 elements. I would like to summarizes the values, matching the two criteria, for a year, isolating the year format in the date column (Input!$A:$A). The formula appears to have an error:
=SUMIFS(Input!$F:$F,Input!$B:$B,$D5,
Input!$G:$G,$D$2,
"="YEAR(Input!$A:$A))
Can anyone help me?
Bookmarks