dynamic row declaration

akkinarula

New Member
Joined
Sep 2, 2011
Messages
27
i have following formula but in the following R10C2 is dynamic means R10 changes from R11 ,R12,and so on can i declared it as R where 'i' is taken from loop if there r any other way then plz sugest me

ActiveCell.FormulaR1C1 = _
"=COUNTIF('Customer''s Details'!R13C53:R262C53,(CONCATENATE(R10C2,R9C7)))"


thanks.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
You need to do the concatenation in the code, not in the formula.

Where us this formula going to go?

Is it copied down a column?

If it is you might not need a loop, Excel should automatically change the row reference just as it does when you manually copy down a formula.

The only problem would be if the reference that needs to be changed was absolute.

I'm not too good with R1C1 so can't tell if that's the case.:eek:
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,865
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top