+ Reply to Thread
Results 1 to 14 of 14

Index matching multiple values to target table

  1. #1
    Registered User
    Join Date
    08-13-2022
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    14

    Lightbulb Index matching multiple values to target table

    Hi All,

    I am looking to list/index values from multiple columns and return the column header, I have since edited this with a helper cell. I am unable to use the TEXTJOIN function on excel 2013.
    The target table can be reformatted to have 5 individual cells for the corresponding columns.

    (edited)

    Thanks, ChemistryBMS
    Attached Files Attached Files
    Last edited by ChemistryBMS; 08-27-2022 at 05:56 AM. Reason: Revised worksheet to exclude merged cells

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Index matching multiple values to target table

    "My main issue is the headers are merged cells so may need to create helpers cells to enable this."
    You give the answer yourself.


    Don't use merged cells, since you get in trouble with it sooner or later.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    08-13-2022
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    14

    Re: Index matching multiple values to target table

    Thanks oeldere I have revised the worksheet to exclude merged cells

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Index matching multiple values to target table

    Ok Thanks for that, but where do I find the input and expected result.

    After the reply I will take a look at it.

  5. #5
    Registered User
    Join Date
    08-13-2022
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    14

    Re: Index matching multiple values to target table

    Re-edited for version 3 to include instructions! Thanks again

  6. #6
    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,171

    Re: Index matching multiple values to target table

    Please Login or Register  to view this content.
    =gethdr(Q4,1)

    =gethdr(S4,2)
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Index matching multiple values to target table

    helpcolumns in AB

    =IF(IFERROR(MATCH($P5,INDIRECT("name"&COLUMN()-27),0)>0,"")="","",IF(MATCH($P5,INDIRECT("name"&COLUMN()-27),0)>0,INDIRECT(ADDRESS(4,1+(COLUMN()-28)*3)),"")) and drag across.


    in cell Q5

    =TEXTJOIN(", ",TRUE,AB5:AF5) and drag down.


    See the green cells in the attached file.

  8. #8
    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,171

    Re: Index matching multiple values to target table

    @oeldere: from the OP
    I am unable to use the TEXTJOIN function on excel 2013.

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Index matching multiple values to target table

    @John Topley

    You're totaly right.

    Then he / she should go for your solution.

  10. #10
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,607

    Re: Index matching multiple values to target table

    No helper column:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Ben Van Johnson

  11. #11
    Registered User
    Join Date
    08-13-2022
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    14

    Re: Index matching multiple values to target table

    protonLeah this is what I was aiming for!

    JohnTopley that also worked too!

    Thanks a bunch!

  12. #12
    Registered User
    Join Date
    08-13-2022
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    14

    Re: Index matching multiple values to target table

    Hi protonLeah,

    I have tried to replicate that formula for the adjacent table, replacing P4 for R4 but it is returning the values as blanks then separated by commas. Which part am I missing?

    Thanks, ChemistryBMS
    Last edited by ChemistryBMS; 08-30-2022 at 11:02 AM.

  13. #13
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,607

    Re: Index matching multiple values to target table

    I think the problem is the merged cells in A1:N1.
    In S4:
    Please Login or Register  to view this content.
    Seems to work. I also corrected the formula in Q4 that was looking at whole columns before:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    08-13-2022
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    14

    Re: Index matching multiple values to target table

    I used the -1 search from the first formula and merged it with the initial one you gave as I needed to search the whole range, although I did a helper cell at the top of the worksheet.

    Very helpful!

    Thanks, ChemistryBMS

    Individual test assignment.xlsx

+ 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. Index Lookup. Multiple Sources and Values matching a Criteria.
    By Nebulous_Construct in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-16-2022, 06:52 AM
  2. [SOLVED] Index Matching multiple variables (SELECT date FROM table WHERE serial = x AND step = y)
    By ripcurlksm in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-22-2019, 04:14 AM
  3. Index array list based on multiple matching Values
    By Jpidge20 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-13-2018, 09:13 PM
  4. [SOLVED] Lookup or index on multiple parameters and pull table heading for matching values
    By pcrewlok in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-24-2015, 07:07 PM
  5. Replies: 3
    Last Post: 01-23-2014, 01:30 PM
  6. [SOLVED] Matching certain index values to dates in a separate table
    By DrD in forum Excel General
    Replies: 2
    Last Post: 07-11-2012, 05:55 PM
  7. Replies: 4
    Last Post: 03-06-2012, 10:49 PM

Tags for this Thread

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