+ Reply to Thread
Results 1 to 5 of 5

Index/Match formula

  1. #1
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Index/Match formula

    Good evening -

    I need help with an Index/Match formula for a range (multiple columns) based on the column header. I've worked up a mess with the formulas I've attempted and the best I've been able to do is build one that gets data across a row rather than down the column...

    Advice? Solutions? Any good tutorials out there for the thick-headed?

    Oh, and is the second date column necessary - can this be done using only the one date column in the range?

    Thank you...

    Steve
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Index/Match formula

    the 2nd column of dates is redundant if its the same as Column A

    Use

    =INDEX($B$2:$H$20,MATCH($A2,$A$2:$A$20,0), MATCH($M$1,$B$1:$H$1,0))

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Re: Index/Match formula

    Most excellent Ace - Thank you!

    I see I had the match functions reversed and of course the redundant date column.

    Can you tell me why the match functions need to be in that particular order? I find myself needing these index/match formulas more and more often but I'm still confused by much of the syntax.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Index/Match formula

    The syntax for INDEX is INDEX(array,row_num,column_num)

    So in your formula you first need to match the row i.e. the dates and then the column i.e. the dropdown in M1

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Index/Match formula

    Just to add to Ace's notes, if you use the formula editor (fx), it will guide you through the construction and syntax of a formula
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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