+ Reply to Thread
Results 1 to 2 of 2

Extracting inconsistent data

  1. #1
    Registered User
    Join Date
    10-14-2008
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    67

    Extracting inconsistent data

    Hi friends,
    I am not sure where to post this but decided maybe it should be under this group.
    I received a set of data in Excel consisting of approximately 10000 records. I need to extract this data or “clean it up” for further use and comparison with other datasets.
    The data captured does not always follow the same format which makes it difficult and time consuming to “clean up” as one needs to work your way through the total set line by line.
    Some of the inconsistencies are (I attach one part of the file):
    • In column A some rows have been merged whilst other were not. See eg rows A5 toA232 (merged ) and A233 to A301 (not merged) and then it is merged again.
    • Rows A311 to A313 – information in rest of the rows were removed except for B313 (Deregistered) and there might be others – this should still be captured in a new set
    • A431 to A433 is totally empty (there are others as well) – the reference A143 should be kept although the rest is empty
    • A948 to A950 (and row 1036)the information in columns B to H is missing but from Column I further on the data is in the top row of the 3 rows and no longer in the bottom
    • A993 to A994 (and A1017 to A1021)consist of two rows but no “A” number allocated to the rest of the data
    • A995 only consist of one row
    Is there a way of extracting/cleaning the data with no line in between each record (A01 to A500) and losing some of the data captured? What is the easiest way to handle these inconsistencies?
    Your assistance and guidance will be appreciated.

    Danie
    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: Extracting inconsistent data

    While it doesn't cope with all of the problems with this dataset, the following code will deal with the many simple cases of merged cells in column A, unmerging them and aligning the text with the remainder of the line.

    Please Login or Register  to view this content.
    Martin

+ 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. [SOLVED] Extracting specific data from large inconsistent strings
    By Karnik in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-01-2013, 01:52 AM
  2. Extracting numbers and text from inconsistent text/number formatted string
    By Brandivil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2013, 01:46 PM
  3. Extracting numbers from inconsistent text strings
    By netguru in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-25-2012, 03:20 AM
  4. Replies: 1
    Last Post: 08-11-2012, 05:43 PM
  5. How to assign a value w/inconsistent data
    By hermanexcel in forum Excel General
    Replies: 11
    Last Post: 02-06-2011, 01:59 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