Using "IF" function for formating

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.
 
T

Trevor Shuttleworth

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
 

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