Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Todd
 
Posts: n/a
Default how to sum cells and ignore the #div/0! 's ?

I have a column of data that links to another sheet I need a ytd total for.
The problem is that the cells contain formulas (on the feeding sheet) that
return #div/0! until the date has passed and data is entered into its
referring cells.

Is there a way I can sum these columns and ignore the #div/0! 's ? I had
been using a simple a20+a40+a60 type formula.

Thanks,


Todd
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

I'd recommend that you fix the #DIV/0s instead - it's generally bad
practice to have "expected errors" on your sheet - it tends to mask or
desensitize one to other problems.

For instance, if you have something like

=A1/B1

where B1 is zero until a certain date, use

=IF(B10, A1/B1,"")

You can then use SUM, which ignores text.



In article ,
"Todd" wrote:

I have a column of data that links to another sheet I need a ytd total for.
The problem is that the cells contain formulas (on the feeding sheet) that
return #div/0! until the date has passed and data is entered into its
referring cells.

Is there a way I can sum these columns and ignore the #div/0! 's ? I had
been using a simple a20+a40+a60 type formula.

  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Only way would be to use

=SUMIF(Range,"<#DIV/0!")

but better would be to eliminate the errors by using

=IF(B1=0,0,A1/B1)

so if the cell you are dividing with is zero or blank, 0, otherwise your
formula


Regards,

Peo Sjoblom

"Todd" wrote:

I have a column of data that links to another sheet I need a ytd total for.
The problem is that the cells contain formulas (on the feeding sheet) that
return #div/0! until the date has passed and data is entered into its
referring cells.

Is there a way I can sum these columns and ignore the #div/0! 's ? I had
been using a simple a20+a40+a60 type formula.

Thanks,


Todd

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 921
Default how to sum cells and ignore the #div/0! 's ?

I have a question too, can someone help me?
My problem is if : =(N35*2+M35) / L35+K35 where L35 = 0 and K35 = 0%, how
should i put it correctly? (both N35 & M35 have a figure)

"Peo Sjoblom" wrote:

Only way would be to use

=SUMIF(Range,"<#DIV/0!")

but better would be to eliminate the errors by using

=IF(B1=0,0,A1/B1)

so if the cell you are dividing with is zero or blank, 0, otherwise your
formula


Regards,

Peo Sjoblom

"Todd" wrote:

I have a column of data that links to another sheet I need a ytd total for.
The problem is that the cells contain formulas (on the feeding sheet) that
return #div/0! until the date has passed and data is entered into its
referring cells.

Is there a way I can sum these columns and ignore the #div/0! 's ? I had
been using a simple a20+a40+a60 type formula.

Thanks,


Todd

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default how to sum cells and ignore the #div/0! 's ?

=IF(L35=0,"",(N35*2+M35) / L35+K35)

I've tested only for L35 being 0, not K35, because you are not dividing by
anything involving K35, but as you mention K35 and it is a percentage, I
wonder whether you actually intended not
=(N35*2+M35) / L35+K35
but
=(N35*2+M35) / (L35*(1+K35))
in which case, change my formula to
=IF(L35=0,"",(N35*2+M35) / (L35*(1+K35)))
in which case you're still not worried if K35 is 0, unless L35 is also 0.

If you need to cope with the case where K35 is -100%, you could use
=IF(L35*(1+K35)=0,"",(N35*2+M35) / (L35*(1+K35)))
--
David Biddulph


"Jeff" wrote in message
...
I have a question too, can someone help me?
My problem is if : =(N35*2+M35) / L35+K35 where L35 = 0 and K35 = 0%, how
should i put it correctly? (both N35 & M35 have a figure)

"Peo Sjoblom" wrote:

Only way would be to use

=SUMIF(Range,"<#DIV/0!")

but better would be to eliminate the errors by using

=IF(B1=0,0,A1/B1)

so if the cell you are dividing with is zero or blank, 0, otherwise your
formula


Regards,

Peo Sjoblom

"Todd" wrote:

I have a column of data that links to another sheet I need a ytd total
for.
The problem is that the cells contain formulas (on the feeding sheet)
that
return #div/0! until the date has passed and data is entered into its
referring cells.

Is there a way I can sum these columns and ignore the #div/0! 's ? I
had
been using a simple a20+a40+a60 type formula.

Thanks,


Todd





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default how to sum cells and ignore the #div/0! 's ?

What result do you want if L35 = 0 and K35 = 0%?

This will return a blank cell:

=IF(L35+K35=0,"",(N35*2+M35) / L35+K35)

--
Biff
Microsoft Excel MVP


"Jeff" wrote in message
...
I have a question too, can someone help me?
My problem is if : =(N35*2+M35) / L35+K35 where L35 = 0 and K35 = 0%, how
should i put it correctly? (both N35 & M35 have a figure)

"Peo Sjoblom" wrote:

Only way would be to use

=SUMIF(Range,"<#DIV/0!")

but better would be to eliminate the errors by using

=IF(B1=0,0,A1/B1)

so if the cell you are dividing with is zero or blank, 0, otherwise your
formula


Regards,

Peo Sjoblom

"Todd" wrote:

I have a column of data that links to another sheet I need a ytd total
for.
The problem is that the cells contain formulas (on the feeding sheet)
that
return #div/0! until the date has passed and data is entered into its
referring cells.

Is there a way I can sum these columns and ignore the #div/0! 's ? I
had
been using a simple a20+a40+a60 type formula.

Thanks,


Todd



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default how to sum cells and ignore the #div/0! 's ?



"Todd" wrote:

I have a column of data that links to another sheet I need a ytd total for.
The problem is that the cells contain formulas (on the feeding sheet) that
return #div/0! until the date has passed and data is entered into its
referring cells.

Is there a way I can sum these columns and ignore the #div/0! 's ? I had
been using a simple a20+a40+a60 type formula.

Thanks,


Todd

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
How do I sum an array of cells, even if some of them are #N/A René Excel Discussion (Misc queries) 5 January 18th 05 02:28 PM
Trendlines to ignore empty cells Hoochi Coochi Man Charts and Charting in Excel 7 January 14th 05 01:31 PM
Using color to ignore cells in a formula????? Mike A. Excel Discussion (Misc queries) 2 December 8th 04 05:35 PM


All times are GMT +1. The time now is 12:51 PM.

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"