码迷,mamicode.com
首页 > 其他好文 > 详细

EXCEL IF 函数 模糊查询

时间:2016-08-30 17:51:44      阅读:233      评论:0      收藏:0      [点我收藏+]

标签:

A列都是产品名,比如衬衫,长袖衬衫,短袖衬衫,短裙,长裙 搜索A列的产品名,凡是含有“衬衫”的一律在B列对应行输出“衬衫”,凡是含有“裙”字的一律输出“裙子”在B列对应行,请教一下怎么写函数,本来用IF函数: =IF($A8="衬衫","衬衫",IF($A8="裙","裙...

输入以下公式

=IF(COUNTIF(A8,"*衬衫*")>0,"衬衫",IF(COUNTIF(A8,"*裙*")>0,"裙子",IF(COUNTIF(A8,"*外套*")>0,"外套","其他服装")))

 

技术分享

 

 

=IF(H2="成交词","A")

-------------------------------------------------------
=IF(COUNTIF(B2,"*费用*")>0,"成交词",
IF(COUNTIF(B2,"*多少钱*")>0,"成交词",
IF(COUNTIF(B2,"*价格*")>0,"成交词",
IF(COUNTIF(B2,"*怎*")>0,"询问词",
IF(COUNTIF(B2,"*仪器*")>0,"询问词",
IF(COUNTIF(B2,"*去皱*")>0,"询问词",
IF(COUNTIF(B2,"*副作用*")>0,"询问词",
IF(COUNTIF(B2,"*原理*")>0,"询问词",
IF(COUNTIF(B2,"*超声刀*")>0,"询问词",
IF(COUNTIF(B2,"*除皱*")>0,"询问词",
IF(COUNTIF(B2,"*方法*")>0,"询问词",
IF(COUNTIF(B2,"*射频*")>0,"询问词",
IF(COUNTIF(B2,"*窍门*")>0,"其它",
IF(COUNTIF(B2,"*技巧*")>0,"其它",
IF(COUNTIF(B2,"*妙招*")>0,"其它","其它")))

----------------------------------------------------------------


=IF(COUNTIF(H2,"*其它*")>0,"C",
IF(COUNTIF(H2,"*成交词*")>0,"A",
IF(COUNTIF(H2,"*询问词*")>0,"B",
"D")))

 

-------------------------------------------------------------------

IF(COUNTIF(H2,"*超声刀*")>0,"询问词",

技术分享

 

EXCEL IF 函数 模糊查询

标签:

原文地址:http://www.cnblogs.com/xiaomifeng/p/5822412.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!