What IF - formula question

G

Guest

I need help with an IF formula question. My cell has a formula in it
=sum(H43/G43). I want this cell blank “â€
If the result is not a percentage (the cell has been formatted to be a %).
When I drag the formula to many other cells some of them are #DIV/O! and I
want those cells to be blank.

I can’t figure out how to do this. Thanks for your time and help!
 
G

Guest

except I need the G43=0 to include + & - results. I only need #div/0! to be
shown as nothing.
 
P

Pete_UK

If G43 does equal zero, then you will get #DIV/0! because you are
trying to divide by zero - the formula I suggested intercepts this and
returns a blank instead. You can't get any + & - results when G43 = 0.
Perhaps you need to re-phrase the problem and what it is you are trying
to achieve.

Pete
 
G

Guest

when i create the formula below and drag it down many rows there are rows
that have no info or words in the rows. these rows create a #div/0! result.
those are the rows that i want blank. the dozens of other rows with figures
may have a result in the positive or negative in the formula result.

if i am not clear i will start over completely. thanks Pete_UK for taking
the time.
 
D

David F Cox

Have you tried Pete's suggestion? It works for me.

=IF(G43=0,"",H43/G43)


Gene said:
when i create the formula below and drag it down many rows there are rows
that have no info or words in the rows. these rows create a #div/0!
result.
those are the rows that i want blank. the dozens of other rows with
figures
may have a result in the positive or negative in the formula result.

if i am not clear i will start over completely. thanks Pete_UK for taking
the time.
 
G

Guest

Yes it works for me too. I had tried it several times but was entering the
data in a wrong column. Thanks David & Pete.

I am so impressed with assistance by many the 3-4 times I've posted here.
Again thanks.
Gene
 
P

Pete_UK

You're welcome, Gene - keep posting!

Pete
Yes it works for me too. I had tried it several times but was entering the
data in a wrong column. Thanks David & Pete.

I am so impressed with assistance by many the 3-4 times I've posted here.
Again thanks.
Gene
 

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

Top