Average column in range if it meets 2 criteria

matthewdrhodes

New Member
Joined
Sep 26, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I'm trying to get one drop down cell that matches a particular column in a range of data & another cell that matches a different column in that range.

Example:

Page 2

Athlete NameType of blockEffortAssignmentTechnique
JoeZone11.5
JohnPass.751.75
AlexPass1.5.25
AlexZone.510
JohnPull1.751
AlexZone11.5

Page 1

Athlete Name:
Drop down list of names (Joe, John, Alex)
EffortAssignmentTechnique
ZoneAverage of Page 2 range that matches name & type here
Pass
Pull

I'm trying to figure out how to write an equation that goes in the red text area of Page 1 that calculates all of Page 2 range that matches athlete name in column A of page 2 to the athlete name in A2 of page 1, as well as matching all of the column B of Page 2 to the A4 cell of Page 1. So if I choose Alex as a name in Page 1, it outputs his effort grade for Zone as .75 in the red cell on Page 1.

Does that make sense?

Do I need an averageif equation? Or a index(match())?

I'm not very fluent with Excel yet & am trying to learn. If anyone can help me out or provide the resources to walk me through it, I would greatly appreciate it!

Thank you,
Matt
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Welcome to Mr Excel forum

Sheet2
Pasta1
ABCDE
1Athlete NameType of blockEffortAssignmentTechnique
2JoeZone110,5
3JohnPass0,7510,75
4AlexPass10,50,25
5AlexZone0,510
6JohnPull10,751
7AlexZone110,5
Sheet2


Sheet1
Pasta1
ABCD
1Athlete Name:
2Alex
3EffortAssignmentTechnique
4Zone0,7510,25
5Pass10,50,25
6PullNot FoundNot FoundNot Found
Sheet1
Cell Formulas
RangeFormula
B4:D6B4=IFERROR(AVERAGEIFS(INDEX(Sheet2!$C$2:$E$7,0,MATCH(B$3,Sheet2!$C$1:$E$1,0)),Sheet2!$A$2:$A$7,$A$2,Sheet2!$B$2:$B$7,$A4),"Not Found")


Hope this helps

M,
 
Upvote 0
Thank you Marcelo! That was really helpful! I got the average to work for all needed cells.

If I wanted it to provide a count of those averages should I use "COUNTIFS" instead of "AVERAGEIFS", I've tried but an error of expecting the 2nd argument to be in pairs is showing up?
 
Upvote 0

Forum statistics

Threads
1,214,520
Messages
6,120,013
Members
448,935
Latest member
ijat

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top