+ Reply to Thread
Results 1 to 14 of 14

I need the quickest way to clean data...

  1. #1
    Registered User
    Join Date
    10-04-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    58

    I need the quickest way to clean data...

    I have a report that I pull from a program for work... I need to find the best way to clean up this data and present it but I cannot seem to figure it out... the way the sheet is created is that someone fills out an online form, then it will add a new line and put in a 1 for each choice made, unless its a text field. I cannot change this aspect of the way the data is collected.

    I have tried using the delete coloumns option (delete all coloumns with no data)
    I have tried using pivot tables
    I have tried manual...sooo time consuming.

    I am looking for someone who wants to take a look and help with this project... I am familiar with VBA and am hoping there is a way to just click a button and have it sort out where the data is.

    I have attached an example work book. This shows how the data is collected and in this example
    John Smith selected Sydney in the site location drop down on the fillable form so a 1 is added there, Maintenance for Department (again another 1), then filled in Things for project description and typed in Storage Room with and error under work area description, then filled in his name under inspected by along with selecting Training for his position.
    Jane Smith selected Shop in the site location drop down on the fillable form so a 1 is added there, Operations for Department (again another 1), then filled in stuff for project description and typed in shop Room under work area description, then filled in her name under inspected by along with selecting maintenance supervisor for her position. She then added a couple other names for co-inspectors... Which the form allows.

    The coloumn count goes to XR (I removed many of them to keep it clean for this example) and so I would love a way to just pull out the relative info instead of just manually sorting!
    Attached Files Attached Files
    Last edited by AliGW; 06-09-2020 at 11:20 AM. Reason: Irrelevant section of title removed.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,455

    Re: I need the quickest way to clean data...

    You have provided just two rows of data and nowhere do I see a mock-up of what you want it to look like once cleaned.

    I am sorry, but I can't work out from your post or the workbook what the objective is. What will 'clean' look like?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-04-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    58

    Re: I need the quickest way to clean data...

    The data I am working with is sensitive... therefore I only supplied an example with the headers and two filled in rows.

    When I pull my raw data, I have 1000's of rows and the same column headings from A to XR. I was providing the example to show what it looks like.

  4. #4
    Registered User
    Join Date
    10-04-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    58

    Re: I need the quickest way to clean data...

    Ideally, I would love help getting the data from the coloumns to a new sheet that lists name and selections made...

    Using the example I provided:John Smith selected Sydney in the site location drop down on the fillable form so a 1 is added there, Maintenance for Department (again another 1), then filled in Things for project description and typed in Storage Room with and error under work area description, then filled in his name under inspected by along with selecting Training for his position.

    New sheet will have the following headers:
    NAME Site Location Department Project Description Work Area Description Inspected by Position
    John Smith Sydney Maintenance Things Storage Room John Smith Training

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,455

    Re: I need the quickest way to clean data...

    OK - but I don't now what you want it to look like once 'cleaned'. Nobody wants to see sensitive data (you are told to desensitise what you do provide), but we do need 10-15 rows of sample data in both before and after format.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,455

    Re: I need the quickest way to clean data...

    Is this what we are aiming for?

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    5
    Name Email Attribute Value
    6
    John Smith [email protected] Site Location: / Sydney
    1
    7
    John Smith [email protected] Department: / Maintenance
    1
    8
    John Smith [email protected] Project Description: Things
    9
    John Smith [email protected] Work Area Description: sStorage Room
    10
    John Smith [email protected] Inspected by: John Smith
    11
    John Smith [email protected] Position: / Training
    1
    12
    Jane smith [email protected] Site Location: / Shop
    1
    13
    Jane smith [email protected] Department: / Operations
    1
    14
    Jane smith [email protected] Project Description: Stuff
    15
    Jane smith [email protected] Work Area Description: SHOP
    16
    Jane smith [email protected] Inspected by: JANE SMITH
    17
    Jane smith [email protected] Position: / Maintenance Supervisor
    1
    18
    Jane smith [email protected] Inspected by:2 John Doe
    19
    Jane smith [email protected] Position: / Maintenance Supervisor1
    1
    20
    Jane smith [email protected] Inspected by:17 Jim
    21
    Jane smith [email protected] Position: / Maintenance Supervisor25
    1
    Sheet: Data

  7. #7
    Registered User
    Join Date
    10-04-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    58

    Re: I need the quickest way to clean data...

    My apologies, I had assumed the data was self explanatory. I feel like the issue is with the headers of this data dump... What I am trying to do regardless of row numbers is identify what selection is made... I have included more rows and an example table to assist. Hope this is more clear?
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    10-04-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    58

    Re: I need the quickest way to clean data...

    Yes, you did that with data Query correct?

    I was playing with this option too but I still found I couldn't manipulate it.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,455

    Re: I need the quickest way to clean data...

    So just to be clear - any column with a 1 in it can be ignored?

    EDIT: Forget that.

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: I need the quickest way to clean data...

    Maybe with this code to re-arange the data.

    After that (maybe) a pivot table.

    See the attached file.


    Please Login or Register  to view this content.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  11. #11
    Registered User
    Join Date
    10-04-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    58

    Re: I need the quickest way to clean data...

    Quote Originally Posted by AliGW View Post
    So just to be clear - any column with a 1 in it can be ignored?

    EDIT: Forget that.
    Do you think the query is the best way?

  12. #12
    Registered User
    Join Date
    10-04-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    58

    Re: I need the quickest way to clean data...

    UPDATE:

    Still waiting for help with this project. I have tried the supplied code and the Query and I still am unable to get the data to display how I need it too.

    I have attached an example workbook here with two tabs, one with 10 rows of data and one showing how I am trying to present the data.

    PLEASE HELP!
    Attached Files Attached Files
    Last edited by cwelsh; 06-10-2020 at 04:17 PM.

  13. #13
    Registered User
    Join Date
    10-04-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    58

    Re: I need the quickest way to clean data...

    I have attached my new workbook here... I appreciate the help I have received so far, but it doesn't really get me to where I need to be. There must be a way to manipulate this data for a clean presentation for readers.

    I was thinking even an IF/And statement maybe??

    I tried the VBA code as well, but it is providing a similar solution as the Query which again doesn't filter the data.
    Attached Files Attached Files

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,455

    Re: I need the quickest way to clean data...

    Quote Originally Posted by cwelsh View Post
    Do you think the query is the best way?
    I couldn’t get it to do what you seem to want with the data - sorry.

+ 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. Replies: 3
    Last Post: 12-21-2016, 12:14 PM
  2. Quickest way to copy data from another workbook
    By Bip in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 12-19-2016, 01:28 PM
  3. most efficient and quickest way to populate data from sheet to array
    By twozedz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2016, 08:42 AM
  4. [SOLVED] Which is the quickest way to loop through large data sets
    By newbi004 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-03-2013, 10:38 AM
  5. [SOLVED] VBA Code to optimize and clean data- clean out numerical/ or symbol
    By tracylsr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-05-2012, 04:21 PM
  6. Quickest way to summarize random data
    By deucesh75 in forum Excel General
    Replies: 1
    Last Post: 02-06-2010, 01:42 AM
  7. Clean Function to Clean Entire Sheet
    By gema in forum Excel General
    Replies: 7
    Last Post: 11-05-2009, 10:07 AM

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