+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Find number from sheet1 on sheet 2 then write row info on sheet3

  1. #1
    Registered User
    Join Date
    12-24-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    89

    Find number from sheet1 on sheet 2 then write row info on sheet3

    Morning,

    The dilemma is this. I have a set of numbers in Column A sheet1. I need to find each instance of that number in sheet2 Column B then write the information contained from that row onto sheet3.

    A number from sheet1 may have several rows of information on sheet2.

    At first glance it may seem that the numbers in sheet1 Col A are listed sequentially, incremented by 1.
    Not so, further along there are numbers omitted.

    I provided a sample workbook. In the original, sheet1 has 15K rows and sheet2 has 38.5K.


    If it were just a few rows I would copy and paste, but this needs the help of a VBA guru.

    Any help would be appreciated.

    George
    Attached Files Attached Files
    Last edited by BigGPL; 02-15-2012 at 12:17 PM. Reason: Solved

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Find number from sheet1 on sheet 2 then write row info on sheet3

    This will do that using an AutoFilter:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Find number from sheet1 on sheet 2 then write row info on sheet3

    Hi George,

    This is where the Advanced Filter feature of Excel can help us.
    Using the advanced filter, I have selected the data in sheet 2, given criteria in Sheet 1 and got the correct results out, see the attachment. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Registered User
    Join Date
    12-24-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: Find number from sheet1 on sheet 2 then write row info on sheet3

    Hey Guys,

    Apologies for the lateness of this thank you.

    Much appreciate the help.

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Find number from sheet1 on sheet 2 then write row info on sheet3

    You are welcome BigGPL..

    Cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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