The formula you used in your attachment was this...
=SUMPRODUCT(--($B$2:$B$25>=E2),--($B$2:$B$25<F2))
An alternate formula that will produce the same results is this...
=COUNTIF(B$2:B$25,"<"&F2)-COUNTIF(B$2:B$25,"<"&E2)
I am not sure which of these two formulas would be more efficient. In my experience, the SUMPRODUCT function tends to be slow because, underneath it all, it is actually an array function that does not require using CTRL+SHIFT+ENTER to enable the array; however, making two COUNTIF function calls against the same data set might also be slow... I am just not sure.
Bookmarks