Duplicate records

  • Thread starter Thread starter k.roberts
  • Start date Start date
K

k.roberts

I have a spreadsheet that contains approx 4000 rows of info - school
code, school name, address and email. Some school codes are duplicated
as a result of a workbook merge. I need to search through the
information, find the duplicated rows and delete the row that DOES NOT
contain an email address. How do I go about doing this, if I export
the information to an access database first?
 
You can do this in Access but a manual Excel solution might be quicker.
(I appreciate you requested an Access solution but maybe you didn't
know about Autofilter.)

Just add an extra column to you worksheet that counts the occurrences of
the SchoolCode e.g. (assuming SChoolCode is in column A)

place this in row 2 and copy down:
=COUNTIF(A:A,A2)

Then use autofilter (Data \ Filter \ Autofilter) to filter for

"count column > 2"
and
"email column = empty"

and delete the displayed rows.
 
Oh. And I'm sure you spotted:

"count column > 2"

should have read

"count column > 1"

or >=2 I guess
 
Back
Top