Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Bruce
 
Posts: n/a
Default average by operand

I have a column with percentages that are positive and negative.
How do I calculate the Average of the postive's and an Average of the
Negatives?

Bruce


  #2   Report Post  
RagDyer
 
Posts: n/a
Default

One way:

=SUMIF(B1:B100,"0")/COUNTIF(B1:B100,"0")
=SUMIF(B1:B100,"<0")/COUNTIF(B1:B100,"<0")

--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"Bruce" wrote in message
...
I have a column with percentages that are positive and negative.
How do I calculate the Average of the postive's and an Average of the
Negatives?

Bruce


  #3   Report Post  
BenjieLop
 
Posts: n/a
Default


Bruce Wrote:
I have a column with percentages that are positive and negative.
How do I calculate the Average of the postive's and an Average of the
Negatives?

Bruce



If the numbers are in, say, A1:A100, then your formulas a

For the positives: =sumif(A1:A100,"0")/countif(A1:A100,"0")

For the negatives, just simply replace "0" with "<0"


--
BenjieLop


------------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019
View this thread: http://www.excelforum.com/showthread...hreadid=275508

  #4   Report Post  
Ken Wright
 
Posts: n/a
Default

=AVERAGE(IF(A1:A200,A1:A20))
=AVERAGE(IF(A1:A20<0,A1:A20))

array entered using CTRL+SHIFT+ENTER, but what about the 0s, don't they fall
into one of the camps

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------



"Bruce" wrote in message
...
I have a column with percentages that are positive and negative.
How do I calculate the Average of the postive's and an Average of the
Negatives?

Bruce




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004


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
Average Macro Christopher Anderson Excel Discussion (Misc queries) 2 December 22nd 04 06:43 PM
Average Column, but Skip Null and 0? JT Excel Worksheet Functions 1 November 4th 04 03:25 PM
Calculating Average Values Using Arithmetic Equations ryangruhn Excel Worksheet Functions 2 November 3rd 04 07:22 PM
Average determination Debra Excel Worksheet Functions 4 November 1st 04 01:22 PM
Average Formula Vinaya Excel Worksheet Functions 1 October 29th 04 01:53 PM


All times are GMT +1. The time now is 11:08 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"