+ Reply to Thread
Results 1 to 2 of 2

If one cell matches another display a value in adjacent cell

  1. #1
    Registered User
    Join Date
    07-07-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    1

    If one cell matches another display a value in adjacent cell

    Hi

    i would be greatful for anyhelp with the following; the problem surrounds the creation of a pick list with pick locations.

    within a workbook sheet 1 will hold a list of products in column A, and a pick location beside each product in column B.

    in sheet 2, i would lik eto have a colum that has a product in (imported from a csv file) and then beside it a cell which poulates the pick location.

    so if row A in sheet two matches a value in row A of sheet 1, then in row B of sheet two, populate the pick location (eg bin A1, Bin C2) that matches this product (which will be in column B of sheet 1).

    the list of products may be several hundred long, and on sheet two wont always populate in a set order, or an order that matches that of the product list in sheet one.

    i have tried a few formula using index, and match, but i just dont have the knowledge or understanding to figure it out on my own

    if its of relevance, sheet two will have other data on it like quantity and reference numbers.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Help needed, if one cell matches another display a value in adjacent cell

    Did you try VLOOKUP?

    eg.

    =VLOOKUP(A2,Sheet1!A:B,2,FALSE)

    This looks up the value in A2 of active sheet and tries to find it in column A of Sheet1, and returns the corresponding item from column B of Sheet2 to the location your formula is in.

    If there is no match you will get a #N/A! error... if you want a blank instead..

    =IF(ISNUMBER(MATCH(A2,Sheet1!A:A,0)),VLOOKUP(A2,Sheet1!A:B,2,FALSE),"")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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