I need help calculating the difference to the next grade boundary. On sheet 'Year Group', I have a formula that will tell me this difference (col F) but as you can see Apple (row 20) has enough total points (col D) for an A grade but received a B grade (col E) because they are one A point short (col C). The goal is col F reflects this one point so I can audit their assessment to ensure he is being fail graded in close scenarios. The current formula is in cell F12
The requirements for the different grades are in range 'Year Group'!A4:E10
I need col F row 20 to return a 1 instead of a 14 and be correct for all rows in range 'Year Group'!F12:F