Averageif funtion to find average of multiple rows

pavifish

New Member
Joined
Oct 21, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Capture.PNG

Hi,
Hopefully, someone can help me. I am new to Excel. For example, trying to find the average of the games drawn by teams C, D, E & F. Consider there are 100 teams, and I know the names of the teams needing to find the average. However, I can not use the formula above and need to use the =AVERAGEIF formula. Is there any way to do that? Please help if you can. Thank you.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCDEFGH
1
2A1017C
3B19D
4C21E
5D13F
6E22
7F12
8G13
9H11
Data
Cell Formulas
RangeFormula
F2F2=AVERAGE(FILTER(D2:D9,COUNTIFS(H2:H5,A2:A9)))
 
Upvote 0
Solution
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCDEFGH
1
2A1017C
3B19D
4C21E
5D13F
6E22
7F12
8G13
9H11
Data
Cell Formulas
RangeFormula
F2F2=AVERAGE(FILTER(D2:D9,COUNTIFS(H2:H5,A2:A9)))
Hi, Thank you very much for your help. However the formula works perfectly with the sample sheet but whenevr I try to use it on my actual worksheet the result comes different. I am guessing I am messing up somewhere. So trying to fix. Hopefully will be sorted. Thanks again
 
Upvote 0
In that case please post a representative sample of your data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Averageif funtion to find average of multiple rows
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Hi,
Just found out me Error. It's solved. Thank you very much.
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Averageif funtion to find average of multiple rows
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
Sorry, didn't know. Thanks.
 
Upvote 0

Forum statistics

Threads
1,215,872
Messages
6,127,430
Members
449,382
Latest member
DonnaRisso

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