#DIV/0! Error - Need to display 0 or blank

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have the following formula used to compare a list of vendors to entered
data and the make the calculation.

=SUMIF(A2:A98,I2,F2:F98)/J2

I want the cell to display either blank or 0. Is there a quick way to
changer this without using the ISERROR function?

There are currently 32 cells with this formula and could be added to as we
add vendors.

Thanks for any insights.
 
Try

=IF(J2=0,0,SUMIF(A2:A98,I2,F2:F98)/J2)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)
 
In order to avoid errors from appearing you need to trap them.

This is done either with the syntax =IF(ISERROR([function]),0,[function])

OR

=IFERROR([function],0) if you're using Excel 2007.

Dave
 
Back
Top