+ Reply to Thread
Results 1 to 3 of 3

INDEX and MATCH problems

  1. #1
    Registered User
    Join Date
    05-20-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    30

    INDEX and MATCH problems

    Hi there,

    been trying to do some INDEX and MATCH formulas to look up certain data, basically when I try and change the data range within the match part of the formula it keeps bringing random data up! Sometimes it would be bring the right value but if I went and changed the data range it would bring something else up!

    This is my current forumla;

    =INDEX('Data Sheet'!A:E,MATCH(B6,'Data Sheet'!A$1:A$6535,1)+7,3)

    the results is 7 which is correct but if I was change the data range to;

    =INDEX('Data Sheet'!A:E,MATCH(B6,'Data Sheet'!A$1:A$10535,1)+7,3)

    it would bring up 11?!?! does anyone know of reason why the data would change! There is only 1 unique record it's looking up so it won't find more than to lookup?!?!

    any help would be good!

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

    Re: INDEX and MATCH problems

    In the MATCH you are using match_type of 1, should this in fact be 0 ?
    (check out XL Help for more info)

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

    Re: INDEX and MATCH problems

    Try:


    =INDEX('Data Sheet'!A:E,MATCH(B6,'Data Sheet'!A$1:A$10535,0)+7,3)

    The 0 in the Match() function tells it to look for exact matches only.. the 1 makes it look for approximate match based on an ascending list...(i.e. looks for largest value that is less than or equal to lookup value). If the list is not in ascending order, you will get possibly strange results
    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.

+ 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