Conditional formatting coloring errors when comparing text values in column to top row

↘锁芯ラ 提交于 2019-12-08 04:28:10

问题


I'm trying to make my Google spreadsheet (that is populated with textual responses from Google Forms) to color the background of the "wrong" cells red. I have the correct answer for each column at the very top in row 1. These are all alphabetical text, not numerical answers.

IF the value is NOT EQUAL to the top of the column, that cell is colored. So the "wrong" response in the below example will be colored, as it isn't the same text as the top row:

  ____ A ___  B  ___  C  ___  D  __
1   ans1     ans2   ans3      ans4
2   *wrong*  ans2   ans3      *wrong*
3   ans1     ans2   *wrong*   ans4

Here's where I've come across a problem. With help from AdamL, I used =AND(LEN(F5),F5<>F$1) on the range F5:CM, which did the job for three of my spreadsheets, but two of the spreadsheets are working up.

1) Cells with the value TRUE are being universally colored.
2) Column L colors cells with the correct target answer (from L1) of FALSE.
3) The rest of the cells (from all columns) show no coloring response to the "wrong" values (values that don't match the top), only coloring the cell if has the text "TRUE".

Any ideas why this might be happening?

LINK to the spreadsheet


回答1:


Please try:

Custom formula is =F$1<>F5 with formatting of choice and range: F5:CM1005.



来源:https://stackoverflow.com/questions/26825806/conditional-formatting-coloring-errors-when-comparing-text-values-in-column-to-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!