Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi, im using ActiveCell.FormulaR1C1 = "=IF(Results!R[-1]C[1]
<"""",Results!R[-1]C[1],"""")" which should give me =IF(Results! A3<"",Results!A3,"") but instead gives me =IF (Results!'A3'<"",Results!'A3',""). Any ideas how to get rid of those ' . Regards Robert |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry I discovered my error I was using Activecell.FormulaR1C1= "=IF
(Results!'A3'<"",Results!'A3',"")" were I should have used Activecell = "=IF(Results!'A3'<"",Results!'A3',"")". Regards robert |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I don't think so.
If you're using .formulaR1C1, then you should use R1C1 reference style. Maybe you meant that this correction worked: Activecell.Formula = "=IF(Results!A3<"""",Results!A3,"""")" You have to double up those double quotes, too. " wrote: Sorry I discovered my error I was using Activecell.FormulaR1C1= "=IF (Results!'A3'<"",Results!'A3',"")" were I should have used Activecell = "=IF(Results!'A3'<"",Results!'A3',"")". Regards robert -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ActiveCell.FormulaR1C1 = "=IF(Results!R[-1]C[1] <
"""",Results!R[-1]C[1],"""")" this does result in correct formula. "RobcPettit" wrote in message ... hi, im using ActiveCell.FormulaR1C1 = "=IF(Results!R[-1]C[1] <"""",Results!R[-1]C[1],"""")" which should give me =IF(Results! A3<"",Results!A3,"") but instead gives me =IF (Results!'A3'<"",Results!'A3',""). Any ideas how to get rid of those ' . Regards Robert |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF formula returns error; abbreviating the formula | Excel Discussion (Misc queries) | |||
Formula Error-Error Message | Excel Programming | |||
Formula expected end of statement error, typing formula into cell as part of VBA macro | Excel Programming | |||
How do I replace "#N/A" error, to continue my formula w/o error? | Excel Worksheet Functions | |||
Formula error with Mac resulting in '#NAME' error | Excel Programming |