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

I would kike to calculate the average in a column if it meets a criteria in
another column. I have tried Average(if(....... this is not working.

I need to know the average probability of sales against the sales executives

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Average with Criteria

Try this

=SUMPRODUCT((A1:A100="a")*(B1:B100))/COUNTIF(A1:A100,"a")

Where 'a' is the name of your sales exec and Column B is what to sum.

Mike

"Sassy" wrote:

I would kike to calculate the average in a column if it meets a criteria in
another column. I have tried Average(if(....... this is not working.

I need to know the average probability of sales against the sales executives

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 171
Default Average with Criteria

=sumif(criteria_range,criteria,sum_range) / countif(criteria_range,criteria)

"Sassy" wrote:

I would kike to calculate the average in a column if it meets a criteria in
another column. I have tried Average(if(....... this is not working.

I need to know the average probability of sales against the sales executives

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Average with Criteria

HI,

No this is not working I am getting a #VALUE! error

See below

=SUMPRODUCT((A1:A100="George de Bon")*(D1:D100))/COUNTIF(A1:A100,"George de
Bon")

Example of data:

Program Manager Customer Contact Opportunity Value Probability
George de Bon TimTaylor R 300,000 50%


"Mike H" wrote:

Try this

=SUMPRODUCT((A1:A100="a")*(B1:B100))/COUNTIF(A1:A100,"a")

Where 'a' is the name of your sales exec and Column B is what to sum.

Mike

"Sassy" wrote:

I would kike to calculate the average in a column if it meets a criteria in
another column. I have tried Average(if(....... this is not working.

I need to know the average probability of sales against the sales executives

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Average with Criteria

Try something lika this, adjust references:

=SUMIF(B2:B10,1,A2:A10)/=COUNTIF(B2:B10,1)
In this example A2:A10 contains numbers to abe averaged, B2:B10 contains
values to evaluate, the formula return average of A2:A10 where B2:B10 =1

Regards,
Stefi


€žSassy€ť ezt Ă*rta:

I would kike to calculate the average in a column if it meets a criteria in
another column. I have tried Average(if(....... this is not working.

I need to know the average probability of sales against the sales executives



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Average with Criteria

All version of Excel:
=AVERAGE(IF(A1:A100="George de Bon",D1:D100))

ctrl+shift+enter, not just enter


For Excel 2007:
=AVERAGEIF(A1:A100,"George de Bon",D1:D100)

Just normal enter


"Sassy" wrote:

HI,

No this is not working I am getting a #VALUE! error

See below

=SUMPRODUCT((A1:A100="George de Bon")*(D1:D100))/COUNTIF(A1:A100,"George de
Bon")

Example of data:

Program Manager Customer Contact Opportunity Value Probability
George de Bon TimTaylor R 300,000 50%


"Mike H" wrote:

Try this

=SUMPRODUCT((A1:A100="a")*(B1:B100))/COUNTIF(A1:A100,"a")

Where 'a' is the name of your sales exec and Column B is what to sum.

Mike

"Sassy" wrote:

I would kike to calculate the average in a column if it meets a criteria in
another column. I have tried Average(if(....... this is not working.

I need to know the average probability of sales against the sales executives

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Average with Criteria

You would get that error of the numbers you are trying to sume are text
instead of numbers. Check your sum range

Mike

"Sassy" wrote:

HI,

No this is not working I am getting a #VALUE! error

See below

=SUMPRODUCT((A1:A100="George de Bon")*(D1:D100))/COUNTIF(A1:A100,"George de
Bon")

Example of data:

Program Manager Customer Contact Opportunity Value Probability
George de Bon TimTaylor R 300,000 50%


"Mike H" wrote:

Try this

=SUMPRODUCT((A1:A100="a")*(B1:B100))/COUNTIF(A1:A100,"a")

Where 'a' is the name of your sales exec and Column B is what to sum.

Mike

"Sassy" wrote:

I would kike to calculate the average in a column if it meets a criteria in
another column. I have tried Average(if(....... this is not working.

I need to know the average probability of sales against the sales executives

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Average with Criteria

Perfect.... thank you

"bpeltzer" wrote:

=sumif(criteria_range,criteria,sum_range) / countif(criteria_range,criteria)

"Sassy" wrote:

I would kike to calculate the average in a column if it meets a criteria in
another column. I have tried Average(if(....... this is not working.

I need to know the average probability of sales against the sales executives

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Average with Criteria


One problem which I am running into the averageif function is that the
criteria cannot be a function of the desired cell, for example
AVERAGEIF(A1:A10,MID(A1:A10,3,1)="A",B1:B10)
comes as an error.
I would like to find the average of all the B columns for which the third
letter of the A column is A, is that possible?
Thanks
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Average with Criteria

One tedious way of overcoming this is to enter each of the rows individually
in the function and using an
AVERAGE(IF(MID(A1,3,1)="A",B1,XX),IF(MID(A2,3,1)=" A",B2,XX...etc)
However here again I am running into the problem of requiring a filler
instead of XX which doesn't act as 0 and abnormally decrease the average. I
have tried "", " " and it miraculously worked in one sheet but not in the
other!!!
Or is the only solution is to do a sum of all the parts from 1 to 10 and
then a countif from 1 -10 and repeat the function...........that is too
painful to even think of.


  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Average with Criteria

I would like to find the average of all the B columns
for which the third letter of the A column is A


Try this array formula** :

=AVERAGE(IF(MID(A1:A10,3,1)="A",B1:B10))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Plodder" wrote in message
...

One problem which I am running into the averageif function is that the
criteria cannot be a function of the desired cell, for example
AVERAGEIF(A1:A10,MID(A1:A10,3,1)="A",B1:B10)
comes as an error.
I would like to find the average of all the B columns for which the third
letter of the A column is A, is that possible?
Thanks



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 one column based on criteria from another ba374 Excel Discussion (Misc queries) 1 October 2nd 07 05:39 PM
Finding Average with Criteria Mike R. Excel Worksheet Functions 4 September 17th 07 06:50 AM
Average given criteria, HELP! Nebbez Excel Worksheet Functions 1 November 4th 05 07:12 PM
Average function and two criteria Paula M Excel Worksheet Functions 6 August 26th 05 02:24 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 08:22 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"