+ Reply to Thread
Results 1 to 8 of 8

clean up data

  1. #1
    Registered User
    Join Date
    03-15-2019
    Location
    kentucky
    MS-Off Ver
    365
    Posts
    17

    clean up data

    I have an excel sheet that i export from a program and need to clean it up.

    I am having trouble and working for days. I need the data to look like what is in the second tab.The data in the first tab is the exported data. I can not find out how to merge and get everything on same row and only one row. This needs to be done via a macro. I have a lot of data but this is just some of it.

    if i unmerge the worksheet it then puts the data on two separate rows . Then i do not know how to join the rows.

    I would love to see the code so i can learn from it. This is driving me nuts .
    Attached Files Attached Files

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,176

    Re: clean up data

    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    03-15-2019
    Location
    kentucky
    MS-Off Ver
    365
    Posts
    17

    Re: clean up data

    thank you so much. i have to read your code to see how it is doing everything. It works on my small dataset. But i have to clean up more in the sheet at this time.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,176

    Re: clean up data

    But i have to clean up more in the sheet at this time.
    Does not help supplying a small sample then does it...Is the structure always the same...
    With regards to your PM...The forum has a commercial section where you can hire services...

  5. #5
    Registered User
    Join Date
    03-15-2019
    Location
    kentucky
    MS-Off Ver
    365
    Posts
    17

    Re: clean up data

    you are correct sir. i should have put the full code. i just figured it would not have been that easy. Here is the full code. I been trying to delete the rows 1,2,3 and 4. Then delete any cell row that contains "store " and "000000000" and any blank lines. That should then take out rows 1,2,3,4,6,7,24-28,45-47

    the other data will repeat the same way. That is why a search for those words would be great. I tried with if then and could not get it and thought maybe a switch command. But it does not work and i am tying because of the cells being merged. I have more stores but they show up in the report the same way.

    i understand if you do not want to take a peek and i can start another post in the other section. Just thought i would show you want the report looks like
    Attached Files Attached Files

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,176

    Re: clean up data

    Please Login or Register  to view this content.
    Last edited by sintek; 04-28-2021 at 11:12 AM.

  7. #7
    Registered User
    Join Date
    03-15-2019
    Location
    kentucky
    MS-Off Ver
    365
    Posts
    17

    Re: clean up data

    thank you so much. I am trying to learn I do not understand this line or how you went and deleted stores and 0000000 . can you explain further ?

    .Columns(7).Resize(, 3).EntireColumn.Delete

    i tried to google the answer but too many results.


    Do you recommend any book , class , video series , or anything to learn how to do stuff like that. i never would have thought of doing some of the commands. I am a c sharp guy and trying to transition into excel more.

  8. #8
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,176

    Re: clean up data

    Please Login or Register  to view this content.
    This is no longer in code...It basically deletes from Col 7 to 9 (G to I)
    how you went and deleted stores and 0000000
    This snippet deletes all rows that does not have data in Col B
    Please Login or Register  to view this content.
    Do you recommend any book , class , video series , or anything to learn how to do stuff like that
    https://www.excelforum.com/excel-pro...materials.html

+ 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. Data Clean Up
    By Mikeroku in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-22-2017, 06:11 PM
  2. Data clean up
    By diegolrz in forum Access Tables & Databases
    Replies: 2
    Last Post: 01-18-2016, 10:28 AM
  3. [SOLVED] Coding Convention Questions #2 (To clean up or not to clean up)
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 03-31-2014, 08:18 PM
  4. Help! Data Clean Up!
    By dinozar711 in forum Excel General
    Replies: 3
    Last Post: 03-13-2014, 02:34 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. Clean Function to Clean Entire Sheet
    By gema in forum Excel General
    Replies: 7
    Last Post: 11-05-2009, 10:07 AM
  7. Clean Up Data
    By ultra_xcyter in forum Excel General
    Replies: 2
    Last Post: 08-11-2006, 03:50 PM

Tags for this Thread

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