Cell Variables and Ranges

  • Thread starter Thread starter jcottam
  • Start date Start date
J

jcottam

Hi There,

I'm looking to make a worksheet as dynamic as possible.

I want to define a range of ROWS (rows 15 - 30) in table cells (ex: A1
15 , A2= 30)

I then want to reference these definitions in a formula like the on
below:

=SUM(COUNTIF(DataWorkSheet!L$*15*:L$*30*,$A16)/$B$10)

Unfortunately I don't know how to reference variables "15" and "30" t
make the formula above dynamic. My dream is to input row number
(range) into cells A1 and A2 and then reference the "VALUES" of thes
cells in the formula above. Basically, I don't want to hard code "15
and "30" into the formula above.

Any suggestions? Thanks
 
=COUNTIF(INDIRECT("DataWorkSheet!L$"&A1&":L$"&A2&",$A16"))/$B$10



--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top