ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Averaging Error (https://www.excelbanter.com/excel-programming/346805-averaging-error.html)

Darren

Averaging Error
 
Is there a way to ignore cells with a #DIV/0 error when I am trying to get an
average? I have cells B2:V2 that may have a number or the error referenced
above. In cell, W2, I want to find the average of the cells and ignore the
cells with the eror message.

Max

Averaging Error
 
One way ..

Try in W2, array-entered (press CTRL+SHIFT+ENTER):
=AVERAGE(IF(ISNUMBER(B2:V2),B2:V2))
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Darren" wrote in message
...
Is there a way to ignore cells with a #DIV/0 error when I am trying to get

an
average? I have cells B2:V2 that may have a number or the error referenced
above. In cell, W2, I want to find the average of the cells and ignore the
cells with the eror message.




Darren

Averaging Error
 
That is perfect - Thanks Max

"Max" wrote:

One way ..

Try in W2, array-entered (press CTRL+SHIFT+ENTER):
=AVERAGE(IF(ISNUMBER(B2:V2),B2:V2))
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Darren" wrote in message
...
Is there a way to ignore cells with a #DIV/0 error when I am trying to get

an
average? I have cells B2:V2 that may have a number or the error referenced
above. In cell, W2, I want to find the average of the cells and ignore the
cells with the eror message.





Max

Averaging Error
 
Glad it helped !
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Darren" wrote in message
...
That is perfect - Thanks Max





All times are GMT +1. The time now is 05:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com