+ Reply to Thread
Results 1 to 9 of 9

Index Indirect Match problem

  1. #1
    Forum Contributor
    Join Date
    08-17-2009
    Location
    West Midlands
    MS-Off Ver
    Excel 2016
    Posts
    213

    Index Indirect Match problem

    I come to you for help once again.

    I'm probably being thick, but I can't get the following formula to work:

    =INDEX(INDIRECT($A$6),MATCH($A$7,$A$21:$A$24,0),MATCH(B$6,$B$20:$M$20,0))

    I've placed it in a work book to retrieve annual data based on selections from combo boxes but I can't get it to work!

    I include the worksheet to show you what I'd like.

    Help!

    Steve
    Attached Files Attached Files
    Last edited by SAsplin; 06-10-2011 at 10:08 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Index Indirect Match problem

    If you are going to reference the table indirectly, you need to apply names to those tables to match.

    So select B21:M24 and name it PTS (type PTS in the Name Box just to the left of the Formula Bar). Select B28 and M31 and name it WOL

    Then you need to make the 2011 entry in A7 an actual number.. it is currently entered as text. Go to the cell and hit F2, then Enter.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    08-17-2009
    Location
    West Midlands
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: Index Indirect Match problem

    Thanks for the reply.

    However, whenever I change the year cell A7 reverts back to General format and affects the formula result. Is there a way to stop this happening?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Index Indirect Match problem

    General Format is ok... it just was entered it seems originally as a text string....

    How is it affecting the result?

  5. #5
    Forum Contributor
    Join Date
    08-17-2009
    Location
    West Midlands
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: Index Indirect Match problem

    I followed your instructions and as long as I entered F2 and enter each time I changed the year it was fine - otherwise cell A7 reverts to general and the formula result returns #N/A.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Index Indirect Match problem

    Strange.. it is fine in the attachment you sent...

    Anyway, first make sure that the format is General... then go to Data|Text to columns and just hit Finish.

    This should keep it in the General format...

    If all else fails, use formula:

    =INDEX(INDIRECT($A$6),MATCH($A$7+0,$A$21:$A$24,0),MATCH(B$6,$B$20:$M$20,0))

  7. #7
    Forum Contributor
    Join Date
    08-17-2009
    Location
    West Midlands
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: Index Indirect Match problem

    It's probably me, but it's still not working.

    I've reattached the file - note, when you change the year the result becomes #N/A.
    Attached Files Attached Files

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Index Indirect Match problem

    Ok... it's the combo box causing that (i overlooked that previously... I was just changing the year manually)... try the last formula revision I gave you:

    =INDEX(INDIRECT($A$5),MATCH($A$7+0,$A$29:$A$32,0),MATCH(B$6,$B$28:$M$28,0))

    copied across....

  9. #9
    Forum Contributor
    Join Date
    08-17-2009
    Location
    West Midlands
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: Index Indirect Match problem

    Fantastic. Many, many thanks!

+ 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