Excel提取设定的多个关键字段

从一段文字中,提取事先设定的关键字段:

   在M2单元格输入下列公式:

=IFERROR(IF(FIND(O$2,Q2),O$2&" "),"")&IFERROR(IF(FIND(O$3,Q2),O$3&" "),"")&IFERROR(IF(FIND(O$4,Q2),O$4&" "),"")&IFERROR(IF(FIND(O$5,Q2),O$5&" "),"")&IFERROR(IF(FIND(O$6,Q2),O$6&" "),"")&IFERROR(IF(FIND(O$7,Q2),O$7&" "),"")&IFERROR(IF(FIND(O$8,Q2),O$8&" "),"")&IFERROR(IF(FIND(O$9,Q2),O$9&" "),"")&IFERROR(IF(FIND(O$10,Q2),O$10&" "),"")&IFERROR(IF(FIND(O$11,Q2),O$11&" "),"")&IFERROR(IF(FIND(O$12,Q2),O$12&" "),"")&IFERROR(IF(FIND(O$13,Q2),O$13&" "),"")&IFERROR(IF(FIND(O$14,Q2),O$14&" "),"")&IFERROR(IF(FIND(O$15,Q2),O$15&" "),"")&IFERROR(IF(FIND(O$16,Q2),O$16&" "),"")&IFERROR(IF(FIND(O$17,Q2),O$17&" "),"")&IFERROR(IF(FIND(O$18,Q2),O$18&" "),"")&IFERROR(IF(FIND(#REF!,Q2),#REF!&" "),"")
posted @ 2019-02-18 22:26  武功震树  阅读(2400)  评论(0编辑  收藏  举报