+ Reply to Thread
Results 1 to 6 of 6

INDEX and MATCH functions...formula audit please

  1. #1
    Registered User
    Join Date
    03-25-2006
    Posts
    32

    INDEX and MATCH functions...formula audit please

    Hello

    I am trying to use the following formula:

    =INDEX($J$2:$R$4698,MATCH("City",$B$2:$B$4698,0),MATCH("style",$C$2:$C$4698,0),MATCH("price",$J$1:$R$1,0))

    So there's my formula, i simply put in the city/style/price because each cell formula will be a unique city/style/price.

    Now i am using this on 1 cell and it works fine. The minute i try and go down to the next cell which changes the city/style/price level i get a #REF error.

    I don't understand how it can work for 1 and not for the other since the ranges are correct. What could be my problem? I have a hunch it is with the "price" column because i can write the same formula however only match 2 out of the 3 criteria and define a SPECIFIC index for each of the 8 pricing "levels" and it will work. But the minute i try and go 3 to make my index simple 1 range i get the error.

    Help.

    PS for some reason in the post the one "match" is coming up like it has a space in it even though when i type it, it doesn't. So that isn't the problem. Thanks

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

    Please Login or Register  to view this content.
    Note: This formula must be confirmed with CTRL+SHIFT+ENTER not just ENTER...you'll see {} brackets appear around the formula.....

    then copy down
    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
    Registered User
    Join Date
    03-25-2006
    Posts
    32
    Nope, that's not it.

    I have found the problem but i don't know why it's a problem:

    It has to do with the 3rd match, matching the index. For some reason if i have the third match go the entire range of the index it doesn't work. If i have the 3rd match only go to say the specific row it needs to go, then it will work.

    Again, help. lol
    Last edited by jim_0068; 09-07-2007 at 03:50 PM.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    I'd have to see an example...Please post a zipped sample sheet.

  5. #5
    Registered User
    Join Date
    03-25-2006
    Posts
    32
    I found out why....INDEX+MATCH cannot go more than 1 column at a time and i'm trying to cover 8 columns at once. That's why it worked going column by column but not when doing all of them at once.

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Hello Jim,

    Are you trying to find the value at the intersection of the row that matches "City" and "Style" and the column that matches "Price"? If so check out NBVC's suggestion above.....looks good to me

+ 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