简体   繁体   中英

Search a range of strings in a range of cells

I have a range of cells B1:F1 that each contain a different string. I want to find rows that the respective cells don't contain the string in the range, so that I can see, for example, that in row 2 cell B2 contains the string in B1, C2 contains C1 and so on.

在此处输入图片说明

{=FIND(B1:F2,B2:F2)}

reurns #VALUE only if all the cells don't contain the string in the corresponding cell. I'm looking for a way to find rows that at least one of the cells doesn't contain the string in the cell above it in the top row. I'm looking for rows that have a cell that might have been shifted so that some cells will contain a string from a different header cell but not the one above it (eg C4 contains D1 but not C1)

This gives a count of how many match (should be 5 if all of them match)

=SUM(--ISNUMBER((FIND(B$1:F$1,B2:F2))))

entered as an array formula.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM