+ Reply to Thread
Results 1 to 2 of 2

Lookup a specific instance

  1. #1
    Registered User
    Join Date
    01-28-2010
    Location
    earth, milky way
    MS-Off Ver
    Excel 2010
    Posts
    47

    Lookup a specific instance

    I know this question has been asked repeatedly, but I can't apply it to my situation without creating an error.

    I want to lookup a specific instance of a value on a different sheet. The following is my situation:


    [Sheet 1, Columns B through I] contain where I want return values (return first instance in B, second in C, etc.)

    [Sheet 1, A2 and down] contain lookup values

    [Sheet 2] contains the values i want to show on [Sheet 1]

    What formula do I need to put in [Sheet 1, B2 and over and down] to return the specific instance.

    Thanks so much - let me know if you need more information.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Lookup a specific instance

    As long as the 8 matching values are always together in Sheet2, you can put this in B2 and copy down/across:

    =INDEX(Sheet2!$B:$B, MATCH($A2, Sheet2!$A:$A, 0) + COLUMN(A$1)-1)


    If your sheet2 column A is not organized, if it's a mixed up listing, you'll need a custom function (UDF) for that to be easy.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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