简体   繁体   中英

Compare two columns in excel and remove duplicates

I have this two columns of names:

Column 1         Column 2

A                  B
B                  D
C                  E
D
E

I need to compare the two columns and have in output the values that are in Column 1 but not in Column 2, so the output must be:

Column 3

A
C

How can I achieve that?

Thanks

In C1 enter:

=IF(COUNTIF(B:B,A1)=0,A1,"")

and copy down.

在此处输入图片说明

The blanks can also be removed, if necessary.

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