首页 > 解决方案 > 如何从不包含特定字符的列表中复制值?

问题描述

例如,只要单元格不包含特定的文本子字符串,我想从值列表中复制特定值;

AB
文本文本   
发短信发短信   
文本1文本
text1.2 文本
text1.3 文本
文本1.2 文本2
texta 将变为: textb           
文本文本2.1
文本                       
文本1.3                     
文本1.2                     
文本2                       
文本b                       
文本2.1                     

只要不包含特定的文本字符串和空白值,是否有可以复制单元格的论坛?

谢谢!

标签: excelexcel-formulacopy

解决方案


If your values are in column A and the values two be excluded are in column C then in column B you can put this array formula and press Ctrl+Shift+Enter.

=IFERROR(INDEX($A$1:$A$14, SMALL(IF(ISNUMBER(MATCH($A$1:$A$14,$C$1:$C$3,0)), "", ROW($A$1:$A$14)-MIN(ROW($A$1:$A$14))+1), ROW(A1))),"")

enter image description here


推荐阅读