Using append­ing in Pow­er Query offers a stream­lined approach to auto­mat­i­cal­ly grade stu­dent exams based on pre­de­fined thresh­olds. This method elim­i­nates man­u­al grad­ing errors and saves sig­nif­i­cant time when pro­cess­ing large sets of stu­dent scores, pro­vid­ing an effi­cient way to man­age aca­d­e­m­ic assessments.

The tech­nique com­bines stu­dent scores with grade thresh­olds to gen­er­ate accu­rate results that can be eas­i­ly updat­ed when grad­ing cri­te­ria change.

Watch my step-by-step tuto­r­i­al on how to imple­ment this grad­ing sys­tem using Pow­er Query:

Understanding the Grading Process with Power Query

Pow­er Query’s append­ing fea­ture allows us to com­bine mul­ti­ple tables in a way that cre­ates rela­tion­ships between stu­dent scores and grade thresh­olds. The append­ing process essen­tial­ly stacks tables on top of each oth­er, cre­at­ing a sin­gle dataset that we can manip­u­late to auto­mat­i­cal­ly assign grades. This approach is par­tic­u­lar­ly use­ful in edu­ca­tion­al set­tings where instruc­tors need to process mul­ti­ple exam results efficiently.

The pri­ma­ry advan­tage of using this method is that when grad­ing cri­te­ria change, you don’t need to man­u­al­ly reas­sign grades to each stu­dent. Sim­ply update the thresh­old val­ues in your source table, refresh the query, and all grades will auto­mat­i­cal­ly update to reflect the new standards.

Required Resources

Before start­ing the grad­ing process, you’ll need two essen­tial tables:

  • A table con­tain­ing stu­dent names and their exam points
  • A table defin­ing grade thresh­olds (what point ranges cor­re­spond to which let­ter grades)

These tables will serve as the foun­da­tion for our auto­mat­ed grad­ing sys­tem. The struc­ture of these tables does­n’t need to be complex—just clear­ly orga­nized with appro­pri­ate head­ers to iden­ti­fy the data.

Setting Up the Tables in Power Query

To begin imple­ment­ing the grad­ing sys­tem, we need to import both tables into Pow­er Query. This process allows us to manip­u­late and com­bine the data efficiently.

First, with the stu­dent scores table select­ed, nav­i­gate to the Data tab in Excel. From there, select “From Table/Range” to import the first table into Pow­er Query. When prompt­ed to load the data, choose “Cre­ate Con­nec­tion Only” as we’ll be manip­u­lat­ing this data fur­ther before bring­ing it back to Excel.

Repeat the same process for your grade thresh­olds table. Hav­ing both tables acces­si­ble in Pow­er Query is essen­tial for the next step where we’ll com­bine them through appending.

Appending the Tables

Once both tables are in Pow­er Query, we can com­bine them using the append function:

On the Home tab with­in Pow­er Query Edi­tor, click the Append Queries but­ton (not “Append Queries as New”). In the dia­log box that appears, con­firm that you want to append just the two tables you’ve import­ed. Select the stu­dent table as your pri­ma­ry table and the grades thresh­old table as the table to append.

After append­ing, you’ll notice that the result­ing table con­tains all rows from both orig­i­nal tables. The stu­dent data appears first, fol­lowed by the thresh­old data. This com­bined dataset gives us every­thing we need to assign grades automatically.

Organizing and Sorting the Data

For our grad­ing sys­tem to work prop­er­ly, we need to sort the append­ed data by the num­ber of points. This sort­ing is a cru­cial step because it allows us to arrange scores in ascend­ing order, mak­ing it eas­i­er to assign appro­pri­ate grades.

Click on the col­umn con­tain­ing the points/scores and sort from A to Z (ascend­ing). This action arranges all scores from low­est to high­est, with the grade thresh­olds inte­grat­ed among the stu­dent scores based on their point values.

Because of how the data is now arranged, the grade thresh­olds appear at posi­tions where they nat­u­ral­ly divide the stu­dent scores into dif­fer­ent grade categories.

Assigning Grades Automatically

With our data prop­er­ly sort­ed, we can now use a sim­ple but pow­er­ful tech­nique to assign grades to each stu­dent. The key to this process is the Fill Down com­mand in Pow­er Query.

The grade col­umn ini­tial­ly has val­ues only in the rows that came from our thresh­old table. To assign these grades to stu­dents, select the grade col­umn and nav­i­gate to the Trans­form tab. Click on “Fill” and then “Down.” This action copies each grade down to all rows below it until anoth­er grade is encountered.

As a result, each stu­dent row is auto­mat­i­cal­ly assigned the grade cor­re­spond­ing to their score based on the defined thresh­olds. For exam­ple, if the thresh­old for grade C is 40 points, stu­dents with 40 or more points (but below the next thresh­old) will be assigned a C.

Filtering and Finalizing the Results

After fill­ing down the grades, we need to fil­ter out the thresh­old rows to see only the stu­dent results:

Click the fil­ter but­ton on the col­umn con­tain­ing stu­dent names and select “Fil­ter out emp­ty val­ues” or specif­i­cal­ly select only the rows con­tain­ing actu­al stu­dent data. This leaves us with just the stu­dent infor­ma­tion and their cor­re­spond­ing grades.

With the data fil­tered and grades assigned, we can now load this infor­ma­tion back to Excel. Nav­i­gate to the Home tab and select “Close & Load To.” Choose where you want to place the results in your workbook.

Updating Grades When Thresholds Change

One of the most pow­er­ful aspects of this approach is how eas­i­ly you can adjust grad­ing criteria:

If you need to change the grad­ing thresh­olds, sim­ply update the val­ues in your orig­i­nal thresh­old table. For exam­ple, you might change the min­i­mum score for an A from 90 to 88 points. After mak­ing these changes, save your file and then refresh the query (right-click on your results table and select “Refresh”).

The entire grad­ing process will auto­mat­i­cal­ly run again with the new thresh­olds, updat­ing all stu­dent grades accord­ing­ly. This makes the sys­tem extreme­ly flex­i­ble and saves sig­nif­i­cant time when adjust­ments are needed.

Real-World Application Example

In my video demon­stra­tion, I showed how this sys­tem works with a sam­ple dataset. For instance, Jen­nifer earned 13 points which result­ed in an F grade, Robert received 34 points also result­ing in an F, while Olivia scored 40 points which met the thresh­old for an E grade.

After chang­ing the thresh­olds and refresh­ing the query, the grades updat­ed auto­mat­i­cal­ly to reflect the new stan­dards. This dynam­ic updat­ing capa­bil­i­ty is what makes this approach so valu­able for edu­ca­tors who may need to adjust grad­ing scales based on class per­for­mance or oth­er factors.