How to use r1c1 to reference negative absolute column?

QuantBurner

New Member
Joined
Jan 29, 2011
Messages
42
Hi,
I need to do this:
With .Range(.Cells(j + 1, 14), .Cells(j + 1, 18))
.FormulaR1C1 = "=r[-1]c[]/indirect(""I""&match(""gbp/""&r[-1]c-1,c-5:c-5,0)+1)"
End With

Which gives an error because of the c-1

Any tips?

Cheers
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
It occurs to me I can set a couple of variables to negative values like this:
dim a,b as integer
a=-1
b=-5
.
.
....c" & a & "....

But, there's gotta be an easier way, eh?
 
Upvote 0
For an absolute reference use C1 for column A, C2 for column B etc. If you record a macro while entering the formula manually you will get the syntax.
 
Upvote 0

Forum statistics

Threads
1,224,617
Messages
6,179,915
Members
452,949
Latest member
beartooth91

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