Closed Thread
Results 1 to 2 of 2

Compare and Cut Data, 3 Spreadsheets

  1. #1
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    Question Compare and Cut Data, 3 Spreadsheets

    I have two very large Excel files that have literally hundreds of names. The names reside in Column G in both the spreadsheets. I'd like to use a third spreadsheet that has names in it that I choose. Then those names will compare what is in the two original spreadsheets cut out all the names not appearing in the third spreadsheet. This way I can center around the dozen or so names I'm interested in each day. Your help very much appreciated.

    Tony

  2. #2
    Valued Forum Contributor blane245's Avatar
    Join Date
    02-20-2009
    Location
    Melbourne, FL
    MS-Off Ver
    Excel 2010
    Posts
    649

    Re: Compare and Cut Data, 3 Spreadsheets

    There are many ways to solve this problem, but here's my approach.
    1. Load all the names from the third worksheet into a collection.
    2. for each name in the rows of the other worksheets, look through the collection you loaded. If the name is not there, then delete the row.

    I would do the second step backwards through the rows of the worksheet so that deleting the rows does not fiddle with the row loops.

    Does that help?

Closed 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