+ Reply to Thread
Results 1 to 3 of 3

Comparing two worksheets

  1. #1
    Registered User
    Join Date
    04-01-2011
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    14

    Comparing two worksheets

    Hi there,

    I need to add a new column to a worksheet, but I have run into a problem with how to populate it.

    I have one worksheet which contains roughly 50,000 records, in 3 columns. We can call this WS1
    Name, Description, Date

    I have another worksheet, which contains roughly 1,000 records. We can call this WS2.

    In WS2, I have a Name field, and all of the data in this name field is located in the much larger Name field in WS1. What I need is to match the Name fields from WS1, and WS2, and then add the Date column to WS2. I am not sure if that made any sense, I hope I described it well enough.

    Any help would be greatly apreciated! :D
    Last edited by Mumps; 04-01-2011 at 12:31 PM.

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

    Re: Comparing two worksheets

    You can do this with VLOOKUP

    e.g.

    In WS2, B2 (assuming first Name is in A2), enter

    =VLOOKUP(A2,'WS1'!$A:$C,3,FALSE)

    copied down after you adjust sheetname and ranges to suit.
    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.

  3. #3
    Registered User
    Join Date
    04-01-2011
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Comparing two worksheets

    Thanks a ton, it worked like a charm!

+ 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