Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 113
Default Average top third with criteria

Wondering if anyone has ideas to get this done...
Col A Col B
Cat 100
Cat 225
Cat 175
Cat 179
Cat 180
Cat 125

Now, I want to use a formula to give me the average of the top 3rd group,
average of the middle 3rd, and average of the bottom 3rd (top 3rd here would
be the 180 & 225, mid 3rd would be 175 & 179, bottom 3rd would be 100 & 125.
It has to also look at the "Cat" label. So, average top 3rd when = cat, etc.

Let me know of any questions....thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Average top third with criteria

Top 3rd group: =AVERAGE(LARGE(IF(A1:A12="Cat",B1:B12),{1,2}))
Mid 3rd group: =AVERAGE(LARGE(IF(A1:A12="Cat",B1:B12),{3,4}))
Bottom 3rd group: =AVERAGE(LARGE(IF(A1:A12="Cat",B1:B12),{5,6}))

ctrl+shift+enter, not just enter
adjust your range to suit


"deeds" wrote:

Wondering if anyone has ideas to get this done...
Col A Col B
Cat 100
Cat 225
Cat 175
Cat 179
Cat 180
Cat 125

Now, I want to use a formula to give me the average of the top 3rd group,
average of the middle 3rd, and average of the bottom 3rd (top 3rd here would
be the 180 & 225, mid 3rd would be 175 & 179, bottom 3rd would be 100 & 125.
It has to also look at the "Cat" label. So, average top 3rd when = cat, etc.

Let me know of any questions....thanks in advance!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 113
Default Average top third with criteria

Thanks...is there any way to use a cell reference in place of the {1,2}.
i.e. I want to be able to have a cell reference for the "2" above. Any
ideas? Thanks.

"Teethless mama" wrote:

Top 3rd group: =AVERAGE(LARGE(IF(A1:A12="Cat",B1:B12),{1,2}))
Mid 3rd group: =AVERAGE(LARGE(IF(A1:A12="Cat",B1:B12),{3,4}))
Bottom 3rd group: =AVERAGE(LARGE(IF(A1:A12="Cat",B1:B12),{5,6}))

ctrl+shift+enter, not just enter
adjust your range to suit


"deeds" wrote:

Wondering if anyone has ideas to get this done...
Col A Col B
Cat 100
Cat 225
Cat 175
Cat 179
Cat 180
Cat 125

Now, I want to use a formula to give me the average of the top 3rd group,
average of the middle 3rd, and average of the bottom 3rd (top 3rd here would
be the 180 & 225, mid 3rd would be 175 & 179, bottom 3rd would be 100 & 125.
It has to also look at the "Cat" label. So, average top 3rd when = cat, etc.

Let me know of any questions....thanks in advance!

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 with Criteria Sassy Excel Worksheet Functions 10 June 7th 09 02:59 AM
AVERAGE BASED ON 2 CRITERIA aj Excel Worksheet Functions 1 January 28th 09 06:33 PM
average with 2 criteria hockeyb9 Excel Worksheet Functions 11 August 23rd 08 01:15 AM
Average given criteria, HELP! Nebbez Excel Worksheet Functions 1 November 4th 05 07:12 PM
Average Formula with Criteria PW11111 Excel Discussion (Misc queries) 1 June 10th 05 02:22 PM


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