+ Reply to Thread
Results 1 to 2 of 2

Determine if item from one worksheet is in another, if not copy to new worksheet

  1. #1
    Registered User
    Join Date
    12-20-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003
    Posts
    1

    Determine if item from one worksheet is in another, if not copy to new worksheet

    Hi all, first post here.

    Im a noob to VBA and excel macros in general. I have pretty good programming experience but havent touched vba or tried this yet. I have a work task I volunteered to complete on a short time frame and Im hoping to speed the process by using everyones collective knowledge here!

    I have a spreadsheet that has patient information from a medical office. I have another list that has some patients that are not included in the first list. There are ~5000 patients in the smaller list, and it looks like im going to be coming up with ~1000 patients who are not in that list, which are the ones of interest. I want to find a way to copy the patients NOT in the smaller list into a new worksheet.

    The names are the values of interest, so I am looking to choose a name value, search the workbook for its presence, and if its not there copy to a new sheet.

    Mainly what I am interested in is the syntactical particulars of this, and how to go about this search in VBA as I dont have any experience here. Any pointers would be helpful!

    P.S. I cant post the spreadsheets as they are private information and doing so would be a HIPPA violation.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Determine if item from one worksheet is in another, if not copy to new worksheet

    Hi,

    You don't need VBA/macros. Just use the =MATCH() function. e.g.

    Please Login or Register  to view this content.
    If you get stuck just anonymise the data.

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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