Supress DIV/0

C

Colin Hayes

HI

My formula in F3 is

=IF(B3="W",(SUM(C3/E3)*D3),C3*-1)

How can I amend this to suppress the DIV/0 error when I put "W" in B3?

I've seen various formulae which suggest they can do this , but can't
see how to merge them into the existing formula.


Grateful for any help.



Best Wishes
 
C

Claus Busch

Hi Colin,

Am Tue, 8 Oct 2013 19:21:38 +0100 schrieb Colin Hayes:
=IF(B3="W",(SUM(C3/E3)*D3),C3*-1)

How can I amend this to suppress the DIV/0 error when I put "W" in B3?

for versions 2007 or later:
=IFERROR(IF(B3="W",C3/E3*D3,-C3),"")

Other versions:
=IF(E3=0,"",IF(B3="W",C3/E3*D3,-C3))


Regards
Claus B.
 
C

Colin Hayes

Claus Busch said:
Hi Colin,

Am Tue, 8 Oct 2013 19:21:38 +0100 schrieb Colin Hayes:


for versions 2007 or later:
=IFERROR(IF(B3="W",C3/E3*D3,-C3),"")

Other versions:
=IF(E3=0,"",IF(B3="W",C3/E3*D3,-C3))


Regards
Claus B.

Hi

Perfect solutions. Thank you.



Best Wishes
 

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