ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   help on Converting R1C1 to A1 and A1 to R1C1..tia sa2 (https://www.excelbanter.com/excel-discussion-misc-queries/158071-help-converting-r1c1-a1-a1-r1c1-tia-sa2.html)

temp

help on Converting R1C1 to A1 and A1 to R1C1..tia sa2
 
Greets All,
I'm looking for a formula of VB script in excel to calculate between reference style and formula style tia sal2
Example If A1:Q18 is typed in I would like R1C1:R18C17 to show up or vise a versa in another cell...can this be done?
Also can I add rows and coumns togather.
Example can I do this R1C1 + R2C3 = R3C4 or A1 + B2 = C3
Tia
sal2

Bill Renaud

help on Converting R1C1 to A1 and A1 to R1C1..tia sa2
 
If you type in the formula in absolute form (i.e. "=$A$1:$Q$18), then
pull down the Tools menu, select Options, then click on the General tab,
then check the "R1C1 reference style, you will see "=R1C1:R18C17" in the
formula bar. Copy and paste from there.

If you leave the formula in relative form (i.e. "=A1:Q18"), you will get
"==RC:R[17]C[16]".
--
Regards,
Bill Renaud




Bill Renaud

help on Converting R1C1 to A1 and A1 to R1C1..tia sa2
 
sal2 wrote:
<<Example can I do this R1C1 + R2C3 = R3C4 or A1 + B2 = C3

You can't have operators on the left side of an equation.
Otherwise see my previous reply about using absolute/relative
references.
--
Regards,
Bill Renaud




Charles Williams

help on Converting R1C1 to A1 and A1 to R1C1..tia sa2
 
You can use Application.convertformula in VBA

MsgBox Application.ConvertFormula(ActiveCell.Formula, xlA1, xlR1C1)

MsgBox Application.ConvertFormula("=R" & (1 + 2) & "C" & (1 + 3), xlR1C1,
xlA1)


Charles
______________________
Decision Models
FastExcel 2.3 now available
Name Manager 4.0 now available
www.DecisionModels.com

"temp" wrote in message
m...
Greets All,
I'm looking for a formula of VB script in excel to calculate between
reference style and formula style tia sal2
Example If A1:Q18 is typed in I would like R1C1:R18C17 to show up or vise
a versa in another cell...can this be done?
Also can I add rows and coumns togather.
Example can I do this R1C1 + R2C3 = R3C4 or A1 + B2 = C3
Tia
sal2





All times are GMT +1. The time now is 07:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com