+ Reply to Thread
Results 1 to 5 of 5

Linking Worksheets

  1. #1
    Registered User
    Join Date
    10-21-2006
    Location
    Gillingham, Kent, England
    Posts
    15

    Linking Worksheets

    I have a worksheet which holds info about all of the products I am going to buy, something like this:

    Col A-Code No
    Col B-Product Description
    Col C-Packaging

    Is there any formula which would enable me to link this info into a separate worksheet?
    I would like to be able to enter the relevant code number and for the rest of the information on the same row to copy over.
    tia

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by smallfella
    I have a worksheet which holds info about all of the products I am going to buy, something like this:

    Col A-Code No
    Col B-Product Description
    Col C-Packaging

    Is there any formula which would enable me to link this info into a separate worksheet?
    I would like to be able to enter the relevant code number and for the rest of the information on the same row to copy over.
    tia
    If you are typing into column A (from A1) then in B1 put

    =VLookup(A1,Sheet2!A:C,2,False)

    and in C1 put

    =VLookup(A1,Sheet2!A:C,3,False)

    where A1 is where you are typing the code, and Sheet2 columns A, B and C hold your details.

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    10-21-2006
    Location
    Gillingham, Kent, England
    Posts
    15
    Bryan,
    That worked brilliantly thank you very much.

  4. #4
    Forum Contributor
    Join Date
    11-05-2006
    Posts
    123
    =VLookup(A1,Sheet2!A:C,2,False)

    =VLookup(A1,Sheet2!A:C,3,False)


    Help me break this down please:

    Vlookup - calls for looking up a table
    A1 - the value to be compared
    Sheet2!A:C - the location of value to be compared to that of A1

    I am unsure of the "2" and "false" as well as the "3" and "false". Help please.

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    The 2 and 3 is the column you want to return the value of column 1.

    Say A1 = Jim and Jim was in A3 in sheet. If you use 2 it would return B3 value from Sheet 2 etc

    The false is used for an exact match.

    See attached for more info

    http://office.microsoft.com/en-gb/ex...093351033.aspx

    VBA Noob

+ 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