+ Reply to Thread
Results 1 to 6 of 6

vlookup: search for value in SECOND column of table array and return value from FIRST

Hybrid View

  1. #1
    Registered User
    Join Date
    09-28-2006
    Posts
    11

    vlookup: search for value in SECOND column of table array and return value from FIRST

    Hello
    I'm looking for a formula to search for a value in the SECOND (instead of first) column of a table array and return a value in the same row from FIRST (instead of the same or another) column in the table array.

    Formula would be searching for the unique production order number in the column B and return production line id from the column A.

    A1 production line_id
    B1 poduction_order_number

    A2 L1
    A3 L2
    A4 L1

    B2 505212
    B3 504234
    B4 505663

    I was trying vlookup(504234;B2:A4;2;0) to make formula go search from right columns to the left but then excel is switching the search table to A2:B4 and gives #N/D!
    One remark-there is no possibility to switch these 2 columns to simplify. I have to leave them as they are.
    Can you help?
    Matt
    Last edited by matt_pl; 10-07-2008 at 02:49 AM. Reason: unclear title

  2. #2
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    try this
    
    =INDEX(A:A,MATCH(B2,B:B,0))
    I need your support to add reputations if my solution works.


  3. #3
    Registered User
    Join Date
    09-28-2006
    Posts
    11
    Works great. Thanks!

  4. #4
    Registered User
    Join Date
    08-27-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: vlookup: search for value in SECOND column of table array and return value from FIRST

    Worked great. Putting it here so people can view this solution without having to register.

    INDEX(A:A,MATCH(B2,B:B,0))

    thanks

  5. #5
    Registered User
    Join Date
    01-30-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: vlookup: search for value in SECOND column of table array and return value from FIRST

    Excellent work. Thanks

  6. #6
    Registered User
    Join Date
    01-28-2014
    Location
    Deutschland
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: vlookup: search for value in SECOND column of table array and return value from FIRST

    Thanks Thanks

    Actually I was not a memeber of this forum, but when you published the answer for those who are not registered and cannot check the answer in the forum, I registered to thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel 2007 : VLOOKUP and pivot table
    By GI Jane in forum Excel General
    Replies: 5
    Last Post: 07-10-2008, 11:19 AM
  2. Using Vlookup to lookup array, return array
    By jcampbell in forum Excel General
    Replies: 5
    Last Post: 11-16-2007, 01:13 PM
  3. changing the table array in a vlookup
    By sail0017 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-08-2007, 04:15 PM
  4. Table Array Search [2]
    By ExcelJunkie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-11-2006, 09:56 PM
  5. Extract data from table and paste toappropriate column
    By georgeB in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-01-2006, 05:33 PM

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