Finished entering grades with a little coding help!

I use Google Sheets a lot, and in this case I had way too many grades cluttering up my spreadsheet. I decided that I was going to take the top 4 grades and average them together to get the final grade. In order to do that I threw together a little script to make that easier.

Enjoy! Post any questions below.