#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 181
Default #DIV/0! error

I am using the formula
=(SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data
Base 2007.xls'!sales))/SUMIF('Tech Ops Data Base
2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data Base 2007.xls'!salesWO)

However in some causes I am receiving the following error #DIV/0!. Is there
anything I can do to the above formula to remove that error

thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default #DIV/0! error

You could do it this way:

=IF(SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech
Ops Data Base 2007.xls'!salesWO)=0,"",SUMIF('Tech Ops Data Base
2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data Base 2007.xls'!sales)/
SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech Ops
Data Base 2007.xls'!salesWO)

i.e. if the denominator is zero then return a blank, otherwise do the
calculation. You can change the "" in the middle to 0 if you wish.

Another way would be to use:

=IF(ISERROR(your_formula),"",your_formula)

though this would trap all errors.

Hope this helps.

Pete

On Dec 7, 3:08 pm, Curtis wrote:
I am using the formula
=(SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data
Base 2007.xls'!sales))/SUMIF('Tech Ops Data Base
2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data Base 2007.xls'!salesWO)

However in some causes I am receiving the following error #DIV/0!. Is there
anything I can do to the above formula to remove that error

thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 180
Default #DIV/0! error

Hi Curtis,

Change your formula as
=IF(SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data
Base 2007.xls'!salesWO)=0,0,=(SUMIF('Tech Ops Data Base
2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data Base
2007.xls'!sales))/SUMIF('Tech Ops Data Base
2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data Base 2007.xls'!salesWO))

Basically I am checking if the later formula is resulting in zero before
using it in the division.
HTH,
--
Pranav Vaidya
VBA Developer
PN, MH-India
If you think my answer is useful, please rate this post as an ANSWER!!


"Curtis" wrote:

I am using the formula
=(SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data
Base 2007.xls'!sales))/SUMIF('Tech Ops Data Base
2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data Base 2007.xls'!salesWO)

However in some causes I am receiving the following error #DIV/0!. Is there
anything I can do to the above formula to remove that error

thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 181
Default #DIV/0! error

Thanks

Is there a way to exclude cells with the #DIV/0! error when using the sum
function

example =SUM(C41:H41)

"Pete_UK" wrote:

You could do it this way:

=IF(SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech
Ops Data Base 2007.xls'!salesWO)=0,"",SUMIF('Tech Ops Data Base
2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data Base 2007.xls'!sales)/
SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech Ops
Data Base 2007.xls'!salesWO)

i.e. if the denominator is zero then return a blank, otherwise do the
calculation. You can change the "" in the middle to 0 if you wish.

Another way would be to use:

=IF(ISERROR(your_formula),"",your_formula)

though this would trap all errors.

Hope this helps.

Pete

On Dec 7, 3:08 pm, Curtis wrote:
I am using the formula
=(SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data
Base 2007.xls'!sales))/SUMIF('Tech Ops Data Base
2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data Base 2007.xls'!salesWO)

However in some causes I am receiving the following error #DIV/0!. Is there
anything I can do to the above formula to remove that error

thanks



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 180
Default #DIV/0! error

if you use 0 instead of "" in the IF(), the automatically there will be no
cells with #DIV/0.

HTH,
--
Pranav Vaidya
VBA Developer
PN, MH-India
If you think my answer is useful, please rate this post as an ANSWER!!


"Curtis" wrote:

Thanks

Is there a way to exclude cells with the #DIV/0! error when using the sum
function

example =SUM(C41:H41)

"Pete_UK" wrote:

You could do it this way:

=IF(SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech
Ops Data Base 2007.xls'!salesWO)=0,"",SUMIF('Tech Ops Data Base
2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data Base 2007.xls'!sales)/
SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech Ops
Data Base 2007.xls'!salesWO)

i.e. if the denominator is zero then return a blank, otherwise do the
calculation. You can change the "" in the middle to 0 if you wish.

Another way would be to use:

=IF(ISERROR(your_formula),"",your_formula)

though this would trap all errors.

Hope this helps.

Pete

On Dec 7, 3:08 pm, Curtis wrote:
I am using the formula
=(SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data
Base 2007.xls'!sales))/SUMIF('Tech Ops Data Base
2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data Base 2007.xls'!salesWO)

However in some causes I am receiving the following error #DIV/0!. Is there
anything I can do to the above formula to remove that error

thanks





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default #DIV/0! error

=SUMIF(C41:H41,"<"&99^99)


--


Regards,


Peo Sjoblom


"Curtis" wrote in message
...
Thanks

Is there a way to exclude cells with the #DIV/0! error when using the sum
function

example =SUM(C41:H41)

"Pete_UK" wrote:

You could do it this way:

=IF(SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech
Ops Data Base 2007.xls'!salesWO)=0,"",SUMIF('Tech Ops Data Base
2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data Base 2007.xls'!sales)/
SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech Ops
Data Base 2007.xls'!salesWO)

i.e. if the denominator is zero then return a blank, otherwise do the
calculation. You can change the "" in the middle to 0 if you wish.

Another way would be to use:

=IF(ISERROR(your_formula),"",your_formula)

though this would trap all errors.

Hope this helps.

Pete

On Dec 7, 3:08 pm, Curtis wrote:
I am using the formula
=(SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech Ops
Data
Base 2007.xls'!sales))/SUMIF('Tech Ops Data Base
2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data Base 2007.xls'!salesWO)

However in some causes I am receiving the following error #DIV/0!. Is
there
anything I can do to the above formula to remove that error

thanks





  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 181
Default #DIV/0! error

Thanks

"Pranav Vaidya" wrote:

Hi Curtis,

Change your formula as
=IF(SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data
Base 2007.xls'!salesWO)=0,0,=(SUMIF('Tech Ops Data Base
2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data Base
2007.xls'!sales))/SUMIF('Tech Ops Data Base
2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data Base 2007.xls'!salesWO))

Basically I am checking if the later formula is resulting in zero before
using it in the division.
HTH,
--
Pranav Vaidya
VBA Developer
PN, MH-India
If you think my answer is useful, please rate this post as an ANSWER!!


"Curtis" wrote:

I am using the formula
=(SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data
Base 2007.xls'!sales))/SUMIF('Tech Ops Data Base
2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data Base 2007.xls'!salesWO)

However in some causes I am receiving the following error #DIV/0!. Is there
anything I can do to the above formula to remove that error

thanks

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default #DIV/0! error

If you use the formula I gave you to return either "" or 0, then this
will not have any effect on the SUM formula, so they will be ignored.

Pete

On Dec 7, 3:30 pm, Curtis wrote:
Thanks

Is there a way to exclude cells with the #DIV/0! error when using the sum
function

example =SUM(C41:H41)



"Pete_UK" wrote:
You could do it this way:


=IF(SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech
Ops Data Base 2007.xls'!salesWO)=0,"",SUMIF('Tech Ops Data Base
2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data Base 2007.xls'!sales)/
SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech Ops
Data Base 2007.xls'!salesWO)


i.e. if the denominator is zero then return a blank, otherwise do the
calculation. You can change the "" in the middle to 0 if you wish.


Another way would be to use:


=IF(ISERROR(your_formula),"",your_formula)


though this would trap all errors.


Hope this helps.


Pete


On Dec 7, 3:08 pm, Curtis wrote:
I am using the formula
=(SUMIF('Tech Ops Data Base 2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data
Base 2007.xls'!sales))/SUMIF('Tech Ops Data Base
2007.xls'!TechallDate,C$36&$A37,'Tech Ops Data Base 2007.xls'!salesWO)


However in some causes I am receiving the following error #DIV/0!. Is there
anything I can do to the above formula to remove that error


thanks- Hide quoted text -


- Show quoted text -


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
Error: "Excel encountered an error and had to remove some formatti Carl Excel Discussion (Misc queries) 0 September 18th 06 06:39 PM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
I have Error 1919 Error Configuring ODBC dataSource Database Texanna1 Excel Discussion (Misc queries) 1 September 12th 06 06:35 AM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM


All times are GMT +1. The time now is 12:55 AM.

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

About Us

"It's about Microsoft Excel"