+ Reply to Thread
Results 1 to 3 of 3

Using a column number found using MATCH to act as the INDEX column field

  1. #1
    Registered User
    Join Date
    07-30-2013
    Location
    plymouth
    MS-Off Ver
    Excel mac2011
    Posts
    2

    Using a column number found using MATCH to act as the INDEX column field

    Hello,

    I was wondering if someone would be able to help with an issue i am having with a spreadsheet. The spreadsheet has two worksheets, the first that works as a search box and then a second that contains the data table.

    I was wondering if it is possible to use INDEX MATCH to look along a row to find a match, then use that column for the result once the second part of the equation gets the result.

    the equation i have used is

    =INDEX(MATCH('Top Sheet'!A2,'Data Sheet'!2:2,0),MATCH('Top Sheet'!A4,'Data Sheet'!B:B,0))

    which is throwing up and error i can get it to bring up the column number that the result is in, but i dont know how to use that number to get the code to then use that for the result column.

    datasheet.xlsx

    Thats a copy of the spreadsheet, if anyone has any ideas i would be really grateful.

    Thanks

    Mike

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Using a column number found using MATCH to act as the INDEX column field

    In A6:
    =INDEX('Data Sheet'!$A$1:$BO$36, MATCH($A$4, 'Data Sheet'!$B$1:$B$36, 0), MATCH($A$2, 'Data Sheet'!$A$2:$BO$2))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-30-2013
    Location
    plymouth
    MS-Off Ver
    Excel mac2011
    Posts
    2

    Re: Using a column number found using MATCH to act as the INDEX column field

    You are a wonderful wonderful person thank you

+ 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 and match based off of top 5 list for a specific field in a filtered column
    By ScottBeatty in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-27-2013, 04:37 PM
  2. [SOLVED] Grab the number of x in column a if found in column b under a specific name
    By HNoel33 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-03-2013, 01:56 PM
  3. Replies: 4
    Last Post: 02-19-2013, 02:19 PM
  4. Replies: 4
    Last Post: 09-01-2010, 10:22 AM
  5. Return column index number after entering two column references
    By 4am in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-28-2010, 03:33 PM

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