+ Reply to Thread
Results 1 to 5 of 5

Compare two lists, return value against partially matchng item

  1. #1
    Registered User
    Join Date
    07-31-2013
    Location
    UK
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    3

    Compare two lists, return value against partially matchng item

    Hi,

    I have two tables of data and I want to do a partial match to find out if anything in Table A is in Table B, and if it is, then to add that partially matching value to a column in table B.
    Table A is a list of partial values.

    For example:

    TableA - the values I want to check for

    Watchlist
    power
    devel

    TableB - the data I want to examine for partial matches

    Items
    PowerPack
    predevelopment
    developer
    prepowered
    prepower
    shopping


    So, with the formula I place, the output would

    Table B

    Items MatchedItem
    PowerPack power
    predevelopment devel
    developer devel
    prepowered power
    prepower power
    shopping #N/A


    Can anyone help with this please ?.

    Thanks!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Compare two lists, return value against partially matchng item

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. 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 demonstrated, mock them up manually if needed. Remember to desensitize the data.

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

    View Pic


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Compare two lists, return value against partially matchng item

    Pls find the attachment to see if this is what you need.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Registered User
    Join Date
    07-31-2013
    Location
    UK
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    3

    Re: Compare two lists, return value against partially matchng item

    Hi Sktneer,

    Thank you for your prompt help!. In your example have amended the formula so it just returns the value that is matched:

    =IF(NOT(ISERROR(SEARCH($A$2,A7))),$A$2,IF(NOT(ISERROR(SEARCH($A$3,A7))),$A$3,"#N/A"))

    Ideally I would like to refer to the values in the watchlist (cells A2 and A3) as a Named List called "watchlist", but I'm having trouble amending the formula to make it use that name.

    Are you able to advise please ?

    Thank you so much!

  5. #5
    Registered User
    Join Date
    07-31-2013
    Location
    UK
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    3

    Re: Compare two lists, return value against partially matchng item

    Hi Sixthsense,

    I've attached an example file. I hope this helps to illustrate the problem more clearly.

    Thanks so much for your help.
    Attached Files Attached Files

+ 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] 2 lists: how to compare and calculate difference in item numbers
    By chemoul in forum Excel General
    Replies: 5
    Last Post: 02-15-2013, 12:59 AM
  2. Replies: 4
    Last Post: 12-04-2012, 04:45 PM
  3. Compare description to a set of keyword lists and return a 3 value
    By smschneid in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-11-2012, 03:28 PM
  4. Compare 2 lists and return value
    By Deetce in forum Excel General
    Replies: 1
    Last Post: 05-01-2012, 10:50 PM
  5. [SOLVED] How to compare 2 lists and return un-matched?
    By RWR in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-15-2005, 06:45 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