+ Reply to Thread
Results 1 to 6 of 6

Matching text string in a column/array to text in another column/array, return value

  1. #1
    Registered User
    Join Date
    01-17-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    6

    Matching text string in a column/array to text in another column/array, return value

    Hi all,

    I'm looking to do the following using functions or a formula (se pic below): in table A I have text based information that includes text strings that I would like to match to text strings in another (reference) table (table B). Table B may be in another work sheet or a separate work book. I want to match the text strings in table A and also return the value of the match in table B into table A. It would be great to know how to do 1) an exact match an 2) a match where the text string in table B "contains" the text string in table A.

    Any suggestions as to how I best accomplish this? I've played with Index/Match but can't get the combined functions to return the correct value.

    Regards

    Match.png

    Update: see attached
    Attached Files Attached Files
    Last edited by dvrs; 11-24-2015 at 03:54 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Matching text string in a column/array to text in another column/array, return value

    Please post a file: we cannot work with images,

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Matching text string in a column/array to text in another column/array, return value

    Hi
    Try
    =IFERROR(IF(MATCH(A3,$G$2:$G$7,0)>0,"Yes","No"),"No")
    Regards

  4. #4
    Registered User
    Join Date
    01-17-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Matching text string in a column/array to text in another column/array, return value

    Thanks José! This works fine, however I would also like to return the matching value in the "Match" column (column D) - is it possible to expand your formula to accomplish this?

  5. #5
    Registered User
    Join Date
    11-24-2015
    Location
    Delhi, India
    MS-Off Ver
    2013
    Posts
    5

    Re: Matching text string in a column/array to text in another column/array, return value

    Hi,

    You can use below formula:

    =IFERROR(VLOOKUP(A3,[Book1]Sheet1!$A$1:$A$5,1,FALSE),"NA")

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Matching text string in a column/array to text in another column/array, return value

    Quote Originally Posted by dvrs View Post
    Thanks José! This works fine, however I would also like to return the matching value in the "Match" column (column D) - is it possible to expand your formula to accomplish this?
    Hi
    Try
    =IFERROR(IF(MATCH(A3,$G$2:$G$7,0)>0,A3,"No"),"No")
    Regards

+ 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: 5
    Last Post: 08-01-2014, 04:31 AM
  2. Replies: 2
    Last Post: 07-31-2013, 05:57 PM
  3. [SOLVED] Return matching string in array if cell contains string contained in the array
    By AaronsZ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-03-2013, 01:55 PM
  4. Can an ARRAY formula return a text string?
    By Skybeau in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-28-2013, 08:26 AM
  5. [SOLVED] Find Specific Text in Text String and Return Value in Adjacent Column
    By watchouse in forum Excel General
    Replies: 2
    Last Post: 07-11-2012, 03:53 PM
  6. Replies: 3
    Last Post: 08-06-2009, 04:27 AM
  7. Search array for text, return column #
    By Spreadsheet in forum Excel General
    Replies: 5
    Last Post: 05-09-2007, 12:30 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