1

For reference, I have two data sets, one that with scraped names and one with manually input names. The Manual input set has broader coverage but the scraped set is more accurate.

So I have used textjoinif to create a list of the manually input towns for each company, I have the scraped towns each in its own cell in the same row. I want to have conditional formatting where each of the scraped values will be searched in the textjoin string associated with the same ID (same row), and highlighted green if there is a match.

It's entirely possible I'm making this more difficult than it needs to be, but this is being used for several thousand IDs and many thousand contacts

Here is the example I was using

                                                  Count   Towns
A01 Dunkin Donuts   Norwell          Dunkin Donuts  6   
A02 Honey Dew       Hanover          Honey Dew      3   
A01 Dunkin Donuts   Springfield      Beard Papa     2   
A03 Cronut          Walnut Creek     Cronut         2   
A04 Beard Papa      Culver City         
A03 Cronut          Santa Monica            
A01 Dunkin Donuts   Summerville         
A02 Honey Dew       Charlestown         
A04 Beard Papa      Oakland         
A01 Dunkin Donuts   Dorchester          
A01 Dunkin Donuts   Jamaica Plain           
A01 Dunkin Donuts   San Francisco           
A02 Honey Dew       Agoura          

enter image description here

4

3 回答 3

3

突出显示要应用条件格式的整个范围,并确保选择集的左上角是活动单元格。

转到条件格式并选择自定义公式。

在自定义公式栏中输入以下内容

Case sensitive
=FIND(G2,$f2)

NOT case sensitive
=SEARCH(G2,$f2)

应用您的颜色和您想要的任何其他格式,然后单击确定/应用,直到您返回电子表格。

于 2018-09-18T00:36:51.007 回答
1

条件格式 > 新规则 > 使用公式确定要格式化的单元格 > 使用下面的公式 > 应用于所需范围

=COUNTIF($A$1,"*"&B1&"*")

在此处输入图像描述

于 2018-09-18T00:49:44.400 回答
1

请从 ColumnsG:I 和 HOME > Styles - Conditional Formatting, New Rule... 中选择并清除任何 CF,使用公式确定要格式化的单元格在此公式为真的情况下格式化值::

=AND(G1<>"",SEARCH(G1,$F1))

Format..., 选择突出显示的选项, OK, OK.

于 2018-09-18T05:03:31.370 回答