+ Reply to Thread
Results 1 to 6 of 6

Matching duplicate records from different excel CSV files

  1. #1
    Registered User
    Join Date
    11-24-2013
    Location
    Africa
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question Matching duplicate records from different excel CSV files

    Hello,

    I've been trying to match records from two different CSV files and deleting the ones which do not match.

    Here's the exact question:

    The Membership.csv file contains details of people who are no longer members.
    The Attendances.csv file is the up-to-date list.
    The manager wants you to find out which members should no longer be included in the
    membership list.

    How can I solve this problem? Please help

    Thanks

  2. #2
    Forum Contributor amit.wilson's Avatar
    Join Date
    07-09-2013
    Location
    Gotham
    MS-Off Ver
    Excel for Mac 2011
    Posts
    283

    Re: Matching duplicate records from different excel CSV files

    Hello J - welcome to the forum.

    In the membership file, setup a column to do a vlookup on the data in the attendance data. If there is a match, put the result as 1 else 0. Sort the membership data on this vlookup column. Then delete the all the rows with 1s.

    Cheers
    <-- If you're happy & you know it...click the star.:-)

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Matching duplicate records from different excel CSV files

    This sounds very much like a homework question?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    11-24-2013
    Location
    Africa
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Matching duplicate records from different excel CSV files

    Quote Originally Posted by amit.wilson View Post
    Hello J - welcome to the forum.

    In the membership file, setup a column to do a vlookup on the data in the attendance data. If there is a match, put the result as 1 else 0. Sort the membership data on this vlookup column. Then delete the all the rows with 1s.

    Cheers
    Thanks a lot for your reply..

    I tried doing a vlookup, but I didn't really get it. I'll appreciate if you could elaborate a little more (I'm new to this stuff).

    I think my question wasn't clear enough. Here's a better version:

    There are two tables; membership.csv and attendances.csv.
    The membership.csv file contains members who are both inactive and active. The attendances.csv file contains only active members.
    So the question requires us to find out which members should no longer be included in the membership.csv file and delete their records.
    How can I do that?

    I hope this explains it well.

    Thank you once again for your help.. waiting for your reply

  5. #5
    Registered User
    Join Date
    11-24-2013
    Location
    Africa
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Matching duplicate records from different excel CSV files

    Quote Originally Posted by FDibbins View Post
    This sounds very much like a homework question?
    Not really, I'm doing a CIE practice paper for my examinations

  6. #6
    Forum Contributor amit.wilson's Avatar
    Join Date
    07-09-2013
    Location
    Gotham
    MS-Off Ver
    Excel for Mac 2011
    Posts
    283

    Re: Matching duplicate records from different excel CSV files

    J, the formula in the membership sheet should look like this:

    =IF(ISERROR(VLOOKUP(Member name or ID in membership list, table of member names or IDs in attendance list,1,0),0,1)))

    Think about what this formula is doing. And then think about how to separate the resulting data into active and inactive members.

    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Merging records / creating new columns based on duplicate records
    By duklaprague in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-19-2007, 10:32 AM
  2. Replies: 0
    Last Post: 07-19-2007, 02:58 AM
  3. [SOLVED] How to combine Excel 2002 files and remove duplicate records?
    By Dave542 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-06-2006, 08:10 AM
  4. [SOLVED] how can i get rid of duplicate records in excel?
    By Amber in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  5. how can i get rid of duplicate records in excel?
    By Amber in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1