Results 1 to 6 of 6

Data cleaning

Threaded View

  1. #1
    Registered User
    Join Date
    01-19-2007
    Posts
    13

    Question Data cleaning

    Hello everyone,

    I am completely new to VBA in Excel, I haven't even written a single line of code yet. I hope I can have your help in writing a macro. This is what I want it to do:

    1. Accept an array of integers (say 12, 27, 351, etc.). The size of array is not fixed.
    2. Find records (rows) which have that integers in the first cell of that row (Cell An). Each cell (An) will contain only one integer (27) and not a string ("12 27").
    3a. Move the entire row to a new workbook.

    Alternative to step 3b:
    3. Delete all rows (and shift cells up) in which the first cell does NOT contain any integer on the list I supply in the initial stages of the macro.

    I want this macro to run over all the worksheets in the workbook. However, the copied rows have to be on a single worksheet. If the number of rows to be copied is greater than 65536 rows (Excel's limit), I want them (the rows) to be added to a new worksheet.

    My problem is that I am working with a very large set of data, so I can't prune the data manually. Please help!
    Last edited by a303; 01-19-2007 at 08:45 PM.

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