copying the row from sheet one based on the match in second sheet

  • Hi


    I have data in sheet 1. The data has a list of companies and their different directors with various attributes.
    company directors remuneration appointed_date age
    A Carpenter 1.1 27 Jan 2012 50
    A Wood 1.2 1 Feb 2011 45
    B Porter 1.1 27 Jan 2012 55
    B William 1.2 1 Feb 2011 60
    B Nataly 2.2 1 March 2010 54


    The list has twelve thousand companies. Each company has on average 15-20 directors, and each directors has 25 attributes ( like remuneration, age, appointment date, meeting attended, education, experience etc.).
    In Sheet2 I have a list of 450 companies. I need to have entire row copied from Sheet1 for each company in Sheet2.
    Kindly help me.

  • Re: copying the row from sheet one based on the match in second sheet


    It would be more helpful if you uploaded a sample sheet and showed the desired results.


    When you click reply there will be a new button labeled go advanced, click on that button then there will be a paperclip icon in the toolbar, click on that icon and follow the instructions.

    Bruce :cool:

  • Re: copying the row from sheet one based on the match in second sheet


    Quote from skywriter;769835

    It would be more helpful if you uploaded a sample sheet and showed the desired results.


    When you click reply there will be a new button labeled go advanced, click on that button then there will be a paperclip icon in the toolbar, click on that icon and follow the instructions.


    Hi
    I have uploaded the sample data. The first worksheet is the total data. In second worksheet I have name (symbol) of companies. In the third worksheet is the desired result. In third worksheet, for each company in second worksheet all the information from first worksheet have been taken. Though I have taken only three companies in second worksheet, I have to get the data for 450 companies.


    Thanks and Regards

  • Re: copying the row from sheet one based on the match in second sheet


    What's going to be the difference between total data and the desired results?


    Are there companies on total data sheet that are not in the list of companies?

    Bruce :cool:

  • Re: copying the row from sheet one based on the match in second sheet


    1. The difference between "total data" and the "desired result" is that the "desired result" has the details only for the selected companies. The "desired result" is about fetching the information for only selected companies given in "list of companies".
    2. Yes, there are many companies in "total data" that are not in the "list of companies". The total data contains a list of 12,000 companies, whereas the "list of companies" has 450 companies. I want data for only 450 companies in desired result.

  • Re: copying the row from sheet one based on the match in second sheet


    This is very basic code, see if this works as per your requirement...

    Regards.
    sktneer

  • Re: copying the row from sheet one based on the match in second sheet


    Try this.
    Control + q is a shortcut to run the macro.


  • Re: copying the row from sheet one based on the match in second sheet


    Hi,
    Thank you very much. It is a great relieve. Now I can work on this data. Thanks

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!