Excel question - identifying records in data sets
Excel question - identifying records in data sets
Author
Discussion

Frimley111R

Original Poster:

19,322 posts

264 months

Tuesday 13th February 2018
quotequote all
I have 2 email lists. One has 100 records in it and one has 80. The 80 are also duplicated in the 100 and I want to know how to identify the 20.

How can I do this in Excel?



hyphen

26,262 posts

120 months

Tuesday 13th February 2018
quotequote all
If comfortable using formula's, VLookup each list against the other.

If not, you could combine the lists in one column, and create a pivot table wth a count.

akirk

5,778 posts

144 months

Ellb123

117 posts

109 months

Tuesday 13th February 2018
quotequote all
Well this makes for a boring first post!

if you get them all in one list, highlight the column then go to Data > Remove duplicates that should do the trick.

ETA;

I think I've read that wrong, as above if you Vlookup against the list then filter by N/A's that should be your 20

Edited by Ellb123 on Tuesday 13th February 09:19

number2

5,242 posts

217 months

Tuesday 13th February 2018
quotequote all
=match($A1,$B$1:$B$80,0) it looks for an exact match of what's in the reference cell A, in column B, and returns its location, or an error if not present.

column A1:A100 has your 100 rows in, column B1:B80 has the 80 rows, and column C1:C100 has the formula above. Type it in C1 and copy it down to C100. Records that are not in the 80, will have an error in the cell. [you don't have to use columns A to C, just a guide]

Frimley111R

Original Poster:

19,322 posts

264 months

Tuesday 13th February 2018
quotequote all
Excel geeks everywhere!! hehe

Thanks everyone, I'll give those a go.

Frimley111R

Original Poster:

19,322 posts

264 months

Tuesday 13th February 2018
quotequote all
number2 said:
=match($A1,$B$1:$B$80,0) it looks for an exact match of what's in the reference cell A, in column B, and returns its location, or an error if not present.

column A1:A100 has your 100 rows in, column B1:B80 has the 80 rows, and column C1:C100 has the formula above. Type it in C1 and copy it down to C100. Records that are not in the 80, will have an error in the cell. [you don't have to use columns A to C, just a guide]
Ok, 100 in column A, 80 in column B and copy equation into cell c and copy down.

Excel didn't like the formula for some reason, says there's a problemo with it

Frimley111R

Original Poster:

19,322 posts

264 months

Tuesday 13th February 2018
quotequote all
akirk said:
Yes thanks, this did it. Copied =IF(ISERROR(MATCH(A1,$B$1:$B$10000,0)),"Unique","Duplicate") into column C and that identified duplicates. It'd be better if removed dupes too but this is still ok.

akirk

5,778 posts

144 months

Tuesday 13th February 2018
quotequote all
Frimley111R said:
Yes thanks, this did it. Copied =IF(ISERROR(MATCH(A1,$B$1:$B$10000,0)),"Unique","Duplicate") into column C and that identified duplicates. It'd be better if removed dupes too but this is still ok.
If there are duplications within a column as well:
there is a built in excel de-duplication option:
https://support.office.com/en-us/article/filter-fo...

it simply doesn't do it across two separate columns, data needs to all be in one column...
so either de-dup. each column first, or de-dup using the above method and then excel to de-dup the final results

if the duplication is only between the columns, then the above formula works to identify the duplicates (which excel will not do) and then you can use excel's filtering or sorting etc. to easily remove the ones you don't want...

akirk

5,778 posts

144 months

Tuesday 13th February 2018
quotequote all
Frimley111R said:
number2 said:
=match($A1,$B$1:$B$80,0) it looks for an exact match of what's in the reference cell A, in column B, and returns its location, or an error if not present.

column A1:A100 has your 100 rows in, column B1:B80 has the 80 rows, and column C1:C100 has the formula above. Type it in C1 and copy it down to C100. Records that are not in the 80, will have an error in the cell. [you don't have to use columns A to C, just a guide]
Ok, 100 in column A, 80 in column B and copy equation into cell c and copy down.

Excel didn't like the formula for some reason, says there's a problemo with it
the formula that did work, simply wraps this approach - what this is doing is saying look for value from this cell within the destination range - the working formula added around that - if there is an error put this / otherwise this...

R8Steve

4,150 posts

205 months

Tuesday 13th February 2018
quotequote all
Another quick lazy option is to put all the data in the same column, conditional format to show duplicates in red. data & sort by cell colour.

The ones remaining in white are the ones you are looking for.

ModernAndy

2,094 posts

165 months

Tuesday 13th February 2018
quotequote all
would a COUNTIF not be the most simple way of doing this other than copying and pasting the data into 1 column?

If the records are in multiple columns then CONCATENATE them all into 1 final column on both sheets then do a COUNTIF using the concatenated column as the benchmark and the other work sheet's concatenated column as the range.

DaveH23

3,355 posts

200 months

Tuesday 13th February 2018
quotequote all
R8Steve said:
Another quick lazy option is to put all the data in the same column, conditional format to show duplicates in red. data & sort by cell colour.

The ones remaining in white are the ones you are looking for.
This.

Or highlight unique whichever you prefer.