Variable Cell Refs

  • Thread starter Thread starter Craig
  • Start date Start date
C

Craig

How can I change the cell ref of a formula to one that is stored in another
cell?
e.g. I want to do a

COUNTIF(B1:B*x*,">0")

where the value of *x* has been manually input in A1

TIA
Craig
 
Craig,

Use the INDIRECT function to convert a text string in to an
actual range address:

=COUNTIF(INDIRECT("B1:B"&A1),">0")

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

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

Similar Threads

Excel Copy COUNTIF while retaining reference 7
Excel Need Countifs Formula Help 0
How to create a variable selected range 9
A data validation question 1
need macro for fill down 1
#REF! error 1
check cell for #REF! 1
Moving Cell Values 2

Back
Top