This may be complicated to explain so bear with me

I have a spreadsheet full of movies, each with a rating out of 100 and the year they were released. What I want to do is create a chart which shows the average rating based on the year.
I.E. It will take all the ratings from a particular year and give it an average.
Does anyone have any ideas to how I could do this?