View Single Post
  #3   Report Post  
David McRitchie
 
Posts: n/a
Default

Hi Buck,
Use the INDIRECT Worksheet Function

=COUNTIF(INDIRECT("N"&B18 &":N" &B18+B18),"Y")

---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Brockettb" wrote in message ...
I need to create a formula that references a range of cells. The range is
supposed to be determined by what the user enters into another cell. Can a
formula have a variable in it that will grab a number from another cell?
For instance:
=COUNTIF(N[B18]:N[B18+B18],"Y")?
Where you see B18 the user has entered in a number, we will say it was 5. I
need the function to reference the cells in the N column from N5 (cell B18
has a 5 in it) to N10 (B18+B18 or 5+5).

I appreciate any help you all can give me. Thanks so much in advance.

Brockettb