2009-01-23 13:13:34 UTC
If I am at J154, then T=153 (do not worry that they are the same, first cell is title)
I first will go to J155 and I want to count the 100's above it
ActiveCell.FormulaR1C1 = "=COUNTIF(R[-1]C:R[-T]C,""100"")"
Ideally in excel the cell J155 will look like, "=COUNTIF(J2:J154,100)
BUT I cannot use "T" in the formula input.
How do I use a relative reference, "R[-1]C" and an absolute reference, "J2" in the same formula. OR, how do I input a variable, "T", into the formula? Any assistance would be greatly appreciated.