+ Reply to Thread
Results 1 to 4 of 4

Lookup a value in one array, and return a corresponding column/row in another array

  1. #1
    Forum Contributor
    Join Date
    01-11-2011
    Location
    Frederick, MD, USA
    MS-Off Ver
    Excel 2007
    Posts
    125

    Lookup a value in one array, and return a corresponding column/row in another array

    I'm sure this is going to end up being fairly easy, but I've been struggling for quite some time now and can't get this to work.

    Given two arrays of cells: one has a set of unique strings (along with some blank cells), and the other has a set of numeric values (not necessarily unique). I'd like a separate columne to lookup/index/match (whichever works) the values in the first array, and return the correspondingly-positioned cell in the second array.

    A screenshot example of what I'm looking for:
    correxample.png


    ...and a fuller, more representative sample in worksheet form.
    96plate_correspondence.xlsx

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Lookup a value in one array, and return a corresponding column/row in another array

    Try this array formula..

    In c28
    =INDIRECT(ADDRESS(MAX(IF($B$4:$M$11=B28,ROW($B$4:$M$11)))+11,MAX(IF($B$4:$M$11=B28,COLUMN($B$4:$M$11))),4))

    Confirm with Ctrl+Shift+Enter and not just Enter
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    01-11-2011
    Location
    Frederick, MD, USA
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Lookup a value in one array, and return a corresponding column/row in another array

    That seems to be working a treat, Ace_XL! It'll take me a while to understand it, but for the moment, I can use it for what I need. Muchas gracis.

  4. #4
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Lookup a value in one array, and return a corresponding column/row in another array

    since your first matrix is unique, you could use this non-volatile regular formula:

    Please Login or Register  to view this content.
    and drag-fill down.
    Last edited by icestationzbra; 11-16-2012 at 05:37 AM.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

+ 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