Select the rows to which you want to apply conditional formatting.
Create a new conditional rule using the "Use a formula to determine cells to format" option.
In the "Format Values where this formula is true:", you can use a formula like:
=OR($A2<>$A7, $B2<>$B7....)
The comparison should be repeated for each column you want to compare.
Another option is to use:
= CONCATENATE($A2:$I2)<>CONCATENATE($A7:$I7)
($I should be your end column letter.)
1
purplesoupAuthor Commented:
I tried the first option - which obviously takes along time to type in all the columns - I have about 100 - but it just highlights all the cells of both rows, even though I can see only about 3-4 are different.
0
purplesoupAuthor Commented:
Second option does the same thing...
0
Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.
Thought you wanted to know which rows had different values. My mistake. To highlight just the cells with differences (cells in row 2 that are different than a cell in the same column 5 rows below it), use:
=AND($A7<>"", A2<>A7)
This formula assumes that column A will always have a value ($A7 <> ""), and prevents comparing a row against one that is completely blank. If that is not the case, and you do not have a column that will always have a value, let me know and I can provide a different formula.
1
purplesoupAuthor Commented:
I may be missing something here. I highlighted A2 and A7 and entered the formula above - the values were different and it correctly highlighted both cells.
I then highlighted B2, C2 and D2, and B7, C7 and D7 and entered the following (none of them had blank values):
=AND($B2<>$B7, $C2<>$C7,$D2<>$D7)
Although all the values matched, it highlighted B2, C2 and D2.
I then highlighted B2 and B7 - as I said the values match - and entered this formula.
=AND($B7<>"", B2<>B7)
This worked - there is no highlighting.
I then highlighted C2, D2 and E2 and C7, D7 and E7 and entered the following formula:
Again, this highlighted C2, D2 and E2 even though the values matched.
So while I can see that this formula works if I apply it one cell at a time, I can't go through 100 of cells in a row and apply the formatting individually to each one. I need something which just says compare these two rows and highlight the cells that are different. Is this possible?
0
purplesoupAuthor Commented:
Thank you for your suggestions by the way I don't mean to be rude.
I'm listing the steps you need to follow to make this work. I believe you are missing the first step.
1.) Highlighting the entire area on your spreadsheet where you want to compare cells. If you are doing columns A to H and rows 2 to 20, then select the area from A2 to H20.
2.) Then select Conditional Formatting and then New Rule.
3.) Select "Use a formula to determine which cells to format".
4.) Enter the formula you want to use. In this case, try:
=AND($A7<>"", A2<>A7)
5.) Select your formatting.
6.) Click OK to exit the dialog box.
The use of the $ in the formula anchors that portion of the formula to column A, while the rest of the formula is not anchored. So if there is a difference between cells B2 & B7, the conditional formatting rule treats the formula as if it was =AND($A7<>"", B2<>B7).
Oh, and you are not being rude. Conditional formatting beyond some of the simple stuff can be very confusing until you work through it. Sometimes it helps to break out what you are attempting into small steps, and adding on more complex parts until you get the desired result.
1
purplesoupAuthor Commented:
EXCELLENT!
Thank you for your patience - I've attached screenshots to show it working.
Create a new conditional rule using the "Use a formula to determine cells to format" option.
In the "Format Values where this formula is true:", you can use a formula like:
=OR($A2<>$A7, $B2<>$B7....)
The comparison should be repeated for each column you want to compare.
Another option is to use:
= CONCATENATE($A2:$I2)<>CONC
($I should be your end column letter.)