+ Reply to Thread
Results 1 to 8 of 8

Match Two Sets of Data

  1. #1
    Registered User
    Join Date
    06-28-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    10

    Match Two Sets of Data

    Hi,

    On one spread sheet I have a list of 900 customers' names and a corresponding industry code for each name.

    On a second spread sheet I have another list of 300 customers names that includes some of the same customers from the first spread sheet. Is there any way to get the corresponding industry codes from the first spread sheet to the second spread sheet for the customers that are on both lists? How would I use the vlookup Function?
    Last edited by dkang2007; 07-22-2013 at 10:02 AM.

  2. #2
    Forum Contributor spiwere's Avatar
    Join Date
    01-11-2013
    Location
    IN
    MS-Off Ver
    Excel 2007
    Posts
    410

    Re: Match Two Sets of Data

    It is pretty much doable. I'm assuming that the 300 names in the second sheet exactly match with the ones in the first. Do you have a spreadsheet with some sample data? It will help to better understand and help!
    In your greatness, remain humble!

  3. #3
    Registered User
    Join Date
    06-28-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Match Two Sets of Data

    Here is the sample spread sheet. And yes the names match. Thank you for the help!
    Attached Files Attached Files

  4. #4
    Forum Contributor spiwere's Avatar
    Join Date
    01-11-2013
    Location
    IN
    MS-Off Ver
    Excel 2007
    Posts
    410

    Re: Match Two Sets of Data

    Here you go...

    I've placed the formula in column D of sheet 2:

    Please Login or Register  to view this content.
    Sheet attached.

    Thanks,
    Spi
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-28-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Match Two Sets of Data

    Spi thanks for the fast response and solving my Excel problem.

    I am curious to ask if it is possible to use the same formula but display the first 2 digits of the code?

  6. #6
    Forum Contributor spiwere's Avatar
    Join Date
    01-11-2013
    Location
    IN
    MS-Off Ver
    Excel 2007
    Posts
    410

    Re: Match Two Sets of Data

    Paste this in column E "=LEFT(D3,2)" of sheet 2 and drag down. It should give you the expected output, and will keep it simple too....

  7. #7
    Registered User
    Join Date
    06-28-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Match Two Sets of Data

    Hi Spi,

    Thanks again for your reply. You seem to be very knowledgeable in regards to Excel so instead of creating another thread, I am directing another question your way that relates to the previous question.

    Attached, I have a sample spread sheet that includes Customer Name, Profit, Gallons and Codes.

    I want to see how many times a specific code such as 62 appears. I would also like to generate a unique list of codes with sum the total profit and quantity for each unique code. Any suggestions?
    Attached Files Attached Files

  8. #8
    Forum Contributor spiwere's Avatar
    Join Date
    01-11-2013
    Location
    IN
    MS-Off Ver
    Excel 2007
    Posts
    410

    Re: Match Two Sets of Data

    This can be easily done using "Pivots". See attached.

    Column F gives you Unique Codes
    Column G gives # of times a specific code appears in the list
    Column H = Total profit
    Colum I = Total Quantity

    Going forward, I would request you to open a new thread for any new request.

    By the way, I'm a learner too, and have learned some tricks through this lovely Forum, and people out here, just trying to contribute in my own way. I would prefer to call myself a student of excel.

    Hope this is useful!

    Thanks,
    Spi
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Match Up Two Sets of Data
    By Zwnd in forum Excel General
    Replies: 1
    Last Post: 07-14-2012, 06:02 PM
  2. Replies: 5
    Last Post: 07-14-2012, 02:54 PM
  3. Trying to get a macro that would match up 3 sets of data
    By beepbeep27 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2012, 01:36 PM
  4. [SOLVED] vba Match Two Sets of Data
    By timbo1957 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-22-2011, 04:58 AM
  5. How to match two sets of data between two worksheets
    By humptydumpty in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-07-2010, 04:48 AM

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