+ Reply to Thread
Results 1 to 2 of 2

Can vlookup two columns instead of one?

  1. #1
    Registered User
    Join Date
    04-24-2008
    Posts
    85

    Can vlookup two columns instead of one?

    Hello,

    Thanks for taking a peak at my problem.

    I have columns entitled: CONTRACT_ID, PROJECT_CODE and PROGRAM_CODE

    I have a filtered list on a different worksheet and I want to bring in the program code for a specific contract_id/project_code combination.

    So I can't do a simple vlookup because one contract can have more than one program code, but there will only be one program code for a specific contract/project combination.

    Can this be done with vlookup or should I be looking at some other functions?
    Any help would be appreciated.

    Thank you,

    Adam Parker
    Last edited by AdamParker; 12-22-2008 at 02:36 PM. Reason: Solved

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You can create a helper column between the Product_Code and Program_Code columns that concatenates the Contract_ID and the Product_Code...then use that in your Vlookup.

    E.g =Vlookup(A1&B1,Sheet2!C1:D100,2,0)

    where A1&B1 are your input ID and Code and Sheet2!C1:C100 contain the concatenated items.
    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)

Tags for this Thread

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