如果单元格B重复,Excel将单元格A复制到单元格C.

时间:2012-11-12 16:06:23

标签: excel duplicates

我在Excel中有两列,列A是数字,列B是各种文本的副本。

如果B列重复,我需要一种方法将A列复制到C列?

2 个答案:

答案 0 :(得分:0)

如果您只是想表明重复,那么这适用于您的情况(公式是C2)吗?

=IF(COUNTIF(B:B,B2)>1,A2,"")

答案 1 :(得分:0)

Work on a copy, with data headers assumed to be in row 1. Sort data by column B.

In C2, type =IF(B2=B1,A1,"") and copy down the sheet.

Then, if there's a duplicate, it will appear in column C