#1   Report Post  
Posted to microsoft.public.excel.misc
Brento
 
Posts: n/a
Default #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

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default #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)


  #3   Report Post  
Posted to microsoft.public.excel.misc
flummi
 
Posts: n/a
Default #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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Risk Issues register sacrum Excel Discussion (Misc queries) 4 January 19th 06 12:25 PM
Issues in Opening a file Manish Bajpai Excel Worksheet Functions 0 January 17th 06 02:45 PM
Issues with saving text file Shane Malden Excel Worksheet Functions 0 October 25th 05 04:37 PM
Compatibility issues with macros (2000 vs. 2003)? Lori Smith Excel Discussion (Misc queries) 3 August 25th 05 08:10 PM
Suggestions for creating Issues Log using Excel? Deb Excel Worksheet Functions 1 March 14th 05 03:38 PM


All times are GMT +1. The time now is 10:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"