Hi everyone,
I have a problem that I would really appreciate your help. I spent hours googling online but I couldn't find a solution that best fits the problem I'm having.
Basically, in this example, I have 5 columns (i.e., Names, Selection 1, Selection 2, Subject, and Grade), and I have two students, Mary and James. Mary and James have grades for all 4 subjects: Language, Mathematics, Reading, and Science.
I want to compute an average grade of whichever two subjects my students wanted to count towards their average. So for Mary, I want to write a function that allows me to compute an average grade of her selection, which includes Language and Reading, and for James, I want to compute an average grade of his selection, which includes Mathematics and Science, so that the end result I would get an average score of 75 (average of 90 and 60) for Mary, and an average score of 60 (average of 50 and 70) for James.
How do I do that? Attached is my excel workbook to make things simpler. Many thanks for your help.
Names Selection1 Selection2 Subject Grade
Mary Language Reading Language 90
Mary Language Reading Mathematics 50
Mary Language Reading Reading 60
Mary Language Reading Science 70
James Mathematics Science Language 80
James Mathematics Science Mathematics 50
James Mathematics Science Reading 60
James Mathematics Science Science 70
Bookmarks