Home |
Search |
Today's Posts |
#1
|
|||
|
|||
#DIV/0 ERROR in AVERAGING
I am creating a worksheet for 2005 calendar year that shows averages.
AVERAGE(C6:AG6) However, when I the cells are empty the #div/0! displays. I have been trying to do the IF Function to display a 0 if there is nothing to Average. Any help is greatly appreciated. Thanks, Patty R. |
#2
|
|||
|
|||
=IF(SUM(C6:AG6)=0,0,AVERAGE(C6:AG6))
-- HTH RP (remove nothere from the email address if mailing direct) "Patty R." <Patty wrote in message ... I am creating a worksheet for 2005 calendar year that shows averages. AVERAGE(C6:AG6) However, when I the cells are empty the #div/0! displays. I have been trying to do the IF Function to display a 0 if there is nothing to Average. Any help is greatly appreciated. Thanks, Patty R. |
#3
|
|||
|
|||
One way - which will still show errors in averaging if they occur (as
opposed to IF(ISERROR(....) ) ; =IF(SUMPRODUCT(--(C6:AG6=""))=COLUMNS(C6:AG6),0,AVERAGE(C6:AG6)) "Patty R." <Patty wrote in message ... I am creating a worksheet for 2005 calendar year that shows averages. AVERAGE(C6:AG6) However, when I the cells are empty the #div/0! displays. I have been trying to do the IF Function to display a 0 if there is nothing to Average. Any help is greatly appreciated. Thanks, Patty R. |
#4
|
|||
|
|||
=IF(ISERR(AVERAGE(C6:AG6)),0,AVERAGE(C6:AG6)) Vaya con Dios, Chuck, CABGx3 "Patty R." <Patty wrote in message ... I am creating a worksheet for 2005 calendar year that shows averages. AVERAGE(C6:AG6) However, when I the cells are empty the #div/0! displays. I have been trying to do the IF Function to display a 0 if there is nothing to Average. Any help is greatly appreciated. Thanks, Patty R. |
#5
|
|||
|
|||
Or somewhat shorter and probably faster
=IF(COUNT(C6:AG6),AVERAGE(C6:AG6),0) -- Regards, Peo Sjoblom "CLR" wrote in message ... =IF(ISERR(AVERAGE(C6:AG6)),0,AVERAGE(C6:AG6)) Vaya con Dios, Chuck, CABGx3 "Patty R." <Patty wrote in message ... I am creating a worksheet for 2005 calendar year that shows averages. AVERAGE(C6:AG6) However, when I the cells are empty the #div/0! displays. I have been trying to do the IF Function to display a 0 if there is nothing to Average. Any help is greatly appreciated. Thanks, Patty R. |
#6
|
|||
|
|||
Patty
=IF(ISERROR(AVERAGE(C6:AG6)), 0,AVERAGE(C6:AG6)) Based on your question, this will give month-to-date average. You need to be mindful that a zero needs to be entered as approproate to maintain a proper running average. Steve "Patty R." <Patty wrote in message ... I am creating a worksheet for 2005 calendar year that shows averages. AVERAGE(C6:AG6) However, when I the cells are empty the #div/0! displays. I have been trying to do the IF Function to display a 0 if there is nothing to Average. Any help is greatly appreciated. Thanks, Patty R. |
#7
|
|||
|
|||
Bob:
Your formula worked for my Daily numbers. However, the cell is linked to the Monthly cell and it is not averaging correctly with the other months. Any suggestions? Patty "Bob Phillips" wrote: =IF(SUM(C6:AG6)=0,0,AVERAGE(C6:AG6)) -- HTH RP (remove nothere from the email address if mailing direct) "Patty R." <Patty wrote in message ... I am creating a worksheet for 2005 calendar year that shows averages. AVERAGE(C6:AG6) However, when I the cells are empty the #div/0! displays. I have been trying to do the IF Function to display a 0 if there is nothing to Average. Any help is greatly appreciated. Thanks, Patty R. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how to sum cells and ignore the #div/0! 's ? | Excel Worksheet Functions | |||
"Average" with error DIV/0 | Excel Discussion (Misc queries) | |||
Averaging function | Excel Discussion (Misc queries) | |||
Averaging the last 5 entries in a row | Excel Discussion (Misc queries) | |||
Averaging cells which contain #DIV/0! | Excel Worksheet Functions |