+ Reply to Thread
Results 1 to 4 of 4

Returning values from column A, using searches from Column B

  1. #1
    Registered User
    Join Date
    03-19-2010
    Location
    Felixstowe
    MS-Off Ver
    Excel 2003
    Posts
    34

    Returning values from column A, using searches from Column B

    Hi,

    Right I have a problem at the moment with a search, below are the worksheets I have

    Workbook 1
    Col A ............ Col B
    1234............... John
    2345................Susan
    4567................Eric

    Workbook 2
    Col A..................Col B
    <value>..............John
    <value>..............John
    <value>..............John
    <value>..............Susan
    <value>..............Susan
    <value>..............Eric

    I want a formula in Col A in WB2 that checks the name in Col B, using this name to search Col B in WB1 and returning the corresponding value from Col A in WB1. Bit strange I know, however the report that will be in WB2 will be thousands of lines and there will be hundreds of names and ID numbers against them

    Thanks

    James

  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: Returning values from column A, using searches from Column B

    workbooks or work sheets?
    "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
    03-19-2010
    Location
    Felixstowe
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Returning values from column A, using searches from Column B

    Worksheets, sorry.

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

    Re: Returning values from column A, using searches from Column B

    assuming headers in row 1 and data starts in row 2 then 1n sheet2 a2
    =INDEX(Sheet1!$A$2:$A$5002,MATCH(B2,Sheet1!$B$2:$B$5000,0))

+ 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