+ Reply to Thread
Results 1 to 6 of 6

Use formulas to find a match

  1. #1
    Registered User
    Join Date
    07-22-2020
    Location
    South Africa
    MS-Off Ver
    MS 365 Ver 2209
    Posts
    16

    Use formulas to find a match

    Hello everyone

    I have an access database and there are 2 tables containing information. Table 1 contains all the offenders' details with columns ID and Full names and table 2 contains all the offenses that the offenders committed with a column full names and another column that is linked to the offender's ID field.

    I recently designed an upgraded database of the existing one but now in table 2 the offender's ID column is empty as this was added to show the offenses that are linked to the offender

    Now I exported both tables to excel and this is the part where I'm stuck at. Column A is the ID field of the offenses. Column B is the Full Names of the offender who has committed the offense. Column C is the offender's ID number linked to his name. In column D and E are the offender's ID and Full Names that is the lookup array so that it can fill in the ID field in col. C with the matching ID found in col. D.

    I've tried vlookup but it seems I can't get it to work. I've also tried index match but no luck

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,902

    Re: Use formulas to find a match

    Without sample workbook, bit hard to help you.

    Desensitize sensitive info, while keeping data structure and type intact. To upload file, see instruction in the yellow banner at the top.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    07-22-2020
    Location
    South Africa
    MS-Off Ver
    MS 365 Ver 2209
    Posts
    16

    Re: Use formulas to find a match

    find attached spreadsheet

    There's no sensitive information. Just random names. The other information I removed from the sheet
    Attached Files Attached Files

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,902

    Re: Use formulas to find a match

    There's extra space(s) in names in E column.

    Add a helper column F.
    =TRIM(E1)

    Copy down.

    Then use INDEX/MATCH or VLOOKUP using F as lookup column.

    In any sort of data analysis, calculation. It's important that data transformation/clean-up is performed first. I'd even venture to say, that will be bulk of the work
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-22-2020
    Location
    South Africa
    MS-Off Ver
    MS 365 Ver 2209
    Posts
    16

    Re: Use formulas to find a match

    Thank you sir. That looks really good. I did notice some names captured in column B doesn't match in column F but I will sort that problem out because I want to get the stuff organised and remove incomplete data

  6. #6
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,902

    Re: Use formulas to find a match

    You are welcome

    If you are satisfied with the solution provided. Please mark the thread as solved, using thread tools found at top of your initial post.

+ 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. Replies: 15
    Last Post: 10-29-2019, 06:46 AM
  2. [SOLVED] I can't find the right mix of formulas, sumifs, match, sumproduct
    By hlz21 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-18-2016, 09:24 AM
  3. [SOLVED] Vlookup to Pivot Table, using Match function, returns error if can't find match value
    By AndrewHowarth in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-16-2015, 12:10 AM
  4. [SOLVED] Combining 3 Formulas: Return all Names that Match Criteria Using Index/Match
    By bchilme in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-29-2014, 09:28 AM
  5. Range.Find function fails to find a match but For loop confirms that match exists
    By 6StringJazzer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-08-2013, 03:35 PM
  6. Replies: 5
    Last Post: 02-29-2012, 08:51 PM
  7. Replies: 1
    Last Post: 01-31-2006, 06:25 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