Conditional Formatting - Grading

thumbyyy

New Member
Joined
Apr 11, 2014
Messages
5
Hi,

I'm trying to grade quines and need some help with conditional formatting. Is there a way to do conditional formatting for all answers to match the key that is in the top row? I can set the conditional column by column, but I have a more than 100 columns, and wondering if there's a faster way?

[TABLE="width: 500"]
<tbody>[TR]
[TD]Answer Key[/TD]
[TD]A[/TD]
[TD]C[/TD]
[TD]T[/TD]
[TD]B[/TD]
[TD]D[/TD]
[TD]A[/TD]
[TD]C[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]BOB[/TD]
[TD]A[/TD]
[TD]C[/TD]
[TD]F[/TD]
[TD]B[/TD]
[TD]D[/TD]
[TD]A[/TD]
[TD]C[/TD]
[TD]A[/TD]
[TD]D
[/TD]
[/TR]
[TR]
[TD]JANE[/TD]
[TD]A[/TD]
[TD]C[/TD]
[TD]T[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]A[/TD]
[TD]C[/TD]
[TD]A[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]JOHN[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]T[/TD]
[TD]C[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]B[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]MARY[/TD]
[TD]C[/TD]
[TD]C[/TD]
[TD]F[/TD]
[TD]B[/TD]
[TD]D[/TD]
[TD]C[/TD]
[TD]C[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
</tbody>[/TABLE]


Thank you in advance!:confused:
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Sure. In this example, I had columns B:J with the answers, adjust as needed. The "B" in the formula refers to the first column in your selection.

Select your columns, B:J. Then click Conditional Formatting > New Rule > Use a formula > and enter:

=AND(B1<>"",ROW()>1,B1=B$1)

and select your fill color. Let me know how this works.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,226,730
Messages
6,192,698
Members
453,747
Latest member
tylerhyatt04

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