简体   繁体   English

Excel:如何列出范围内包含两个字符的所有单元格

[英]Excel: how to list all cells from the range that contain two characters

I'd like to list all the cells that contain two characters within the string.我想列出字符串中包含两个字符的所有单元格。

I tried something like this:我试过这样的事情:

=AND( ISNUMBER(SEARCH("A";$C$2:$C$14)); ISNUMBER(SEARCH("T";$C$2:$C$14)))

but it does not work...但它不起作用......

I'd expect an output like in col "p" and "q"我希望像“p”和“q”中的 output

在此处输入图像描述

if you have Excel 365 you can use this formula:如果你有 Excel 365 你可以使用这个公式:

=LET(dCheck,$A$2:$A$12,
dResult;$B$2:$B$12;
lookFor, TEXTSPLIT(C1,","),
searchResult,BYROW(dCheck, LAMBDA(r,ISNUMBER(SUM(SEARCH(lookFor,r))))),
FILTER(dResult,searchResult))

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Excel VBA高亮显示范围内不包含单词列表中文本的单元格 - Excel VBA Highlight Cells in Range that Do Not Contain Text from a List of Words 如何突出显示两个Excel单元格,每个单元格中包含多个单词 - How to highlight two excel cells contain multiple words in each cell *EXCEL* 如果一系列单元格包含 *STRING*,则从正单元格中提取十进制数字的总和 - *EXCEL* If a range of cells contain *STRING* then extract the sum of decimal numbers from positive cells 如何删除所有不包含特定值的单元格(在VBA / Excel中) - How to delete all cells that do not contain specific values (in VBA/Excel) 如何从 excel 的范围中排除特定单元格? - How to exclude particular cells from a range in excel? 如何使用Excel.Interop将列表中的值填充到Excel中的一系列单元格? - How to populate values from a list to a range of cells in an Excel using Excel.Interop? 在Excel中计算范围内的所有单元格 - Count ALL Cells in Range in Excel 如何在两个不同的Excel工作表中比较两个单元格区域? - How to compare two range of cells in two different excel Worksheets? 将范围定义为所有包含特定值的单元格 - Define a range as all cells that contain a certain value 检查范围内的所有单元格是否包含相同的值 - check if all cells in a range contain same value
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM