Super Easy Question -- "

  • Thread starter Thread starter kaon
  • Start date Start date
K

kaon

Hi all,

I want to display "N/A" whenever the denominator is zero and I wrot
such code:

Cells(c, col).Formula = _
"=IF(" & Cells(c, j + 1).Address & "=0, "N/A", ("
Cells(c, j).Address & " - " & Cells(c, j + 1).Address & ") * 100 / "
Cells(c, j + 1).Address & ")"

However, I do not know how to tell Excel that some " are escap
character, anyone that can teach me?

Thanks
 

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

Back
Top