是否有一个 excel 公式可以搜索列表并突出显示包含来自不同列表的单词的文本? [英] Is there an excel formula that will search a list and highlight text containing words from a different list?
问题描述
我在一个 excel 文档中有两个表格(更像是列表);两者都只有一列.我想创建一个公式来搜索第一个列表并突出显示包含第二个列表中的一个单词的所有单元格.
I have two tables (more like lists) in an excel doc; both are only one column. I want to create a formula that will search the first list and highlight any cells that contain one of the words in the second list.
例如:
列表1:
干洗洗发水
指甲油
留在护发素
护手霜
面膜
List 1:
dry shampoo
nail polish
leave in conditioner
hand lotion
face mask
列表2:
面具
洗发水
肥皂
保湿剂
清洁剂
空调
List 2:
mask
shampoo
soap
moisturizer
cleanser
conditioner
该公式将搜索列表 1,并根据洗发水"、护发素"和面膜"在列表 2 中的条件突出显示单元格干洗洗发水"、留在护发素中"和面膜".
The formula would search List 1 and highlight the cells "dry shampoo" "leave in conditioner" and "face mask" based on the criteria that the words shampoo, conditioner, and mask are in List 2.
有人知道这可能吗?
推荐答案
是的:
=SUMPRODUCT(--ISNUMBER(SEARCH($C$1:$C$6,A1)))>0
这篇关于是否有一个 excel 公式可以搜索列表并突出显示包含来自不同列表的单词的文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!