+ Reply to Thread
Results 1 to 7 of 7

near exact match between different sheets

  1. #1
    Registered User
    Join Date
    12-31-2017
    Location
    UK
    MS-Off Ver
    7
    Posts
    42

    near exact match between different sheets

    Hi all,

    I have data in sheet 2 column G2 to G50 (person name, address, postcode, time). I want excel to look up this data as a near match in sheet 4 column B1 to B50 and then if there is a match to return the value found in this range into column L2 to L50 sheet 2. Is this possible using the vlookup function as a near/approximate match?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,725

    Re: near exact match between different sheets

    Yes, but without seeing some sample data, it's hard to advise exactly how.

    Will you please attach a sample Excel workbook? Not a picture of one!

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-31-2017
    Location
    UK
    MS-Off Ver
    7
    Posts
    42

    Re: near exact match between different sheets

    https://www.mrexcel.com/forum/excel-...nt-sheets.html

    Cross post

  4. #4
    Registered User
    Join Date
    12-31-2017
    Location
    UK
    MS-Off Ver
    7
    Posts
    42

    Re: near exact match between different sheets

    Please see attached spreadsheet. In sheet 2 column G I have data containing names and codes etc. I want a formula to search/match (by name) the information in column G against sheet 4 column B and if there is a name match then to return the values in sheet 2 (to include values in columns A, C and D of sheet4). I have coloured in red the result if this formula can work would return. This is just small sample of data column G (sheet 2) and column B (Sheet4) will contain lots more data.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: near exact match between different sheets

    See if this is helpful, it works for the sample data.
    Column E on sheet 4 is populated using: =TRIM(LEFT(SUBSTITUTE(B2," ",REPT(" ",LEN(B2)),2),LEN(B2)))
    Columns K:N on sheet 2 are populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    12-31-2017
    Location
    UK
    MS-Off Ver
    7
    Posts
    42

    Re: near exact match between different sheets

    thanks for your help . It works great, is it possible that when a match is found that it cuts the information from sheet 4. So that all that will be left on sheet 4 are those that don't match?
    Last edited by defenders; 03-24-2018 at 12:33 PM.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: near exact match between different sheets

    You're Welcome and thank you for the feedback. As to cutting information from sheet 4 a formula won't do that, you'd need VBA (I am illiterate when it comes to code). You might consider marking this thread (and the one on the MrExcel site) as 'Solved' since we found a way to match, and open a new thread on the Programming/VBA/Macros forum, on this site, asking for help in deleting rows from sheet 4 but leaving the matched information on sheet 2. I hope that you have a blessed day.

+ 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. Validating 2 cells goes wrong, finds first match instead of exact match.
    By EricNL in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2015, 08:38 AM
  2. To Sort exact and partial exact match for a single column.
    By Jagdev in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-22-2014, 05:08 AM
  3. Replies: 3
    Last Post: 06-17-2013, 12:37 PM
  4. How to match in 2 sheets with columns with non exact Text data ?
    By Faisal85 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2012, 03:28 PM
  5. [SOLVED] Index & Match returning incorrect value. Arrays fixed and exact match used.
    By SDes in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-07-2012, 08:29 PM
  6. Replies: 6
    Last Post: 01-28-2012, 06:59 PM
  7. Replies: 2
    Last Post: 01-28-2012, 05:26 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