I am trying to calculate something using the following formula, but it returns with an error please help
=SUMPRODUCT(--($D$2:$D$5229>=B$5231),--($D$2:$D$5229<=B$5232),--($Y$2:$Y$5229="2"))/SUMPRODUCT(--($D$2:$D$5229>=B$5231),--($D$2:$D$5229<=B$5232),--($Y$2:$Y$5229="1"))
I am using Excel 2010
Regards
Bookmarks