+ Reply to Thread
Results 1 to 8 of 8

Index Match Error

  1. #1
    Registered User
    Join Date
    02-17-2005
    Posts
    7

    Index Match Error - Updated with Formula!!

    The formula that I have works when the match is a two digit number, but not for a one digit number. Can anyone think of any reason why?

    =IF(ISERROR(INDEX('[Dept Class - FY 2007 Feb.xls]345'!$A$11:$G$2000,MATCH($N$95&$A108,'[Dept Class - FY 2007 Feb.xls]345'!$A$11:$A$2000&'[Dept Class - FY 2007 Feb.xls]345'!$B$11:$B$2000,0),4,1)),0,INDEX('[Dept Class - FY 2007 Feb.xls]345'!$A$11:$G$2000,MATCH($N$95&$A108,'[Dept Class - FY 2007 Feb.xls]345'!$A$11:$A$2000&'[Dept Class - FY 2007 Feb.xls]345'!$B$11:$B$2000,0),4,1))

    A B C D
    55 8 96 780
    55 9 140
    55 10 390
    55 11 745 2430

    The problem is matching on column B, returning column D. $N$95 is 55, and $A108 is the value of column B. This formula will return 2430, but not 780.
    Last edited by dfab100; 04-19-2007 at 12:29 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Please post formula and some sample data.
    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 Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    It may help if you can post a sample of your file, and point to the problematic formula.

  4. #4
    Registered User
    Join Date
    02-17-2005
    Posts
    7

    Formula updated - Thank you!!

    Quote Originally Posted by BigBas
    It may help if you can post a sample of your file, and point to the problematic formula.

    Formula updated - Thank you!

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Without going into detail on the formula, it looks like it might be an array formula since your are combining 2 columns to match...

    Have you confirmed the formula with CTRL+SHIFT+ENTER not just Enter...this will produce {} brackets automatically around the formula...

  6. #6
    Registered User
    Join Date
    02-17-2005
    Posts
    7
    Quote Originally Posted by NBVC
    Without going into detail on the formula, it looks like it might be an array formula since your are combining 2 columns to match...

    Have you confirmed the formula with CTRL+SHIFT+ENTER not just Enter...this will produce {} brackets automatically around the formula...
    It is an array formula. When copying it to this site I didn't manually readd the brackets. Any other suggestions??

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by dfab100
    It is an array formula. When copying it to this site I didn't manually readd the brackets. Any other suggestions??
    and there are no extraneous spaces in column B (e.g. "8 ")?

    Maybe you can attach the sheet?

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Here's another version of your formula that should be more robust.

    Try it....

    Please Login or Register  to view this content.
    If it gives you the same results, then the data is not matching up, meaning they are not exactly the same in both the lookup values vs. the lookup table

+ 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