+ Reply to Thread
Results 1 to 3 of 3

how to pull data from one sheet and add to another sheet

  1. #1
    Registered User
    Join Date
    12-22-2004
    Posts
    2

    how to pull data from one sheet and add to another sheet

    Hi,

    I have a workbook with data on different sheets. The common link between the data are the title names (in text). I need to be able to have a function entered on the first worksheet that will search the second worksheet for the matching title and return the sale information associated with that title on the second sheet. I thought that vlookup would have been able to do this but it looks like vlookup only searches values not text?!

    Could you provide a function that would enable this kind of search request and return the desired data?

    Example:
    HAVE
    [sheet1]-title, seller, inventory number
    [sheet2]-title, sale date, buyer, order number, sale price, commission
    WANT
    [sheet1]-title, seller, inventory number, sale date, buyer, order number, sale price, commission

    Thanks for any help you can provide me,
    Rex

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Hi, Rex. VLOOKUP should work for you. We need to make sure your data is in the proper format first, though, to make it work. Your data on sheet2 MUST be sorted ASCENDING by the first column (and that will be your lookup value). In this case, it is your Title. I would also name this entire range on sheet2 as "Table1" or similar.

    Then, back on sheet1 we'll insert the formulas to pull the data from Table1.

    I will assume you begin in A2 with your data, Title. Therefore, in D2, enter this:

    =VLOOKUP($A2,TABLE1,2,0)

    E2 will be: =VLOOKUP($A2,TABLE1,3,0)
    F2: =VLOOKUP($A2,TABLE1,4,0)
    G2: =VLOOKUP($A2,TABLE1,5,0)
    H2: =VLOOKUP($A2,TABLE1,6,0)

    Copy this formulas down your range on Sheet1

    NOTE: the spelling must match exactly to return the appropriate data. Capitalization is not important, but "Mr. Smith Goes to Washington" is different than "Mr Smith Goes to Washington" (note the missing '.' after Mr.)

    Good Luck

    Bruce
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Registered User
    Join Date
    12-22-2004
    Posts
    2
    Thanks Bruce for the help. I will give this a whirl!

    Regards,
    Rex

+ 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