ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   averageif with 2 other criteria (https://www.excelbanter.com/excel-discussion-misc-queries/248386-averageif-2-other-criteria.html)

v1rt8

averageif with 2 other criteria
 
Need some help with an averageif calc.
setup is as follows:
q3:q1357 contains ages
r3:r1357 contains text (active), (MGT), (others)

so averageif q3:q1357 active and mgt in 43:r1357
so averageif

looked at other questions in here and cannot find anything close
thanks in advance

v1rt8

averageif with 2 other criteria
 


"v1rt8" wrote:

Need some help with an averageif calc.
setup is as follows:
q3:q1357 contains ages
r3:r1357 contains text (active), (MGT), (others)

so averageif q3:q1357 active and mgt in r3:r1357
so averageif q3:q1357 active in r3:r1357



looked at other questions in here and cannot find anything close
thanks in advance


T. Valko

averageif with 2 other criteria
 
Are you using Excel 2007?

so averageif q3:q1357 active and mgt in r3:r1357
so averageif q3:q1357 active in r3:r1357


Are those 2 separate requests?

Get the average age if column R contains either active *or* mgt.

Get the average age if column R contains active.


--
Biff
Microsoft Excel MVP


"v1rt8" wrote in message
...


"v1rt8" wrote:

Need some help with an averageif calc.
setup is as follows:
q3:q1357 contains ages
r3:r1357 contains text (active), (MGT), (others)

so averageif q3:q1357 active and mgt in r3:r1357
so averageif q3:q1357 active in r3:r1357



looked at other questions in here and cannot find anything close
thanks in advance




Sean Timmons

averageif with 2 other criteria
 
=SUMIF(r3:r1357,"active",q3:q1357)/countif(r3:r1357,"active")

Then,
=(SUMIF(r3:r1357,"active",q3:q1357)+SUMIF(r3:r1357 ,"mgt",q3:q1357))/(countif(r3:r1357,"active")+countif(r3:r1357,"mgt" ))

"v1rt8" wrote:



"v1rt8" wrote:

Need some help with an averageif calc.
setup is as follows:
q3:q1357 contains ages
r3:r1357 contains text (active), (MGT), (others)

so averageif q3:q1357 active and mgt in r3:r1357
so averageif q3:q1357 active in r3:r1357



looked at other questions in here and cannot find anything close
thanks in advance


v1rt8

averageif with 2 other criteria
 
Yes i am, they are two separate requests,
in one cell the avg age of active and mgt
in another cell the avg age of active
in another cell the avg age of mgt
thanks, i should have been more clear

"T. Valko" wrote:

Are you using Excel 2007?

so averageif q3:q1357 active and mgt in r3:r1357
so averageif q3:q1357 active in r3:r1357


Are those 2 separate requests?

Get the average age if column R contains either active *or* mgt.

Get the average age if column R contains active.


--
Biff
Microsoft Excel MVP


"v1rt8" wrote in message
...


"v1rt8" wrote:

Need some help with an averageif calc.
setup is as follows:
q3:q1357 contains ages
r3:r1357 contains text (active), (MGT), (others)

so averageif q3:q1357 active and mgt in r3:r1357
so averageif q3:q1357 active in r3:r1357



looked at other questions in here and cannot find anything close
thanks in advance



.


v1rt8

averageif with 2 other criteria
 
would this give me the avg age?

"Sean Timmons" wrote:

=SUMIF(r3:r1357,"active",q3:q1357)/countif(r3:r1357,"active")

Then,
=(SUMIF(r3:r1357,"active",q3:q1357)+SUMIF(r3:r1357 ,"mgt",q3:q1357))/(countif(r3:r1357,"active")+countif(r3:r1357,"mgt" ))

"v1rt8" wrote:



"v1rt8" wrote:

Need some help with an averageif calc.
setup is as follows:
q3:q1357 contains ages
r3:r1357 contains text (active), (MGT), (others)

so averageif q3:q1357 active and mgt in r3:r1357
so averageif q3:q1357 active in r3:r1357



looked at other questions in here and cannot find anything close
thanks in advance


Sean Timmons

averageif with 2 other criteria
 
It would give the mean average, which is what AVERAGe in Excel provides. You
are adding together the total of ages, then dividing by the number of people.

"v1rt8" wrote:

would this give me the avg age?

"Sean Timmons" wrote:

=SUMIF(r3:r1357,"active",q3:q1357)/countif(r3:r1357,"active")

Then,
=(SUMIF(r3:r1357,"active",q3:q1357)+SUMIF(r3:r1357 ,"mgt",q3:q1357))/(countif(r3:r1357,"active")+countif(r3:r1357,"mgt" ))

"v1rt8" wrote:



"v1rt8" wrote:

Need some help with an averageif calc.
setup is as follows:
q3:q1357 contains ages
r3:r1357 contains text (active), (MGT), (others)

so averageif q3:q1357 active and mgt in r3:r1357
so averageif q3:q1357 active in r3:r1357


looked at other questions in here and cannot find anything close
thanks in advance


v1rt8

averageif with 2 other criteria
 
thank you sir, i appreciate your time and effort

"Sean Timmons" wrote:

It would give the mean average, which is what AVERAGe in Excel provides. You
are adding together the total of ages, then dividing by the number of people.

"v1rt8" wrote:

would this give me the avg age?

"Sean Timmons" wrote:

=SUMIF(r3:r1357,"active",q3:q1357)/countif(r3:r1357,"active")

Then,
=(SUMIF(r3:r1357,"active",q3:q1357)+SUMIF(r3:r1357 ,"mgt",q3:q1357))/(countif(r3:r1357,"active")+countif(r3:r1357,"mgt" ))

"v1rt8" wrote:



"v1rt8" wrote:

Need some help with an averageif calc.
setup is as follows:
q3:q1357 contains ages
r3:r1357 contains text (active), (MGT), (others)

so averageif q3:q1357 active and mgt in r3:r1357
so averageif q3:q1357 active in r3:r1357


looked at other questions in here and cannot find anything close
thanks in advance


v1rt8

averageif with 2 other criteria
 
thank you sir for your time and effort

"Sean Timmons" wrote:

It would give the mean average, which is what AVERAGe in Excel provides. You
are adding together the total of ages, then dividing by the number of people.

"v1rt8" wrote:

would this give me the avg age?

"Sean Timmons" wrote:

=SUMIF(r3:r1357,"active",q3:q1357)/countif(r3:r1357,"active")

Then,
=(SUMIF(r3:r1357,"active",q3:q1357)+SUMIF(r3:r1357 ,"mgt",q3:q1357))/(countif(r3:r1357,"active")+countif(r3:r1357,"mgt" ))

"v1rt8" wrote:



"v1rt8" wrote:

Need some help with an averageif calc.
setup is as follows:
q3:q1357 contains ages
r3:r1357 contains text (active), (MGT), (others)

so averageif q3:q1357 active and mgt in r3:r1357
so averageif q3:q1357 active in r3:r1357


looked at other questions in here and cannot find anything close
thanks in advance


Sean Timmons

averageif with 2 other criteria
 
Not a problem!

"v1rt8" wrote:

thank you sir, i appreciate your time and effort

"Sean Timmons" wrote:

It would give the mean average, which is what AVERAGe in Excel provides. You
are adding together the total of ages, then dividing by the number of people.

"v1rt8" wrote:

would this give me the avg age?

"Sean Timmons" wrote:

=SUMIF(r3:r1357,"active",q3:q1357)/countif(r3:r1357,"active")

Then,
=(SUMIF(r3:r1357,"active",q3:q1357)+SUMIF(r3:r1357 ,"mgt",q3:q1357))/(countif(r3:r1357,"active")+countif(r3:r1357,"mgt" ))

"v1rt8" wrote:



"v1rt8" wrote:

Need some help with an averageif calc.
setup is as follows:
q3:q1357 contains ages
r3:r1357 contains text (active), (MGT), (others)

so averageif q3:q1357 active and mgt in r3:r1357
so averageif q3:q1357 active in r3:r1357


looked at other questions in here and cannot find anything close
thanks in advance


T. Valko

averageif with 2 other criteria
 
Try these...

Use cells to hold the criteria.

T3 = active
T4 = mgt

Enter this formula in U3 and copy down to U4:

=AVERAGEIF(R$3:R$1357,T3,Q$3:Q$1357)

For the combined average of active *or* mgt...

Array entered** :

=AVERAGE(IF(ISNUMBER(MATCH(R3:R1357,T3:T4,0)),Q3:Q 1357))

** 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


"v1rt8" wrote in message
...
Yes i am, they are two separate requests,
in one cell the avg age of active and mgt
in another cell the avg age of active
in another cell the avg age of mgt
thanks, i should have been more clear

"T. Valko" wrote:

Are you using Excel 2007?

so averageif q3:q1357 active and mgt in r3:r1357
so averageif q3:q1357 active in r3:r1357


Are those 2 separate requests?

Get the average age if column R contains either active *or* mgt.

Get the average age if column R contains active.


--
Biff
Microsoft Excel MVP


"v1rt8" wrote in message
...


"v1rt8" wrote:

Need some help with an averageif calc.
setup is as follows:
q3:q1357 contains ages
r3:r1357 contains text (active), (MGT), (others)

so averageif q3:q1357 active and mgt in r3:r1357
so averageif q3:q1357 active in r3:r1357


looked at other questions in here and cannot find anything close
thanks in advance



.





All times are GMT +1. The time now is 07:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com