First (to get it out of the way), we have several headers in the forum. You probably should have posted this under GENERAL or REPORTS. But don't take that as a "knock" on you, because we see this all the time. A moderator will probably move this at some point. We know it happens and it isn't a really big thing - but it CAN affect how quickly you get a more directed response, so it is to your advantage to make new questions under their proper headings.
Second, looking at the "database" spreadsheet, you have some normalization to do. I respectfully suggest you need to do some reading so that you understand the concept of database normalization. I put that phrase in bold because that is the topic you would use on a general web search. If you used this forum's SEARCH feature, you could leave off "database" because this is a database forum. On a general search, though, you need to qualify it because other disciplines use the term "normalization" in other ways.
Other reading that would be useful for you if you aren't familiar with them would include use of the SQL keyword phrases "GROUP BY" and the functions SUM and COUNT.