Combine Excel University Ranking Tables and Return the Top 10
Question details
Combine university ranking tables from multiple years and return the top 10 records.

- Product
- Microsoft Excel for Microsoft 365
- Device & OS
- not provided
- Scenario
- A user has yearly university ranking tables with matching columns and wants one ranked result.
- Observed behavior
- The desired result is a combined list of the 10 highest-scoring or best-ranked records.
Check that all yearly tables have the same columns in the same order, and identify the score or rank column. Use descending order for scores where higher is better, or ascending order for ranks where 1 is best.
Combine and rank the tables with Excel formulas
Use this method in Microsoft 365 when VSTACK and TAKE are available and you want a dynamic result.
The formula returns rows, not necessarily 10 distinct universities. A university can appear more than once if it is listed in multiple years.
Click each source table and check its name on the Table Design tab. The example uses Table1 and Table2.
Select an empty cell with room for the results to spill and enter =LET(stacked,VSTACK(Table1,Table2),sorted,SORT(stacked,2,-1),TAKE(sorted,10)).
Edit the VSTACK arguments to add other tables, such as Table3. Replace 2 with the position of the score or rank column; use -1 for descending scores or 1 for ascending ranks.

Append and filter the tables with Power Query
Use Power Query when yearly tables change regularly and you want a refreshable combined result.
Find the Top 10 University Records in WPS Spreadsheet
Use WPS Spreadsheet to append matching yearly tables, sort the combined data, and copy the top 10 records into a results area.
- 1. Open the workbook: Open WPS Spreadsheet and use Open to select the Excel workbook containing the yearly tables.
- 2. Combine the rows: Create a worksheet with one set of column headers. Copy the data rows from each yearly table and paste them below the previous rows.
- 3. Sort the combined data: Select the entire combined range and choose Data > Sort. Sort the score column descending, or the rank column ascending, and indicate that the range has headers if prompted.
- 4. Copy the top 10: Select the first 10 data rows beneath the headers and copy them to a separate results area.

Frequently Asked Questions
How do I add more yearly tables to the Excel formula?
Edit the VSTACK portion of the formula to include each table, for example VSTACK(Table1,Table2,Table3). Make sure their columns are in the same order.
Should I sort the ranking column ascending or descending?
In SORT, use 1 for ascending order when rank 1 is best. Use -1 for descending order when a higher score is better.
Why does the same university appear more than once?
The methods return the top 10 records, so a university listed in several years can appear multiple times. To get distinct universities, first decide which yearly record or aggregate score should represent each one.
Will the results update when I change the source tables?
The Excel formula recalculates with the source data. A Power Query result requires Data > Refresh All, and a newly added yearly table must also be included in the append operation.




