Hi guys, my formula is below:
=AVERAGEIFS($G$2:G1000,$B$2:B1000,$B2,$D$2:D1000,"<="&MONTH($D2),$D$2:D1000,">="&DATE(D2,1,1)&"<="&DATE(D2,12,31))
The purpose is to calculate a ytd average for individual employees every month, and then the formula should be able to be applied to 2017 as well.
Criteria:
B=employee name
D=dates
The date written in cell D2 is 1/1/2016. The idea is that when 1/1/2017 occurs, the ytd average will reset itself and start over. I am currently getting the #DIV/0! error...can anybody figure out why?
Thanks!
=AVERAGEIFS($G$2:G1000,$B$2:B1000,$B2,$D$2:D1000,"<="&MONTH($D2),$D$2:D1000,">="&DATE(D2,1,1)&"<="&DATE(D2,12,31))
The purpose is to calculate a ytd average for individual employees every month, and then the formula should be able to be applied to 2017 as well.
Criteria:
B=employee name
D=dates
The date written in cell D2 is 1/1/2016. The idea is that when 1/1/2017 occurs, the ytd average will reset itself and start over. I am currently getting the #DIV/0! error...can anybody figure out why?
Thanks!