A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

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



 
 
Thread Tools Display Modes
  #1  
Old February 12th, 2007, 06:56 PM posted to microsoft.public.excel.worksheet.functions
Brooks W.
external usenet poster
 
Posts: 8
Default #DIV/0! Error - Need to display 0 or blank

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.
--
Brooks W.
  #2  
Old February 12th, 2007, 07:13 PM posted to microsoft.public.excel.worksheet.functions
Chip Pearson
external usenet poster
 
Posts: 1,343
Default #DIV/0! Error - Need to display 0 or blank

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)

"Brooks W." wrote in message
...
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.
--
Brooks W.



  #3  
Old February 12th, 2007, 07:16 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default #DIV/0! Error - Need to display 0 or blank

Try this:

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

Hope this helps.

Pete

On Feb 12, 6:56 pm, Brooks W.
wrote:
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.
--
Brooks W.



  #4  
Old February 12th, 2007, 07:18 PM posted to microsoft.public.excel.worksheet.functions
Dave F
external usenet poster
 
Posts: 2,722
Default #DIV/0! Error - Need to display 0 or blank

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
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"Brooks W." wrote:

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.
--
Brooks W.

  #5  
Old February 12th, 2007, 07:20 PM posted to microsoft.public.excel.worksheet.functions
bj
external usenet poster
 
Posts: 1,451
Default #DIV/0! Error - Need to display 0 or blank

try = if(isnumber(j2),SUMIF(A2:A98,I2,F2:F98)/J2,"")

"Brooks W." wrote:

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.
--
Brooks W.

  #6  
Old February 14th, 2007, 03:36 PM posted to microsoft.public.excel.worksheet.functions
Brooks W.
external usenet poster
 
Posts: 8
Default #DIV/0! Error - Need to display 0 or blank

Thanks it worked and was easy to correct all the cells I need to correct.
--
Brooks W.


"Chip Pearson" wrote:

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)

"Brooks W." wrote in message
...
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.
--
Brooks W.




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:03 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.