want to return "n/a" or "0"

E

edrachel

Hi, I am trying to do a formula that will either return a percentage or
if either of two cells are blank, then I want it to return either a "0"
or "n/a". Here is my formula =(J5/H5)-100% (this gives me the
recipacal of the percentage). It works fine. Now what do I add to get
it to return either "0" or "n/a" if either J5 or H5 is blank or both are
blank? Hope this makes sense. Background - I am trying to divide one
number by another to get the percentage of the difference 8/10-100%=20%
but if there are no numbers in the cells and nothing to divide, then I
want it to return "0" or "n/a".

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

Similar Threads


Top