ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   #DIV0/! issues (https://www.excelbanter.com/excel-discussion-misc-queries/68896-div0-issues.html)

Brento

#DIV0/! issues
 

Hello,

I am having problems with div0's in my formulars.

Firstly I need to write the formular that says average a row of data
and exclude div0s.

Secondly on a simple formular such as sum(a2/a1) with out data added in
cells a1 and a2 will result in a div/0 and i need it to result in a
blank cell and not zero.


any help would be great as I have tried to figure this out for myself
for hours?
thanks
Brent


--
Brento
------------------------------------------------------------------------
Brento's Profile: http://www.excelforum.com/member.php...o&userid=25213
View this thread: http://www.excelforum.com/showthread...hreadid=507504


Bob Phillips

#DIV0/! issues
 

"Brento" wrote in
message ...

Hello,

I am having problems with div0's in my formulars.

Firstly I need to write the formular that says average a row of data
and exclude div0s.


=IF(COUNT(2:2)=0,"",AVERAGE(2:2))

Secondly on a simple formular such as sum(a2/a1) with out data added in
cells a1 and a2 will result in a div/0 and i need it to result in a
blank cell and not zero.


=IF(A1=0,"",A2/A1)



flummi

#DIV0/! issues
 
As far as I can see the function works correct.

Values in A1 to A7:
1

3
5

6
7
=average(A:A) gives 4.4 which seems correctly.

For the second problem if you want results only for numeric data in A1
and B1 use this

=IF(AND(ISNUMBER(A1),ISNUMBER(B1)),B1/A1,"")

Hans



All times are GMT +1. The time now is 06:59 PM.

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