Vlookup + sum

RussChilds

Active Member
Joined
Jun 8, 2007
Messages
267
H! :)

Using Excel 2003. I have a 2 columns with pupil grades. Column A = Target Grade & B = Exam Grade. I have lookup table to convert the grade to a value.
Table values:
A= 5
B= 4
C =3
D =2
E =1
U =0

I want to conditional format so Green is for grades higher than target, orange is on target and red is below target.

For example: A1 = "B" & B2 = "C"

I'm using =VLOOKUP(A1,TBL,2,FALSE) & =VLOOKUP(B1,TBL,2,FALSE) to convert the grade to value. How do I then say I want B1 is greater than A1 to be Green?

Many thanks,
Russ
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Manually apply red format to all the column B cells, then apply these CFs.

Excel Workbook
AB
1TargetGrade
2AB
3BA
4CC
5BU
6AA
7DB
CF Grade
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B21. / Formula is =B2=A2Abc
B22. / Formula is =VLOOKUP(B2,TBL,2,0)>VLOOKUP(A2,TBL,2,0)Abc
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,753
Members
452,940
Latest member
rootytrip

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