| Member with 8,249 posts. | | Join Date: Jul 2005 Location: The void AKA edge of the Fens Experience: I bent my wookie :( | |
Try this in place of your original COUNTIF:
=COUNTIF(INDIRECT("A10:A"&A2),A1)
(the section "A10:A"&A2 builds a literal string that "responds to" A2 value ; then you just throw in INDIRECT to make it work "for real")
Rgds,
Andy
EDIT: you may prefer a different approach:
=COUNTIF(var_Range,A1)
, where the defined name var_Range refers to:
=OFFSET(Sheet1!$A$10,0,0,Sheet1!$A$2-9,1)
You can test the dynamic range "effect" by entering 12 in A2, pressing F5, typing var_Range and pressing Enter. Then repeat with 15 in A2. Etc., etc.
Last edited by bomb #21; 25-Mar-2006 at 07:10 PM..
|