+ Reply to Thread
Results 1 to 4 of 4

Formula to match data in different sheets ( multi column) and return matching values

  1. #1
    Registered User
    Join Date
    01-08-2013
    Location
    kuala lumpur
    MS-Off Ver
    Excel 2007
    Posts
    4

    Formula to match data in different sheets ( multi column) and return matching values

    Hi, i need some help to write a functions to perform a text matching and value extracting.

    In Sheet 1:
    column A is group name, column B is value matching A

    In Sheet 2:
    i have 3 column, ABC, where each column will have a group name within it. D is returning value

    How can i write a functions that matches the text from cell A1 B1 C1 (Sheet 2)with column A(Sheet 1), if they found a match, return the value from column B (Sheet 1) into D1(Sheet 2), with each value return is seperated by comma, and remove same value if there's any.

    Attached the excel file for sample.

    I am a newbie, Try for few hours yet unable to resolve, hope someone can help me out. thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,884

    Re: Formula to match data in different sheets ( multi column) and return matching values

    Try this:

    =VLOOKUP(A2,Sheet1!$A$2:$B$16,2,FALSE)&","&VLOOKUP(Sheet2!B2,Sheet1!$A$2:$B$16,2,FALSE)&","&VLOOKUP(Sheet2!C2,Sheet1!$A$2:$B$16,2,FALSE)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Formula to match data in different sheets ( multi column) and return matching values

    Pl try this Array Formula in D2 and drag down.

    To enter array formula Press ctrl+Shift+Enter keys simultaniously.


    Please Login or Register  to view this content.
    Last edited by kvsrinivasamurthy; 01-09-2013 at 02:55 AM.

  4. #4
    Registered User
    Join Date
    01-08-2013
    Location
    kuala lumpur
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Formula to match data in different sheets ( multi column) and return matching values

    Thanks alan & kvsrinivasamurthy for the help.

    There's a mistakes in the excel file i attached earlier.
    here's a updated revisions. basically, the D columns(sheet 2) need to match the value of its respective A,B,C(sheet 2) with column A(Sheet 1) and extract matching values (Sheet 1column B). If there's multiple matching in column A, then it will extract multiple values

    samples - REVISED.xlsx

+ 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