View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
gabe gabe is offline
external usenet poster
 
Posts: 39
Default Variable Range in Formula

I'm stuck on this one, hopefullly someone can help. I have the following
formula:

=SUMPRODUCT((B2=$B$5)*(B2<=$B$6))

Well "B2" in this formula is supposed to a variable range, but it wont
calculate right. So I created a bunch of different range names on sheet2
(i.e., B1:B100, A3:A7, etc...), and in B2 of sheet1 I created a combobox with
the validation tool for the user to basically choose the ranges I created. So
if they choose let's say the B1:B100 range in B2, how will that work in the
above formula?

Thanks,
~Gabe