Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 58
Default How do I stop #DIV/0! when some of my values are zero?

I wrote the following formula
=(B20/N20)+(C20/O20)+(D20/P20)+(E20/Q20)+(F20/R20)+(G20/S20)+(H20/T20)+(I20/U20)+(J20/V20).
The problem I am having is that if any of these cells have zeros or no
values in them then I receive #DIV/0! error message. All of these
fields will not always be filled in so I need it to ignore the
empty/zeroed out fields.

I appreciate any suggentions.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 64
Default How do I stop #DIV/0! when some of my values are zero?

one way

=if(n20=0,0,B20/N20)+if(o20=0,0,C20/O20)+if(p20=0,0,D20/P20)+if(q20=0,0,E20/Q20)+if(r20=0,0,F20/R20)+if(s20=0,0,G20/S20)+if(t20=0,0,H20/T20)+if(u20=0,0,I20/U20)+if(v20=0,0,J20/V20).

"japc90" wrote:

I wrote the following formula
=(B20/N20)+(C20/O20)+(D20/P20)+(E20/Q20)+(F20/R20)+(G20/S20)+(H20/T20)+(I20/U20)+(J20/V20).
The problem I am having is that if any of these cells have zeros or no
values in them then I receive #DIV/0! error message. All of these
fields will not always be filled in so I need it to ignore the
empty/zeroed out fields.

I appreciate any suggentions.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 58
Default How do I stop #DIV/0! when some of my values are zero?

THANKS!!! Worked perfect.
duane wrote:
one way

=if(n20=0,0,B20/N20)+if(o20=0,0,C20/O20)+if(p20=0,0,D20/P20)+if(q20=0,0,E20/Q20)+if(r20=0,0,F20/R20)+if(s20=0,0,G20/S20)+if(t20=0,0,H20/T20)+if(u20=0,0,I20/U20)+if(v20=0,0,J20/V20).

"japc90" wrote:

I wrote the following formula
=(B20/N20)+(C20/O20)+(D20/P20)+(E20/Q20)+(F20/R20)+(G20/S20)+(H20/T20)+(I20/U20)+(J20/V20).
The problem I am having is that if any of these cells have zeros or no
values in them then I receive #DIV/0! error message. All of these
fields will not always be filled in so I need it to ignore the
empty/zeroed out fields.

I appreciate any suggentions.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default How do I stop #DIV/0! when some of my values are zero?

How about this shorter *array* formula:

=SUM(IF((N20:V200)*(B20:J200),B20:J20/N20:V20))

--
Array formulas must be entered with CSE, <Ctrl <Shift <Enter, instead of
the regular <Enter, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually.
You *must also* use CSE when revising the formula.


--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"japc90" wrote in message
ups.com...
THANKS!!! Worked perfect.
duane wrote:
one way


=if(n20=0,0,B20/N20)+if(o20=0,0,C20/O20)+if(p20=0,0,D20/P20)+if(q20=0,0,E20/
Q20)+if(r20=0,0,F20/R20)+if(s20=0,0,G20/S20)+if(t20=0,0,H20/T20)+if(u20=0,0,
I20/U20)+if(v20=0,0,J20/V20).

"japc90" wrote:

I wrote the following formula

=(B20/N20)+(C20/O20)+(D20/P20)+(E20/Q20)+(F20/R20)+(G20/S20)+(H20/T20)+(I20/
U20)+(J20/V20).
The problem I am having is that if any of these cells have zeros or no
values in them then I receive #DIV/0! error message. All of these
fields will not always be filled in so I need it to ignore the
empty/zeroed out fields.

I appreciate any suggentions.




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 generate a list from a range of values robo7084 Excel Worksheet Functions 2 July 6th 06 01:48 AM
Keeping a cell value constant trhoughout a list of values borikua05 Excel Worksheet Functions 2 December 3rd 05 03:03 PM
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 6 November 29th 05 03:27 PM
#N/A Values : Returned by Formulas vs Entered Manually monir Charts and Charting in Excel 8 July 7th 05 01:16 AM
how do I stop this appearing.......#DIV/0! Scudo New Users to Excel 5 July 3rd 05 01:14 AM


All times are GMT +1. The time now is 07:40 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"