+ Reply to Thread
Results 1 to 4 of 4

Large data base with two sets incident numbers need to be joined to form one file

  1. #1
    Forum Contributor
    Join Date
    03-06-2015
    Location
    houston, tx
    MS-Off Ver
    MS 365
    Posts
    522

    Large data base with two sets incident numbers need to be joined to form one file

    I am using excel 2016.

    I have two large database files with data. The files have "unique" Incident Numbers associated with row data.
    I have attached a sample file with a small amount of data which represents my files and the results I need.
    The unique number column is highlighted in red in column A and F.
    Column A has duplicate numbers and column F does not. But I need to have one file which combines all incident numbers found in Column A. No matter if they are duplicates are non duplicates. If Column A and F match, then data in columns J:S to be added to all Rows found in Columns A:D.

    The number of rows of data in Columns A:D are 120,347 whereas the number of Rows in Columns F:S are 99,830.


    Because Columns A:D have duplicates, there are 20,517 more rows of data then what is found in Columns F:S.

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    371

    Re: Large data base with two sets incident numbers need to be joined to form one file

    Ok, so your "Status" database on the right has the incident number as a primary key (there can only be one status per incident number) and your "NIB" database on the left has the incident number as a foreign key (there can be multiple NIBs per incident number).

    This would be much better with a proper database but you can match the data using VLOOKUP or INDEX/MATCH. Take your NIB data and add some columns on the end which look up the NIB data's foreign key against the Status data's primary key and return all the columns you wish.

    More info on VLOOKUP and INDEX/MATCH:
    https://spreadsheeto.com/vlookup/
    https://www.deskbright.com/excel/using-index-match/
    Design everything to be as simple as possible, but no simpler.

  3. #3
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Large data base with two sets incident numbers need to be joined to form one file

    You could use this code:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  4. #4
    Forum Contributor
    Join Date
    03-06-2015
    Location
    houston, tx
    MS-Off Ver
    MS 365
    Posts
    522

    Re: Large data base with two sets incident numbers need to be joined to form one file

    Thank you for your help. Blessings,

+ 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. [SOLVED] Very large data base and need to separate address from street name
    By pick44 in forum Excel General
    Replies: 2
    Last Post: 08-22-2017, 12:23 PM
  2. [SOLVED] Large Data Base has Numbers that need to be separated by a "."
    By pick44 in forum Excel General
    Replies: 2
    Last Post: 07-11-2017, 09:55 AM
  3. [SOLVED] Find or Match and Replace-large data base
    By kunjanee in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-28-2017, 02:42 AM
  4. Separating numbers from words in cells in large data file
    By cbarth in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-08-2015, 07:06 AM
  5. Fire Service Incident Log (Form Coding Help)
    By FF3886 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-17-2014, 10:41 AM
  6. Replies: 3
    Last Post: 02-26-2014, 09:26 PM
  7. Finding streaks in large sets of numbers
    By Jish in forum Excel General
    Replies: 4
    Last Post: 02-14-2010, 08:48 PM

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