+ Reply to Thread
Results 1 to 4 of 4

INDEX / MATCH to return values from table fields

  1. #1
    Forum Contributor
    Join Date
    04-14-2013
    Location
    Ky
    MS-Off Ver
    Excel 2013
    Posts
    344

    INDEX / MATCH to return values from table fields

    See attached sample. The yellow highlighted cells in the 2nd table are where I want a formula - presumably it'll be a CSE/array entered in column I and copied horizontally. I want to match the value in column H (city) with all the companies (column A) that have that city listed in Table1.

    So in my example, Bangkok (H2), would have the following in I2:K2: Acme Inc (I2), Sterling Cooper (J2), and Umbrella Corp (K2).... with L2:N2 being blank.

    Sample B.xlsx

  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,206

    Re: INDEX / MATCH to return values from table fields

    As someone who does not "like" tables, i converted your tables to ranges ( I am sure you will get a Table solution):

    in I2

    =IFERROR(INDEX($A$2:$A$9,SMALL(IF(($B$2:$B$9=$H2)+($C$2:$C$9=$H2)+($D$2:$D$9=$H2)+($E$2:$E$9=$H2)+($F$2:$F$9=$H2),ROW($A$2:$A$9)-ROW($A$2)+1,""),COLUMNS($A:A))),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Copy across and down.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    04-14-2013
    Location
    Ky
    MS-Off Ver
    Excel 2013
    Posts
    344

    Re: INDEX / MATCH to return values from table fields

    I just made it converted it back to table references (with CSE), and it worked great! Thank you!

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,294

    Re: INDEX / MATCH to return values from table fields

    Option is easier with the function of the AGGREGATE.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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. Return Multiple Match Values in Excel Using INDEX-MATCH
    By chris1089 in forum Excel General
    Replies: 10
    Last Post: 06-15-2017, 09:25 AM
  2. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  3. [SOLVED] Need Help Creating INDEX/MATCH Formula to Return Values from Data Table
    By trandle in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-06-2015, 01:12 PM
  4. [SOLVED] Vlookup/index/match to return all values that match
    By Asil01 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-09-2014, 12:49 PM
  5. Using Index/Match to return multiple values for one match
    By superboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-10-2014, 06:21 PM
  6. VLOOKUP/INDEX/MATCH to return all values that match
    By lijia00 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2014, 11:56 AM
  7. [SOLVED] VLOOKUP to return value from table dependent on 2 variable fields/values
    By ndtsteve in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2012, 09:44 AM

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