Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7,247
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display value from another workbook, if less than display a blank aldutson Excel Worksheet Functions 2 July 27th 06 08:45 AM
how to get excel to display blank if reference cell blank silent1(not) Excel Worksheet Functions 1 December 2nd 05 02:49 PM
Modify a Formula to Display Blank carl Excel Worksheet Functions 2 July 13th 05 02:22 PM
How to display a blank cell with no error message Juco Excel Worksheet Functions 11 January 31st 05 08:24 AM
I need a VLOOKUP to display 0 or blank instead of N/A Rachel Excel Discussion (Misc queries) 3 January 8th 05 07:33 PM


All times are GMT +1. The time now is 02:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"