View Single Post
  #4  
Old May 17th, 2009, 05:51 PM posted to microsoft.public.excel.misc
WhatsUp31415
external usenet poster
 
Posts: 27
Default How to reference variable range?

"T. Valko" wrote:
=FREQUENCY(OFFSET(B9,MATCH(G1,C9:C721,0)-1,,COUNTIF(C9:C721,G1)),H1:H5)


Thanks. I had wanted to use OFFSET, but I could not make it work, even with
constants. I must have made some mistakes. In any case, I had not thought
of using MATCH.


This method is longer but isn't volatile:
=FREQUENCY(INDEX(B9:B721,MATCH(G1,C9:C721,0)):INDE X(B9:B721,MATCH(G1,C9:C721,0)+COUNTIF(C9:C721,G1)-1),H1:H5)


I like the fact that this is not volatile.

Thanks again. And thanks for understanding the question.