Using "IF" function for formating

  • Thread starter Thread starter Chris W
  • Start date Start date
C

Chris W

I have done this once before and cant figure it out now.

I am trying to have a group of cells show up as blank
instead of #DIV/0! if a portion of the formula is null.
I have 4 colums that caculate price based on a quantity.
If no quantity is listed for that colum, I want the
result cells blank.
 
Chris

One way:

=IF(ISERROR(your formula),"",your formula)

More specifically:

=IF(B1=0,"",A1/B1)

You need to check the divisor for being 0 ... if you divide by zero, you get
#DIV/0!

Regards

Trevor
 
Thanks, that worked.
-----Original Message-----
Hi
try something like
=IF(OR(C1=0,C1=""),"",A1/C1)

--
Regards
Frank Kabel
Frankfurt, Germany


.
 

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


Back
Top