Conditional Formatting - A*-F Student Alpha Grade(s)

yoplumpy

New Member
Joined
Feb 16, 2010
Messages
7
Hi All

I am trying to set up the conditional formatting for a spreadsheet that contains grades achieved against a target value - some students have a target grade over the boundary of 2 grades - for example A/B - so either is "good".

  • Any ideas on how can I format grade cells so that if it contains the target grade (or either of the 2 if over the boundary) or an earlier letter (as in exceeds the target) - as Green for "good" or if it's a later letter in the alphabet it's Red for "bad".

So it may look a bit like the table below - I hope this makes sense!

Many thanks if anyone can help.

Paul

ForenameSurnameTarget GradeAssessment 1Assessment 2Assessment 3
JoeBLOGGSC/DAED
JohnSMITHA/BBBD
JaneDOECEBC



<colgroup><col style="width: 48pt;" span="6" width="64">
<tbody>


</tbody>
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Assuming table is in A1:F4, with Assessment grades starting in D2...

Select from D2:F4, the go to Home|Conditional Formatting, select to use a formula to determine which cells to format...

Then enter formula:

=D2<=RIGHT($C2) Note: If it is possible to have blanks, then use formula: =AND(D2<>"",D2<=RIGHT($C2))

click Format and choose Green from the Fill tab.

Click Ok, then click New Rule and repeat above with formula:

=D2>RIGHT($C2) and select Red
 
Upvote 0

Forum statistics

Threads
1,215,475
Messages
6,125,028
Members
449,205
Latest member
Eggy66

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