+ Reply to Thread
Results 1 to 2 of 2

Cleaning Messy Data for Import

  1. #1
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Cleaning Messy Data for Import

    The following code, is adapted from some help I received from davegugg. I asks the user to open a file from a directory, and then it searches for unique identifiers in the newly opened book. There is no problem with the search and I am pleased at the speed for which it finds all 37 of them in a workbook that has 145 sheets. Anyways, here is the code:
    Please Login or Register  to view this content.
    The problem lies with what to do next, if you open the workbook, you'll see that the data is not exactly displayed in a great way. Also, there is a lot of dirty data that needs cleaning. For instance, the months from the source are not of the Date type because some of them have dots at the end of them (Jan. | Feb. | Mar | Apr | May. | & etc...). Anyhow, can someone suggest to me how I can clean the data before I dump it into my staging workbook? I can figure out the arrays part and transfer parts but the cleaning of the data often confuses me.

    Kindest Regards:
    Attached Files Attached Files
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Cleaning Messy Data for Import

    You forgot to add the sheet what the result should look like.

    I did some other cleaning:

    Please Login or Register  to view this content.
    Last edited by snb; 06-24-2011 at 03:17 AM.



+ 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