Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dj dj is offline
external usenet poster
 
Posts: 92
Default average using two criteria

I am trying to average using 2 criteria. In column A I have gender as M or F.
In Column B I have ethnicity as A, W etc. In column C I have levels from -2
to 4. I want to average column C where column A = M and Column B = A. I don't
want to include in the average range a M if it does not have a corresponding
level in column C. I have used =AVERAGE(IF((gen="M")*(eth="A"),level)) as an
array (eg entering the above formula and then entering CTRL + SHIFT + Enter
rather than just enter). SO basically I wanted to know how to add the extra
condition to average only if it has M in column A, A in coumn B and a level
in Column C.

Hope this makes sense!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default average using two criteria

Try array formula

=AVERAGE(IF((A2:A10="m")*(C2:C10="a")*(M2:M10<"") ,M2:M10))

If this post helps click Yes
---------------
Jacob Skaria


"DJ" wrote:

I am trying to average using 2 criteria. In column A I have gender as M or F.
In Column B I have ethnicity as A, W etc. In column C I have levels from -2
to 4. I want to average column C where column A = M and Column B = A. I don't
want to include in the average range a M if it does not have a corresponding
level in column C. I have used =AVERAGE(IF((gen="M")*(eth="A"),level)) as an
array (eg entering the above formula and then entering CTRL + SHIFT + Enter
rather than just enter). SO basically I wanted to know how to add the extra
condition to average only if it has M in column A, A in coumn B and a level
in Column C.

Hope this makes sense!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dj dj is offline
external usenet poster
 
Posts: 92
Default average using two criteria

Thanks! That is FAB and v speedy!

:o)

"Jacob Skaria" wrote:

Try array formula

=AVERAGE(IF((A2:A10="m")*(C2:C10="a")*(M2:M10<"") ,M2:M10))

If this post helps click Yes
---------------
Jacob Skaria


"DJ" wrote:

I am trying to average using 2 criteria. In column A I have gender as M or F.
In Column B I have ethnicity as A, W etc. In column C I have levels from -2
to 4. I want to average column C where column A = M and Column B = A. I don't
want to include in the average range a M if it does not have a corresponding
level in column C. I have used =AVERAGE(IF((gen="M")*(eth="A"),level)) as an
array (eg entering the above formula and then entering CTRL + SHIFT + Enter
rather than just enter). SO basically I wanted to know how to add the extra
condition to average only if it has M in column A, A in coumn B and a level
in Column C.

Hope this makes sense!

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 top third with criteria deeds Excel Worksheet Functions 2 March 11th 09 10:09 PM
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


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