+ Reply to Thread
Results 1 to 3 of 3

Data cleaning

  1. #1
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2003
    Posts
    22

    Data cleaning

    Hi

    in the attached data I have some rows with numbers starting with 27. For such rows I want to delete the number 27 in that row

    some rows have more than 9 digits - if such a row exists, we must keep the first 9 digits in the same row and move the balance to an inserted row below

    some rows have no entries or just a 0 - these rows must be deleted - also if there is text in a row it must be deleted

    all duplicate rows must be deleted

    can anyone help with this please
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Data cleaning

    Try this

    Please Login or Register  to view this content.

    Open up the VBA editor by hitting ALT F11

    Insert a new module by hitting Insert - Module

    Paste the macro into the empty sheet

    Hit ALT F11 to get back to the worksheet.

    Run the macro by going to tools-macro in Excel 2003 or the view ribbon in Excel 2007/2010.
    Martin

  3. #3
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Data cleaning

    the data has been cleaned..
    with a code in the attached file...
    simple and easy....



    Don't forget to click *
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help cleaning up data
    By Impartial Derivative in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-12-2011, 01:26 PM
  2. Cleaning data
    By cool.chatbot in forum Excel General
    Replies: 11
    Last Post: 02-09-2011, 03:31 AM
  3. Data cleaning, HELP!
    By a303 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-06-2007, 01:43 AM
  4. Data cleaning
    By a303 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-20-2007, 03:10 PM
  5. Data Cleaning
    By mazmjh in forum Excel General
    Replies: 1
    Last Post: 11-27-2006, 12:12 PM

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