Conditional Format based on column header

巧了我就是萌 提交于 2019-12-12 17:33:05

问题


I have a list of products in Column A, csv lists of attributes in column B, then a column for each unique attribute across the sheet to column BI.

I want to highlight the cells in each column, that appear in the csv for that row. I'll try and explain with this example:

ColumnA          ColumnB          ColumnC     ColumnD      ColumnE     etc...
Products         csv List        Attribute1  Attribute2   Attribute3   etc...
Product1  Attribute1,Attribute3  (Formatted)   (blank)    (Formatted), etc...
Product2  Attribute2,Attribute3    (blank)   (Formatted)  (Formatted), etc...

So, if the column name appears in the respective row's csv, then format the cell.

Is this possible?


回答1:


Make the conditional formatting by formula, set the range (in this case) to $C$2:$E$3 and the formula to =SEARCH(C$1, $B2) The relative reference will do the rest by adjusting the search term and lookup range automatically



来源:https://stackoverflow.com/questions/33223329/conditional-format-based-on-column-header

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