Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I generate a list from a range of values | Excel Worksheet Functions | |||
Keeping a cell value constant trhoughout a list of values | Excel Worksheet Functions | |||
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row | Excel Worksheet Functions | |||
#N/A Values : Returned by Formulas vs Entered Manually | Charts and Charting in Excel | |||
how do I stop this appearing.......#DIV/0! | New Users to Excel |