Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

difference between formula and formulaR1C1

Status
Not open for further replies.

y2k1981

Programmer
Aug 2, 2002
773
IE
can somebody tell me in excel what the difference is between formula and formulaR1C1???

tried searching here and on google but came up with nothing

thanks in advance
 
Well, according to the VBA help files the difference is in how you write the formula. The example line for FormulaR1C1 is:

Code:
Worksheets("Sheet1").Range("B1").FormulaR1C1 = "=SQRT(R1C1)"

and for Formula it's:

Code:
Worksheets("Sheet1").Range("A1").Formula = "=$A$4+$A$10"

so it's just down to how you reference the cells - the second row on the second column is either "R2C2" or "B2" depending which method you use.

N.
 
Hi y2k1981,

The differenec between the two properties is in the reference style used. If you don't know the difference I suggest you review the Help, but briefly ..

A1 style references use letters for columns and R1C1 style references use numbers.
A1 style references are absolute and R1C1 style references can be relative.

To see the difference, put a simple formula in a cell, for example in cell A2 put &quot;=A1&quot;; switch to formula view (<CTRL><`>) then use Tools > Options > General > R1C1 Reference style to switch between the two styles.

Enjoy,
Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top