Substituting a value if higher than another in a series.

Opheltes

New Member
Joined
May 22, 2017
Messages
7
In a course that I teach, there are four components to the grade average: participation, paper, midterm, and final, each of which is worth 25% of the grade. Easy to average the four.

But if a student gets a higher grade on the final than the midterm, I want to substitute that for the midterm. In other words, if the student got a 70 on the midterm and an 80 on the final, I'd like a formula that computes the grade to have 80 twice instead of 70 and 80. (If the student's final is the same or lower than the midterm, then it's simply averaged).

Any suggestions would be welcome. Thanks.
Opheltes
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
How about
Book1
CDEFG
1ParticipationPaperMidTermFinalAverage
26080708075
36080707070
46070908075
Report
Cell Formulas
RangeFormula
G2:G4G2=IF(F2<=E2,AVERAGE(C2:F2),AVERAGE(C2:D2,F2,F2))
 
Upvote 0

Forum statistics

Threads
1,214,947
Messages
6,122,413
Members
449,082
Latest member
tish101

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top