Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 358
  • Last Modified:

Conditional Formatting - Compare two rows respectively

Hey guys,

I have been fiddling around with Excel for ages now and cannot do what seems to be a simple task.

I have two rows of data which I want to compare. If the information matches I want the cell in the 2nd row to turn green, if the information doesn't match I want the cell to turn red.

Thus for the data below, F1&F2 should be red and F3:F9 should be green.

  Data
Can someone please help me out.
Cheers
G_M
0
G_M
Asked:
G_M
  • 2
2 Solutions
 
TommySzalapskiCommented:
Take out the $ and it should work.
When you set the formula, select the entire column F and set on the condition that it =E1 not =$E$1 and it should work.
0
 
TommySzalapskiCommented:
You also might want to add the condition that if they are equal F1 isn't blank. See the example sheet. I used
=F1<>E1 fill red
=AND(F1=E1,NOT(ISBLANK(F1))) fill green
format.xls
0
 
G_MAuthor Commented:
Thankyou
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now