Results 1 to 3 of 3
  1. #1
    N Bru is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    1

    How to remove duplicates from Excel while retaining data for relationships in Access?

    Newby here so apologies if my terminology is off...

    I have a single Excel worksheet that includes a lot of repeated data values (though each row is unique) that I'd like to move into Access.



    Basically the worksheet contains BusinessName, ClientContact, StaffAssigned, Event1, Event2, Event3, (and about 15 other columns).

    I eventually want to set up the Access relationships where one BusinessName may have many ClientContacts who each have attended many Events. At the same time the StaffAssigned may be responsible for many BusinessNames.

    I have no SQL experience so was hoping to just create separate tables, create primary keys and join tables to create relationships, but it seems I would have to manually manipulate the spreadsheet to match IDs before being able to import into tables.

    Any ideas are greatly appreciated!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    The spreadsheet is not a normalized data structure so this won't be a simple import.

    Getting the event fields into normalized structure will probably involve a UNION query.

    If you want to use autonumber field as primary key that will require some updating of dependent tables after the import and after data is in normalized tables.

    Right now it appears the only common identifier is the BusinessName. If this is not consistently spelled throughout the spreadsheet, need to clean up before import.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Quote Originally Posted by N Bru View Post
    but it seems I would have to manually manipulate the spreadsheet to match IDs before being able to import into tables.
    Would suggest getting over with the designing of the tables & relationships first.
    Depending on the number of records, importing from excel in to access, though tedious, is definitely possible & as you pointed out, might require a bit of manipulation. I hope the data in your Excel is standardized, else that would be the 1st thing, even before the design phase, you will have to undertake.

    Thanks

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Want to remove duplicates from a SQL code
    By Huddle in forum Access
    Replies: 1
    Last Post: 12-31-2013, 03:11 PM
  2. Replies: 1
    Last Post: 12-23-2013, 03:19 PM
  3. Replies: 5
    Last Post: 12-30-2011, 01:01 AM
  4. remove Left Join duplicates
    By lokiluke in forum Queries
    Replies: 2
    Last Post: 09-16-2011, 04:53 AM
  5. How to remove duplicates
    By TonyBender in forum Access
    Replies: 0
    Last Post: 10-21-2009, 10:27 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums