Average age of top 10 in the list using pivot table

INN

Board Regular
Joined
Feb 3, 2021
Messages
118
Office Version
  1. 365
Platform
  1. Windows
Hi
I have a table of top 50 tennis players and their rank, ages and countries. How can I find the average age of the 10 top players using pivot table. Right now, I can find the average age of all players. What is the idea to find the top 10 players? Thank you.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Excel Formula:
=AVERAGEIFS(agerange,rankrange,"<=10")

Put a filter on your pivot table for rank and click the top ten.


1708234166706.png
 
Last edited:
Upvote 1
Excel Formula:
=AVERAGEIFS(agerange,rankrange,"<=10")

Put a filter on your pivot table for rank and click the top ten.


View attachment 107034

Thank you for your reply. But when I put Rank as a filter of the pivot table, I wont see an option of "Top 10". I know that option in regular filter but not pivot table filter. Thank you again
 
Upvote 0
You don't. Just click the arrow in the filter (which is RANK), and select items 1 thru 10.
 
Upvote 1
Solution

Forum statistics

Threads
1,215,092
Messages
6,123,064
Members
449,090
Latest member
fragment

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