[英]Excel: Find rows with matching data except for 1 column
I have an Excel sheet with thousands of rows in it. 我有一个包含数千行的Excel工作表。 It has 3 columns: name, date and yes/no.
它具有3列:名称,日期和是/否。
Please see this image for the example: 请参见以下图像的示例:
I'm looking for pairs of rows which are duplicate in column A & B, but have different values in column C. In my example above, rows 1&7 is a pair while rows 3&4 is not. 我正在寻找在A和B列中重复但在C列中具有不同值的行对。在上面的示例中,第1&7行是一对,而第3&4行则不是。
Is there a way in Excel to highlight all of the pairs, delete all rows which are not part of a pair or some other way for me to recognize the pairs? Excel中是否可以突出显示所有对,删除不属于对的所有行,或者通过其他方式识别这些对?
You can try to concatenate all three into one line in column D =CONCATENATE(A1,B1,C1)
. 您可以尝试在列D
=CONCATENATE(A1,B1,C1)
中将所有三个连接成一行。 Then do a conditional format of matching values on column D. After that Sort by color and delete what is no longer needed. 然后,对D列执行匹配值的条件格式。之后,按颜色排序并删除不再需要的内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.