ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   #DIV error (https://www.excelbanter.com/excel-worksheet-functions/448986-div-error.html)

[email protected]

#DIV error
 
Been a while since i used Excel formula's. Looking for help if possible with the below please guys.

Formula if a straight forward average formula, the issue is I want the formula to show a 0 or blank cell if the formula is not able to be applied due to there being data other than number in the cells. So the cell can contain a number or NR or N/R.

So the formula I have that isn't working is:
=AVERAGE(E7:N7), IF(E:G,"N/R"or"HR","")

Any ideas?





Claus Busch

#DIV error
 
Hi,

Am Wed, 10 Jul 2013 08:38:47 -0700 (PDT) schrieb
:

So the formula I have that isn't working is:
=AVERAGE(E7:N7), IF(E:G,"N/R"or"HR","")


if you have a Excel version 2007 your newer try:
=IFERROR(AVERAGE(E7:N7),0)
else try:
=IF(ISERROR(AVERAGE(E7:N7)),0,AVERAGE(E7:N7))


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2

Ange2011

#DIV error
 
Fantastic that worked :-)

Thanks for taking the time to respond.


All times are GMT +1. The time now is 11:34 AM.

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