+ Reply to Thread
Results 1 to 3 of 3

lookup in multiple columns

  1. #1
    Registered User
    Join Date
    01-07-2012
    Location
    Beirut
    MS-Off Ver
    Excel 2007
    Posts
    2

    lookup in multiple columns

    Hi,

    I need a function that can lookup in an entire table and return the value in the leftmost column: Here's the example.

    Stock Family Item Codes
    ST# 001 7101 7102 7103 7104 7105 7206
    ST# 003 7201 7202] 7203 7204 7223 7209
    ST# 004 801 802 803] 804 814 829
    ST# 005 821 822 823 824 901 902


    I need the function to lookup in the items codes and return the respective Stock Family code.
    Is this Possible?
    Please advise.
    Last edited by pike; 01-07-2012 at 04:53 AM.

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

    Re: lookup in multiple columns

    with value to be looked for in a8 try this array formula confirmed with ctrl+shift+enter
    =IF(A8="","",INDEX(A2:A6,MAX((A2:H5=A8)*ROW(A2:H5)-MIN(ROW(A2:H5))+1)))
    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

  3. #3
    Registered User
    Join Date
    01-07-2012
    Location
    Beirut
    MS-Off Ver
    Excel 2007
    Posts
    2

    Thumbs up Re: lookup in multiple columns

    Thank a Lot Martin!!!

    That was very helpful I really appreciate it!!!
    Have a nice day!!!

    DonCarlo

+ 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