Lets say that in an excel sheet
first column has
a
s
d
f
h
j
and second column has
s
d
f
If the contents in column2 match with the contents in column1 then it should be replaced with null.
The final results would be as shown below, since s,d and f are common across the two files.
a
null
null
null
h
j
How do I achieve this in Excel?
With a basic formula
Edit: I used two columns from the same sheet in the same workbook. If you actually have two files then column B should be linked directly in from the second workbook
=IF(ISNA(MATCH(A1,B:B,0)),A1,"null")
and copy down I'm not exactly sure what you mean by "files", but you can probably do this with the MATCH function if it's just a one time process. Otherwise you'll need a bit of VBA as well.
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.