+ Reply to Thread
Results 1 to 9 of 9

help troubleshoot an INDEX/MATCH formula

  1. #1
    Forum Contributor
    Join Date
    02-16-2008
    Location
    Mansfield, TX
    Posts
    324

    help troubleshoot an INDEX/MATCH formula

    hello, I am trying to use the formula below to return a value from another sheet in the attached workbook. It is giving me a #NA error. I know the correct data is there so I suspect I have not written the formula correctly as this is my fist go round with INDEX/MATCH and it is proving to be quite elusive. In the attached workbook, the yellow columns are where the formula's will be located. The blue columns are the reference columns. The orange cells are my reference cells and the green cells are where my formula is located and the intended result.

    Please Login or Register  to view this content.
    Any help would be greatly appreciated!

    Clayton
    Attached Files Attached Files
    Last edited by dcgrove; 08-13-2010 at 02:41 PM.

  2. #2
    Forum Contributor meyero90's Avatar
    Join Date
    03-24-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    202

    Re: help troubleshoot an INDEX/MATCH formula

    plug this in Overall review N6
    =VLOOKUP($A6,Data!$I$2:$L$520,4,0)
    Attached Files Attached Files
    If I helped, Don't forget to add to my reputation (click on the little scale)
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)

  3. #3
    Forum Contributor
    Join Date
    02-16-2008
    Location
    Mansfield, TX
    Posts
    324

    Re: help troubleshoot an INDEX/MATCH formula

    Vlookup will not work as 1168 appears multiple times in column I. I need to return the date that matches multiple conditions (Q1 and 1168). Thanks for the suggestion though!

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: help troubleshoot an INDEX/MATCH formula

    I think perhaps you want something more along the lines of:

    =LOOKUP(2,1/((Data!$I$2:$I$520=$A6)*(Data!$G$2:$G$520=N$3)),Data!$L$2:$L$520)

  5. #5
    Forum Contributor
    Join Date
    02-16-2008
    Location
    Mansfield, TX
    Posts
    324

    Re: help troubleshoot an INDEX/MATCH formula

    donkeyote that worked! Thank you! Can you help me understand why it works and my original formula doesn't?

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: help troubleshoot an INDEX/MATCH formula

    Your Match is based on two values rather than one so a standard MATCH won't suffice unless you concatenate the two fields in a new column
    (which would be my advice incidentally)

    The LOOKUP approach works by finding the last instance where both criteria are found in the same row - and returns the associated value from column L
    (you will get #N/A should no match exist)

    LOOKUP differs from VLOOKUP and INDEX / MATCH (0) in that it finds the last rather than the first match - here there would appear to be only one match (if any) so it's not [seemingly] an issue.

    link to some guff on LOOKUP used in this context: http://www.excelforum.com/2252293-post5.html (and some sub links within)

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

    Re: help troubleshoot an INDEX/MATCH formula

    Similarly, and a little more familiar looking:

    =INDEX(Data!$L$2:$L$520,(MATCH(1,INDEX((Data!$I$2:$I$520=$A6)*(Data!$G$2:$G$520=N$3),0),0)))

    would find you the first match.. which if matches are unique, would end up the same match as DO's Lookup(2,1/())) formula....
    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.

  8. #8
    Forum Contributor
    Join Date
    02-16-2008
    Location
    Mansfield, TX
    Posts
    324

    Re: help troubleshoot an INDEX/MATCH formula

    Thank you both for the suggestion! for future reference sake, I ended up concatenating the unitnum and QT3 column in the data sheet and used the vlookup below. Without DO's suggestion of concatenating the two columsn, i would have not been able to do it, so thanks again!

    =VLOOKUP(N$3&$A6,ecotable,12,FALSE)

  9. #9
    Forum Contributor
    Join Date
    02-16-2008
    Location
    Mansfield, TX
    Posts
    324

    find the second to last instance of a value in a list

    Sorry, meant to start a new thread
    Last edited by dcgrove; 08-25-2010 at 05:49 PM.

+ 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