+ Reply to Thread
Results 1 to 3 of 3

Help with using index match formula with a variable column

  1. #1
    Registered User
    Join Date
    02-09-2017
    Location
    UK
    MS-Off Ver
    2019
    Posts
    59

    Help with using index match formula with a variable column

    Hi All

    I hope that some one will be able to help me with the following!

    I am trying to use an index match combination to extract a list of 'members' from a data sheet, but the user has 4 options to select from which makes the column I need to match change. I have been able to identify the column and range which I need to match, but I am unable to get this range into the formula, I have tried to use indirect but I am not having much luck!

    I have attached a simplified sheet to show what I am trying to achieve (and what I have so far)

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Help with using index match formula with a variable column

    Personally, I'd recommend changing structure a bit. But following should work.

    Change G4 formula to...
    ="'Data'!"&ADDRESS(5,G3)&":"&ADDRESS(25,G3)

    Then C8 formula becomes...
    =IFERROR(INDEX(Data!$B$5:$B$25,SMALL(IF(INDIRECT($G$4)=$C$5,ROW(INDIRECT($G$4))-4),ROW(A1))),"")

    Confirmed as array (CTRL + SHIFT + ENTER).
    Attached Files Attached Files
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    02-09-2017
    Location
    UK
    MS-Off Ver
    2019
    Posts
    59

    Re: Help with using index match formula with a variable column

    Thank you! exactly what I needed

+ 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. Using INDEX/MATCH with variable column names
    By Brimtown in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-03-2017, 05:18 PM
  2. Replies: 4
    Last Post: 04-14-2017, 07:47 PM
  3. Three Variable Match / Index (With different column headings)
    By burgie10 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-04-2015, 12:54 PM
  4. [SOLVED] Converting Hlookup to Index Match with variable column index number
    By SimonLock in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-09-2015, 09:14 AM
  5. Variable Column Height Index/Match
    By absentminded in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-23-2014, 06:20 PM
  6. How to Index and match to return the last value from variable column
    By abshmo5 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-27-2013, 04:59 AM
  7. Consolidate Index/Match formula into variable range
    By jeffreybrown in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-10-2012, 11:16 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