#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 516
Default Average

How can I get a average of a row without the cells that contain 0?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Average

=SUMIF(A2:E2,"<0")/COUNTIF(A2:E2,"<0")

you can also use an array formula like


=AVERAGE(IF(2:2<0,2:2))

entered with ctrl + shift & enter


--


Regards,


Peo Sjoblom



"Matt" wrote in message
...
How can I get a average of a row without the cells that contain 0?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Average

=sum(1:1)/(count(1:1)-countif(1:1,0))

(if you're looking at row 1)

Matt wrote:

How can I get a average of a row without the cells that contain 0?


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 516
Default Average

What I have is the average of C38:p38 I dont want to average any 0 that may
showup in these cells..

"Peo Sjoblom" wrote:

=SUMIF(A2:E2,"<0")/COUNTIF(A2:E2,"<0")

you can also use an array formula like


=AVERAGE(IF(2:2<0,2:2))

entered with ctrl + shift & enter


--


Regards,


Peo Sjoblom



"Matt" wrote in message
...
How can I get a average of a row without the cells that contain 0?




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 516
Default Average

Thanks I just got it to work

"Dave Peterson" wrote:

=sum(1:1)/(count(1:1)-countif(1:1,0))

(if you're looking at row 1)

Matt wrote:

How can I get a average of a row without the cells that contain 0?


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Average

change A2:E2 to C38:P38 in both spots and test it out.

Matt wrote:

What I have is the average of C38:p38 I dont want to average any 0 that may
showup in these cells..

"Peo Sjoblom" wrote:

=SUMIF(A2:E2,"<0")/COUNTIF(A2:E2,"<0")

you can also use an array formula like


=AVERAGE(IF(2:2<0,2:2))

entered with ctrl + shift & enter


--


Regards,


Peo Sjoblom



"Matt" wrote in message
...
How can I get a average of a row without the cells that contain 0?





--

Dave Peterson
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
A formula to AVERAGE IF but only average a set number of values [email protected] Excel Worksheet Functions 2 January 31st 08 08:28 PM
Find monthly average but have average automatically configured kimbafred Excel Discussion (Misc queries) 2 August 8th 07 12:28 AM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 03:59 PM
Weighed Average of a weiged average when there are blanks krl - ExcelForums.com Excel Discussion (Misc queries) 1 July 6th 05 07:37 PM
how does one convert text to a formula "average(A:A)" to =average( phshirk Excel Worksheet Functions 4 April 14th 05 01:20 AM


All times are GMT +1. The time now is 10:22 AM.

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

About Us

"It's about Microsoft Excel"