EXCEL IF 函数 模糊查询

时间:2021-04-21 21:30:01

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

输入以下公式

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

EXCEL    IF 函数 模糊查询

=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 函数 模糊查询