absolute R1C1 reference

almagg

Well-known Member
Joined
Aug 21, 2002
Messages
705
say in cell C93 I have a total
then in D94:V94 I have subtotal sums
in D95:V94 i have subtotal average which is not correct in this case because it does not count empty cells.

so i wrote this but i need the denominator5 to be an absolute reference

Range(Selection, Selection(1, 19)).FormulaR1C1 = "=(R[-1]C)/(R[-2]C[-1])"

i D95 is this formula which is correct

=(D94)/(C93)

but in E95 is this: (E94)/(D93)

and i need the denominator to remain C93

and i have several groups so i don't know the roe or i could find it with selection.row but ya know...
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

almagg

Well-known Member
Joined
Aug 21, 2002
Messages
705
i got it.
as usual making it more difficult than it was.

For i = 2 To 21
Selection.Offset(2, i) = (Selection.Offset(1, i)) / intTechCount
Next i
 

Watch MrExcel Video

Forum statistics

Threads
1,130,046
Messages
5,639,757
Members
417,108
Latest member
Thein Than

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
Top