+ Reply to Thread
Results 1 to 6 of 6

Comparing oddly named values between two tables

Hybrid View

  1. #1
    Registered User
    Join Date
    09-02-2010
    Location
    Bristol, UK
    MS-Off Ver
    Office 365
    Posts
    13

    Comparing oddly named values between two tables

    Hi All,

    I have been tasked to compare two separate tables of mobile call rates and highlight any matches in tariff (e.g. Table A & Table B contain a call rate for AWC mobile in afghanistan and that rate is....). However the data is not named at all well. I have tried striping some information out and using VLOOKUP to compare, but am getting nowhere fast.

    Would really appreciate it if someone can offer advice on how to do this. If there is no way to look for partial matches etc I will be faced with manually checking over a thousand call destinations again a hundred suppliers - which will take until the far side of forever to finish!

    Two pictures attached, the first shows the data as it is in the spreadsheet, the second shows the desired outcome.

    Any queries please let me know.

    Thanks,


    Jim
    Attached Images Attached Images
    Last edited by Jimboted; 09-03-2010 at 08:18 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Comparing oddly named values between two tables

    Try something like:

    =INDEX($B$2:$B$10,MATCH(D2&"*"&E2,$A$2:$A$10,0))

    assuming your data is a2:A10
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-02-2010
    Location
    Bristol, UK
    MS-Off Ver
    Office 365
    Posts
    13

    Re: Comparing oddly named values between two tables

    NBVC, that is an elegant solution to my problem, thank you very much for your assistance with this (has also spurred me to finally learn to use MATCH and INDEX correctly!).

    It returns the results correctly, the only issue is that it matches "Afghanistan At" with "Afghanistan Etisalat". Clearly this is because of the last two letters. It is not the end of the world if this doesn't match, but can you suggest an clever finesses to get over this very minor problem?

    Many thanks,


    Jim

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Comparing oddly named values between two tables

    Perehaps:

    =INDEX($B$2:$B$10,MATCH(D2&"*"&" "&E2,$A$2:$A$10,0))

  5. #5
    Registered User
    Join Date
    09-02-2010
    Location
    Bristol, UK
    MS-Off Ver
    Office 365
    Posts
    13

    Re: Comparing oddly named values between two tables

    Outstanding, thank you very much for your assistance.

    Have a good weekend,


    Jim

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Comparing oddly named values between two tables

    You are welcome

    Please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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