One way
=COUNTIF(INDEX($B:$IV,1,ROWS($A$1:A1)):INDEX($B:$I V,50,ROWS($A$1:A1)),$A$1)
if could be done a little bit shorter using OFFSET but that formula would be
volatile
=COUNTIF(OFFSET($B$1,0,ROWS($A$1:A1)-1,50,),$A$1)
--
Regards,
Peo Sjoblom
Excel 95 - Excel 2007
Nothwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey
"Corben" wrote in message
...
I want to look at a range of cells, but have the column range change, while
the row range stays the same.
ex:
in A2= COUNTIF(B50:B100,A1)
in A3 I would like =COUNTIF(C50:C100,A1)
If i copy A2 to A3 though, it changes the formula to =COUNTIF
(C51:C101,A1)
Thanks,