+ Reply to Thread
Results 1 to 10 of 10

2 tables, whats missing from one that's in the other

  1. #1
    Registered User
    Join Date
    10-24-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    13

    Angry 2 tables, whats missing from one that's in the other

    I have 2 tables, I have 10,000 rows in one and 8,000 in the other, I am trying to compare what is missing from the other. Sounds easy enough. Just do a look up on a unique variable and done right. Wrong, I have in 'Column D' member_id, which is for a member and each of their family members. Well you ask, what about in 'Column G' you ask, well that is the family last name, 'Column H' that is the individual's first name, and 'Column I' the individual DoB (non work as an individual unique row identifier, the whole family has the same last name, their is the opportunity for multiple people with the same first name, and DoB).

    I am trying:

    =AND(VLOOKUP(Sheet1!$D3,Sheet2!$C:$U,1,0),VLOOKUP(Sheet1!$E3,Sheet2!$C:$U,19,0),VLOOKUP(Sheet1!$I3,Sheet2!C:U,5,0),VLOOKUP(Sheet1!G3,Sheet2!C:U,3,0),VLOOKUP(Sheet1!$H3,Sheet2!C:U,4,0))

    to gather together all the variables (mem_id, mem_ssn, ind_dob, ind_last_name, ind_first_name) to give a unique row evaluation, but I only get #N/A.

    Any help or a point in the right direction would be greatly appreciated.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: 2 tables, whats missing from one that's in the other

    Your references to D, H and G aren't particularly helpful if we don't know which table is in which coordinates.

    AND is evaluate to True or False only. AND(2>1,1>0) = TRUE

    Without seeing an example of your work, or even a made up example the best I think I can offer would be to use concatenation which can be done with "&"


    =VLOOKUP(Sheet1!$D3,Sheet2!$C:$U,1,0)&VLOOKUP(Sheet1!$E3,Sheet2!$C:$U,19,0)&...




    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: 2 tables, whats missing from one that's in the other

    Upload the workbook, or at least a representative sample and manually add the results you expect to see explaining how you have arrived at your results.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    06-27-2013
    Location
    Boulder, CO
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: 2 tables, whats missing from one that's in the other

    I know this sounds low-tech, but have you sorted by member ID numbers on each sheet, and just manually gone through and inserted rows where they don't match? In the end, if I'm understanding the problem correctly, that's what will end up happening, anyway. That way, you know you have each individual for each member ID, which could then be modified or a row identifier then added, to make each row easier to search through, later.

    Just my $0.02

    -Z

  5. #5
    Registered User
    Join Date
    10-24-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: 2 tables, whats missing from one that's in the other

    Uploaded a short example, what ever the easiest/best way of indicating what is missing from the other table, whether #N/A or whatever. I GREATLY appreciate the help.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-24-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: 2 tables, whats missing from one that's in the other

    with 10,000 rows just on one table to go through to compare to the other table then back to see if any are missing from the other table, not really how I want to spend several days.

  7. #7
    Registered User
    Join Date
    06-27-2013
    Location
    Boulder, CO
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: 2 tables, whats missing from one that's in the other

    =IF(ISNA(VLOOKUP(B2,Sheet2!$B$2:$D$10,3,FALSE)),"MISSING","")
    This uses the unique SSN number.

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: 2 tables, whats missing from one that's in the other

    Hi,

    See attached.

    The numbers simply represent the row where the match exists in the other table. In the big production version you may find the calculation is quicker of you first sort the helper column F in ascending order first.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    10-24-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: 2 tables, whats missing from one that's in the other

    That works, there is only one issue I have now. Since one of the sources was a comma delimited file, I have spaces after the first name and last name. is there a way to remove those without having to go cell by cell to remove?

  10. #10
    Registered User
    Join Date
    10-24-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: 2 tables, whats missing from one that's in the other

    nvm, I used =trim(clean()) and pasted values. Worked exactly as needed thank you!!

+ 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] Finding Missing Data Using Arrays and 2 Tables
    By jwalker1139 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-26-2014, 02:27 AM
  2. Whats a 'Drill Down' in Pivot Tables?
    By omaral in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-09-2014, 06:29 PM
  3. Index-Match formula is not working ...whats missing ?
    By raad in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-16-2012, 01:41 PM
  4. Code List Tables - missing the Linked Tables
    By RxMiller in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 12-10-2009, 01:13 PM

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