Formula?

  • Thread starter Thread starter Pam
  • Start date Start date
P

Pam

I'm trying to add a formula in a cell which will leave
the cell blank if column A is blank. I use the following:

ActiveCell.FormulaR1C1 = "=if(+RC[-10]>0,2.5,"")"


but I get a run-time error (1004). I know the problem is
the quotes in the third argument. I tried replacing the
quotes with zero and it enters zero correctly with no
error. But I need the cell to be blank, not zero, if
column A is blank.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

formula? 2
Simple Average Question 3
VBA ln function 2
Help needed 0
need formula help 2
Formula Help 9
need help with formula 7
Formula returning a blank cell if answer is zero 7

Back
Top