Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
opal23k
 
Posts: n/a
Default Average of numbers within a range meeting certain criteria

I have a column of test scores - N9:N154.

Scores can be grouped into low (<=79), average (80<=x=120), and high
(=121).

I want to have one formula for each group that will find the average score
for that group.

The logic is something like:
Low group: find the average of all the scores that are less than or equal to
79 within N9:N154.
Middle group: find the average of all the scores between 80 and 120 within
N9:N154.
High group: find the average of all the scores higher than or equal to 121
within N9:N154.


  #2   Report Post  
Domenic
 
Posts: n/a
Default

Try the following formula that need to be confirmed with
CONTROL+SHIFT+ENTER, not just ENTER...

=AVERAGE(IF(N9:N154<=79,N9:N154))

=AVERAGE(IF((N9:N154=80)*(N9:N154<=120),N9:N154))

=AVERAGE(IF(N9:N154=121,N9:N154))

Hope this helps!

In article ,
"opal23k" wrote:

I have a column of test scores - N9:N154.

Scores can be grouped into low (<=79), average (80<=x=120), and high
(=121).

I want to have one formula for each group that will find the average score
for that group.

The logic is something like:
Low group: find the average of all the scores that are less than or equal to
79 within N9:N154.
Middle group: find the average of all the scores between 80 and 120 within
N9:N154.
High group: find the average of all the scores higher than or equal to 121
within N9:N154.

  #3   Report Post  
David Billigmeier
 
Posts: n/a
Default

Opal - these formulas will give you what you're after, confirm with
ctrl+shift+enter

Low Average:
=AVERAGE(IF(N9:N154<=79,N9:N154,""))

Middle Average:
=AVERAGE(IF(AND(N9:N154=80,N9:N154<=120),N9:N154, ""))

High Average:
=AVERAGE(IF(N9:N154=121,N9:N154,""))

Hope that helps,
  #4   Report Post  
opal23k
 
Posts: n/a
Default

Thank you David!

"David Billigmeier" wrote:

Opal - these formulas will give you what you're after, confirm with
ctrl+shift+enter

Low Average:
=AVERAGE(IF(N9:N154<=79,N9:N154,""))

Middle Average:
=AVERAGE(IF(AND(N9:N154=80,N9:N154<=120),N9:N154, ""))

High Average:
=AVERAGE(IF(N9:N154=121,N9:N154,""))

Hope that helps,

  #5   Report Post  
opal23k
 
Posts: n/a
Default

Thank you Domenic!

"Domenic" wrote:

Try the following formula that need to be confirmed with
CONTROL+SHIFT+ENTER, not just ENTER...

=AVERAGE(IF(N9:N154<=79,N9:N154))

=AVERAGE(IF((N9:N154=80)*(N9:N154<=120),N9:N154))

=AVERAGE(IF(N9:N154=121,N9:N154))

Hope this helps!

In article ,
"opal23k" wrote:

I have a column of test scores - N9:N154.

Scores can be grouped into low (<=79), average (80<=x=120), and high
(=121).

I want to have one formula for each group that will find the average score
for that group.

The logic is something like:
Low group: find the average of all the scores that are less than or equal to
79 within N9:N154.
Middle group: find the average of all the scores between 80 and 120 within
N9:N154.
High group: find the average of all the scores higher than or equal to 121
within N9:N154.


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
Count and Sum Total occurrances of two specific numbers Sam via OfficeKB.com Excel Worksheet Functions 10 March 29th 05 08:13 PM
Can I sum or average a range with more than 1 condition? BobT Excel Discussion (Misc queries) 4 February 14th 05 07:28 PM
Average Non-Contiguous numbers Teri Excel Worksheet Functions 1 January 20th 05 08:33 PM
Can you average data in 1 column based on a range of values in another? kman24 Excel Worksheet Functions 2 November 17th 04 02:09 PM
How do i get an average that ignores blanks in the range of cells. ucastores Excel Worksheet Functions 7 November 11th 04 05:01 PM


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

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"