是否有一个excel公式可以搜索列表并突出显示包含来自其他列表的单词的文本? [英] Is there an excel formula that will search a list and highlight text containing words from a different list?

查看:149
本文介绍了是否有一个excel公式可以搜索列表并突出显示包含来自其他列表的单词的文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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.

有人知道这是否可能吗?

Anyone know if this is possible?

推荐答案

是的

=SUMPRODUCT(--ISNUMBER(SEARCH($C$1:$C$6,A1)))>0

这篇关于是否有一个excel公式可以搜索列表并突出显示包含来自其他列表的单词的文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆