+ Reply to Thread
Results 1 to 5 of 5

Index/Match Help

  1. #1
    Registered User
    Join Date
    08-18-2012
    Location
    boston, ma
    MS-Off Ver
    Excel 2010
    Posts
    2

    Index/Match Help

    Hi all,

    Relatively new to excel but I think this should be pretty easy to do but I cant get it to work right. heres a sample of that im working with:

    A B
    1 X Y
    2 G H
    3 F K
    4 Z Y
    5 P Y

    Basically, im working with an expense report and want to get information to the left of B so I cant use vlookup. Index/match will work to a point. Without sorting, which would defeat the purpose of what I am trying to accomplish, I can only get it to work correctly for some of them. With =Index(A1:A5,MATCH(Y,B1:B5)), if i try and apply it to multiple cells (using ctrl enter), the first and second Y's work, but since the reference on the index only goes up by increments of 1 (A1 to A2 to A3 etc for each consecutive cell), it is starting the index search at A3 for the 3rd value and thus returning Z instead of P from column A. Ideally it would skip the "Ax" value to the one after the previous match. Any easy ways to fix this???

    Thanks in advance

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Index/Match Help

    I'm thinking

    Please Login or Register  to view this content.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    08-18-2012
    Location
    boston, ma
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Index/Match Help

    Whoops, I forgot to include the 0 in my original post. Thats the formula im currently using where I run in to the issue of the second case being repeated instead of the 3rd

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Index/Match Help

    Here are three possible solutions to answer what I believe you are asking

    Sheet1 >> code
    Sheet2 >> pivot table
    Sheet3 >> CSE formula
    Attached Files Attached Files

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Index/Match Help

    and here's a fourth using a helper
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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