+ Reply to Thread
Results 1 to 13 of 13

INDEX MATCH with multiple columns

  1. #1
    Registered User
    Join Date
    10-25-2017
    Location
    United States
    MS-Off Ver
    2019
    Posts
    63

    INDEX MATCH with multiple columns

    I have a spreadsheet that has a list of companies and various pieces of information about each company. I am trying to write a formula that when I type the company name in I1, employee population, headquarters, revenue and specialty populate. INDEX MATCH is great if the companies were in ONE column, but the company name could be in any of the first 4 columns, which is where I need help.

    If possible, I am trying to avoid formulas that use entire columns (ie E:E) and any 365 formulas.

    Attached is the workbook, but here is a photo as well:

    Untitled 2.png
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: INDEX MATCH with multiple columns

    Use cell J1 as a helper cell, with this formula:

    =IFERROR(MATCH($I$1,$A$2:$A$17,0),IFERROR(MATCH($I$1,$B$2:$B$17,0),IFERROR(MATCH($I$1,$C$2:$C$17,0),IFERROR(MATCH($I$1,$D$2:$D$17,0),""))))

    It will find the first occurrence of the company in the appropriate column. Then you can use this formula in cell I2:

    =IF($J$1="","",INDEX($F$2:$F$17,$J$1+ROWS($1:1)-1))

    Copy this down to I5.

    Hope this helps.

    Pete

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: INDEX MATCH with multiple columns

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: INDEX MATCH with multiple columns

    I'm sure it said XL2013 in the OP's profile when I answered, which explained why he wanted to avoid any 365 formulas.

    Pete

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

    Re: INDEX MATCH with multiple columns

    Please Login or Register  to view this content.
    edit (forgot):
    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Attached Files Attached Files
    Last edited by protonLeah; 10-02-2023 at 02:35 PM.
    Ben Van Johnson

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: INDEX MATCH with multiple columns

    @Pete: just saw profile. Missed the "don't use 365".

  7. #7
    Forum Contributor John Vergara's Avatar
    Join Date
    01-17-2022
    Location
    Colombia
    MS-Off Ver
    365
    Posts
    200

    Re: INDEX MATCH with multiple columns

    Hi everyone!

    One option could be (Without CSE) :
    PHP Code: 
    =INDEX(F$2:F$17,AGGREGATE(15,6,ROW(A$2:D$17)-ROW(A$1)/(A$2:D$17=I$1),ROWS(K$2:K2))) 
    Blessings!
    A out-of-context text is a pretext.
    Consider adding reputation points to all the people who help you with your question/problem.

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: INDEX MATCH with multiple columns

    Or empty all expected results and try this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: INDEX MATCH with multiple columns

    @Hans:
    If possible, I am trying to avoid formulas that use entire columns (ie E:E) and any 365 formulas.
    I made this mistake too.

  10. #10
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: INDEX MATCH with multiple columns

    @Trevor, I have read it.
    For that reason, I avoided the functions in my formula that only work in Excel 365

    My formula is running in Excel 2021 also.
    Last edited by HansDouwe; 10-03-2023 at 01:48 AM.

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: INDEX MATCH with multiple columns

    Ah, maybe so. We’ll see.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,938

    Re: INDEX MATCH with multiple columns

    If possible, I am trying to avoid formulas that use entire columns (ie E:E) and any 365 formulas.
    Then you should change your profile setting to whichever version you need it to run on. Members use your profile when creating solutions - as you can see, it's caused unnecessary confusion here.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

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

    Re: INDEX MATCH with multiple columns

    Formula
    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. [SOLVED] Index/Match multiple criteria but searching for matches in multiple columns
    By stearno in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-04-2020, 11:09 PM
  2. [SOLVED] Index match to sum multiple match columns
    By rosboy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-18-2018, 04:14 PM
  3. Match/Index Multiple Columns
    By fredlo2010 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-15-2018, 03:43 AM
  4. INDEX MATCH MATCH multiple columns with same heading
    By djm198 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-11-2016, 02:34 PM
  5. [SOLVED] Index / Match across multiple columns
    By Chad B in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2013, 11:52 AM
  6. Index Match multiple columns
    By bmhalula in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 05-11-2013, 01:06 AM
  7. [SOLVED] Index/Match across multiple columns
    By BB1972 in forum Excel General
    Replies: 2
    Last Post: 07-27-2012, 12:05 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