Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Cell Formula
Hello,
I want to put a formula in a cell based on an actual row or column number. I tried this, where FR = 3 in the code. Cells(10 2).FormulaR1C1 = "= r[" & FR & "]c" It gives me =B17 in the cell, not =B3 as I want. Any help? Thanks. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Cell Formula
Hi
When the final formula is of the form =R[2]c, the row will be offset by the number inside the square brackets and column will remain the same. If you want to fix the row to be 3 then your final formula should read =R3c. Hence "= r" & FR & "c" should work. Alok "Bill" wrote: Hello, I want to put a formula in a cell based on an actual row or column number. I tried this, where FR = 3 in the code. Cells(10 2).FormulaR1C1 = "= r[" & FR & "]c" It gives me =B17 in the cell, not =B3 as I want. Any help? Thanks. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Cell Formula
Cells(10, 2).FormulaR1C1 = "= r" & FR & "c"
-- HTH RP (remove nothere from the email address if mailing direct) "Bill" wrote in message k.net... Hello, I want to put a formula in a cell based on an actual row or column number. I tried this, where FR = 3 in the code. Cells(10 2).FormulaR1C1 = "= r[" & FR & "]c" It gives me =B17 in the cell, not =B3 as I want. Any help? Thanks. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Cell Formula
One mo
Cells(10, 2).Formula = "=B" & FR Bill wrote: Hello, I want to put a formula in a cell based on an actual row or column number. I tried this, where FR = 3 in the code. Cells(10 2).FormulaR1C1 = "= r[" & FR & "]c" It gives me =B17 in the cell, not =B3 as I want. Any help? Thanks. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How can I make a blank cell in a formula cell with a range of cell | Excel Discussion (Misc queries) | |||
adding a formula in a cell but when cell = 0 cell is blank | Excel Worksheet Functions | |||
Cell Formula reference to cell Based On third Cell Content | Excel Discussion (Misc queries) | |||
Cell Formula reference to cell Based On third Cell Content | Excel Discussion (Misc queries) | |||
Question: Cell formula or macro to write result of one cell to another cell | Excel Programming |