+ Reply to Thread
Results 1 to 4 of 4

Match account numbers to 2nd column (vlookup?)

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Match account numbers to 2nd column (vlookup?)

    I would like to match the account numbers from the "Old info" to the accounts in the "New info". Need formula in yellow area. If no account matches from New info to Old info.. then just leave blank.

    The account wording is slightly different from Old and New. I don't know how to match them if the wording isn't exactly the same. Vlookup "approximate" match didn't work for me.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-13-2011
    Location
    New Zealander in London
    MS-Off Ver
    Excel 2007
    Posts
    74

    Re: Match account numbers to 2nd column (vlookup?)

    Firstly you need to move the Account Numbers to column B or the VLOOKUP will not work.

    Then, in cell D6, paste in the following formula and copy/paste down for the range of data you want to look up.

    In your spreadsheet this resulted in 3 matches.

    =IF(ISERROR(VLOOKUP(E6,$A$6:$B$32,2,FALSE)),"",VLOOKUP(E6,$A$6:$B$32,2,FALSE))
    I can re-post your sample spreadsheet with this in if my instructions aren't clear enough.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,344

    Re: Match account numbers to 2nd column (vlookup?)

    You could use INDEX/MATCH ... but most of them don't match:

    =IFERROR(INDEX(A:A,MATCH(E7,B:B,0)),"")


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Match account numbers to 2nd column (vlookup?)

    Quote Originally Posted by Xx7 View Post
    I don't know how to match them if the wording isn't exactly the same. Vlookup "approximate" match didn't work for me.

    You need to understand what "approximate" really means in Excel. It's used primarily for numeric tables that are sorted ascending to provide "tiered pricing". If the first tier is 0-99 and the next is 100-199, etc, the value 50 would match to the first tier, the value of 150 would match to the second tier. The "approximate" trick works by finding the next lower number in the table for the start of a tier when an exact match is not found.

    This is nothing like a human mind perceives as "approximate" and your table of text strings will only match with human-like analysis. They're too different.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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