+ Reply to Thread
Results 1 to 3 of 3

Search for number, if not found, paste row at bottom

  1. #1
    Registered User
    Join Date
    05-25-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Search for number, if not found, paste row at bottom

    Hi.

    I'm pretty green when it comes to macros, so hoping someone could help me out.

    I want to check each number in the Number column of "OldData" sheet, and search "NewData" sheet to see if the number is present. If the number is NOT in the Number column of "NewData", then copy entire row that contains that number from "OldData" and paste at bottom of "NewData" sheet.

    Is this very complicated?

    So to try and summarize in steps:
    1. Copy B2 of OldData sheet.
    2. Find B2 (OldData) in NewData sheet column B.
    3a. If found, move on to B3, loop back to step 1.
    3b. If not found, copy Row 2, and paste in first empty row of NewData sheet. Move on to B3.

    Big thanks in advance!
    Attached Files Attached Files
    Last edited by bjorgo; 11-04-2011 at 08:14 AM.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Search for number, if not found, paste row at bottom

    hi, bjorgo, please check attachment, run code "test"
    Attached Files Attached Files
    Last edited by watersev; 11-04-2011 at 05:56 AM.

  3. #3
    Registered User
    Join Date
    05-25-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Search for number, if not found, paste row at bottom

    Thank you so much watersev!

    Working 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