Others

How to Sum the Six Largest Values in Microsoft Access

Maira MehtabMaira Mehtab Oct 9, 2026 870 views

Question details

The user needs to calculate the sum of the top six values in a Microsoft Access database, similar to using the LARGE function in Excel.

How to Sum the Six Largest Values in Microsoft Access
Product
Microsoft Access
Device & OS
not provided
Scenario
Calculating the total of the highest scores or data points within a database table.
Observed behavior
Microsoft Access lacks a direct equivalent to Excel's LARGE function, requiring a workaround using SQL queries.
Before you start

Ensure your database table is properly normalized and the numeric field you want to calculate (e.g., Score) is stored in a single column rather than across multiple subject columns.

Solution 1Recommended

Calculate the Sum Using a Nested TOP Query

Use a combination of the TOP and SUM SQL commands to retrieve and add up the highest values in your Access table.

Since Microsoft Access does not feature a LARGE function, you must first sort the data in descending order, extract the top records, and then apply the Sum function using a nested query.

1
Open Query Design

Open your Access database, navigate to the Create tab on the ribbon, and click on Query Design. Close the Show Table dialog box.

2
Switch to SQL View

Right-click the query tab or use the View button on the ribbon, and select SQL View from the dropdown menu.

3
Enter the Nested Query

Assuming your table is named tblData and your field is Score, type the following SQL statement: SELECT Sum(Score) AS TopScores FROM (SELECT TOP 6 Score FROM tblData ORDER BY Score DESC);

4
Run the Query

Click the Run button (red exclamation mark) on the Query Design ribbon to execute the query and view the summed result.

Calculate the Sum Using a Nested TOP Query
Database Normalization: For a reliable Access solution, always store scores in normalized relational tables. Decomposing spreadsheet-style layouts into proper tables ensures SQL aggregation functions work correctly.
Free Microsoft Office alternative

Easily Calculate Top Values with WPS Spreadsheet

While Microsoft Access requires SQL queries for simple tasks like summing top values, WPS Spreadsheet provides an easy-to-use LARGE function to get the job done instantly. WPS Office is a free, lightweight alternative that handles complex calculations effortlessly.

  1. 1. Download and Install: Download WPS Office Free from the official website and install it on your device.
  2. 2. Open Your Data: Launch WPS Spreadsheet and open the file or paste the data you want to calculate.
  3. 3. Apply the Formula: Type the formula =SUM(LARGE(A1:A100, {1,2,3,4,5,6})) in an empty cell to instantly get the sum of the six largest values.
Built-in LARGE and SUM functions to calculate top values without writing SQL code.Fully compatible with Microsoft Excel (.xlsx) and other Office formats.Free, lightweight, and features a familiar user interface for a seamless migration.
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't Microsoft Access have a LARGE function?

Microsoft Access is a relational database management system, not a spreadsheet application. It uses SQL (Structured Query Language) for data manipulation, which relies on sorting and grouping (like TOP and ORDER BY) rather than specialized spreadsheet functions.

Can I use this nested query method for other calculations like averages?

Yes. You can replace the Sum(Score) function in the outer query with Avg(Score) to calculate the average of the top six values instead of their total sum.

What if I have multiple subjects in separate columns?

Storing similar data in multiple columns (like Subject1, Subject2) is not recommended in relational databases. You should normalize your data by putting all scores in a single column with a related identifier, which allows queries like TOP and SUM to function properly.

How do I export this Access query result to a spreadsheet?

Right-click the saved query in the Access Navigation Pane, select Export, and choose Excel. You can then open the exported file using WPS Spreadsheet or Microsoft Excel for further formatting.