Exam grade conditional formatting

Liammi

New Member
Joined
Aug 26, 2011
Messages
20
Hi. I am trying to analyse our students' results against their forecast grades - A* A B C D E F G etc

I have a worksheet showing the student names. Then there is a column for each subject with the corresponding forecast grade column adjacent to it.

I need to apply conditional formatting so that if the result is equal to the forecast grade then the result cell is amber, if it is above then it is green, if it is below then it is red. Also, if there is no forecast grade then the result cell should be blank.

I can apply the formatting to the first cell of the first subject, but how do I copy it to the rest of the column and to the other subjects? I have tried format painter, but it compares the results to the first cell only.

Hope this makes sense and you can assist. Many thanks
 
Excel Workbook
ABCDE
1Name.Grade.ForecastIF GRADE = FORECAST THEN AMBER
2joe 1AAIF GRADE > FORECAST THEN GREEN
3jane 1BBIF GRADE< FORECAST THEN RED
4henry 1CCIF FORECAST='' THEN NO COLOUR
5peter 1DD
6lisa 1EHIGHEST = A*
7silvia 1FFFOLLOWED BY A,B,C,D,E,F,G,H
8john 1GGH IS LOWEST
9jenny 1HH
10joe 2AA*<===
11jane 2BC
12henry 2CD
13peter 2DE
14lisa 2E
15silvia 2FG
16john 2GH
17jane 3BA
18henry 3CB
19peter 3DC
20silvia 3FD
21john 3GE
22jenny 3HF
23joe 4A*A*<===
24jane 4A*A
25henry 4A*B
26peter 4A*C
27silvia 4A*D
28john 4A*E
29jenny 4A*F
30ben 4A*G
Sheet2
Excel 2010




CF Rules
Excel Workbook
must be in this order
RulesFormatRangeStop if true
1Formula =IF(C2="",TRUE,FALSE)blank=$C$2 : $C$30Yes
2Formula =IF(AND(C2="A*",B2="A"),TRUE,FALSE)red=$C$2 : $C$30
3Cell value = B2amber=$C$2 : $C$30
4Cell value > B2green=$C$2 : $C$30
5Formula=IF(B2="A*",TRUE,FALSE)green=$C$2 : $C$30
6Cell value< B2red=$C$2 : $C$30
...

Excel 2010

Hope I got it right this time.

Rob
 
Last edited:
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
To see the effects of rule 2 and 5 assign a slightly different shade of red and green. If happy change to same red and green as the others.
Rob
 
Upvote 0
Just learned something new on the forum.:biggrin:
This works too and its shorter:

Formula =C2=""
Formula =AND(C2="A*",B2="A")
Cell value = B2
Cell value > B2
Formula=B2="A*"
Cell value < B2
 
Upvote 0
Many thanks for this Rob, apologies for the delay but I have been out of the office this morning. I the meantime I had figured out a workaround based on the previous rules you gave me. I moved the amber rule to number 2, then added another rule (as rule 3) for results equalling A* to be green with stop if true. Then changed the other "green" to a straightforward less than value.

But as you say, I think the one you have just given me is more straightforward.

Thanks again for all your help, I have learnt a lot in the last couple of days.

Regards
Denise :):)
 
Upvote 0

Forum statistics

Threads
1,224,514
Messages
6,179,223
Members
452,896
Latest member
IGT

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