+ Reply to Thread
Results 1 to 14 of 14

Adding/Deleting rows, columns, and more automatically.

  1. #1
    Registered User
    Join Date
    09-05-2010
    Location
    Massachusetts (USA)
    MS-Off Ver
    Excel 2007
    Posts
    44

    Question Adding/Deleting rows, columns, and more automatically.

    I have an Excel (I use 2003, 2007) issue that's driving me nuts. After I run a report from a program I am using, it will generate ugly, raw, data. I want to clean up the data so it looks more presentable and visually digestible.

    The data changes daily, however, some parts will be static like the row groupings (the number of rows per cluster will change), placement of the "totals" and some columns.

    When I make this report/sheet, I want to delete the highlighted headings (they are unneeded), space out the row clusters, and add a total for each cluster of rows, and finally a total of all the "Row Totals" all automatically or with as little manual intervention as possible.

    Attached is a bare-bones example of what I want as my final product as a visual. I hope I was clear in what I am looking to do. Any questions, ideas, suggestions, criticisms, etc are much appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Adding/Deleting rows, columns, and more automatically.

    BlondOIverBlue,

    Welcome to the Excel Forum.

    Thanks for the workbook.

    Please attach another workbook or a sample workbook that accurately portrays your current workbook raw data on one sheet, and what it should look like 'After' on another sheet. This makes it much easier to see exactly what you want to do, as well as shows us whether there is a consistent number of rows between tables and such.
    Last edited by stanleydgromjr; 09-07-2010 at 06:56 PM.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Registered User
    Join Date
    09-05-2010
    Location
    Massachusetts (USA)
    MS-Off Ver
    Excel 2007
    Posts
    44

    Talking Re: Adding/Deleting rows, columns, and more automatically.

    Hi Stan,

    Thanks for the reply. I have attached a new workbook. A tab with the original data as pulled from my program (labeled Raw Data) and the other tab with how it should look (more or less as cosmetic tweaking will be done more in depth later).

    Most of the data was changed due to privacy concerns, but that should not hinder anything.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Adding/Deleting rows, columns, and more automatically.

    BlondOIverBlue,

    I assume that your raw data is already sorted/grouped by Tech.

    Detach/open workbook BlondOIverBlue - EF744797 - SDG13.xls and run macro CreateReport.

    The macro will create a new worksheet Report.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-05-2010
    Location
    Massachusetts (USA)
    MS-Off Ver
    Excel 2007
    Posts
    44

    Thumbs up Re: Adding/Deleting rows, columns, and more automatically.

    Hi Stan:

    Wow, that's exactly what I needed! I do have a question. I ran a new report out of my database, saved it, and then ran the macro. It seems it didn't work. What I determined is that the Raw Data label is the cause. When I run the report fresh, the original label is: R&D Jobs. I changed the label only for the forum example sheet.

    How do I change the macro to look at the R&D Jobs tab and also remove the Start Time and End Time columns? I was able to change the output tab from Report to Morning Report.

    Thank you so very much for the help! If you need any attachments, let me know.

  6. #6
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Adding/Deleting rows, columns, and more automatically.

    BlondOIverBlue,

    Detach/open workbook BlondOIverBlue - EF744797 - V2 - SDG13.xls and run macro CreateReportV2.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-05-2010
    Location
    Massachusetts (USA)
    MS-Off Ver
    Excel 2007
    Posts
    44

    Thumbs up Re: Adding/Deleting rows, columns, and more automatically.

    Stan:

    Thank you very much! This project turned out exactly how I envisioned it! I can't express how happy and grateful I am for all the help!

  8. #8
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Adding/Deleting rows, columns, and more automatically.

    BlondOIverBlue,

    You are very welcome.

    Come back anytime.

    For my own personal information: How much time in hours do you think my macro will save you per day/week/month?

  9. #9
    Registered User
    Join Date
    09-05-2010
    Location
    Massachusetts (USA)
    MS-Off Ver
    Excel 2007
    Posts
    44

    Re: Adding/Deleting rows, columns, and more automatically.

    Stan:

    Honestly, the what the macro saves in frustration alone is immeasurable. You wouldn't believe how the report was generated before, manually. If you need an actual figure, it'll save 4.5 hours a week or about 18 hours a month. The biggest benefit is the report can be released on-time at the start of the day versus hours later; by the time it got out, it was afternoon, defeating the idea of a "Morning Report".
    Last edited by BlondOIverBlue; 09-09-2010 at 08:38 PM. Reason: Corrected typos.

  10. #10
    Registered User
    Join Date
    09-05-2010
    Location
    Massachusetts (USA)
    MS-Off Ver
    Excel 2007
    Posts
    44

    Red face Re: Adding/Deleting rows, columns, and more automatically.

    Popular demand has requested the report include the technicians' names, first and last. That information is gleaned from the R&D Technicians tab.

    I added today's report to this post, updating the Morning Report tab with an example of how the final report should look when the report is created using the macro.

    Is it possible to get the tech names into the final report when the macro is run plus the freeze pane option so headers are static as users scroll through the report? Thanks so much again!
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Adding/Deleting rows, columns, and more automatically.

    BlondOIverBlue,

    Detach/open workbook BlondOIverBlue - EF744797 - V3 - SDG13.xls and run macro CreateReportV3.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    09-05-2010
    Location
    Massachusetts (USA)
    MS-Off Ver
    Excel 2007
    Posts
    44

    Thumbs up Re: Adding/Deleting rows, columns, and more automatically.

    I'm continually amazed and humbled by the support of this forum.

    THANK YOU so very, very much! I can't express in words my gratitude....

  13. #13
    Registered User
    Join Date
    09-05-2010
    Location
    Massachusetts (USA)
    MS-Off Ver
    Excel 2007
    Posts
    44

    Update: Adding/Deleting rows, columns, and more automatically.

    I'm back. I wasn't sure whether to open a new thread or reuse this one.

    I'm faced with a new challenge. I hope I can explain this without too much confusion.

    I'm switching from a morning report to an End of Day (EOD) Report. I'd like to have daily EOD Report tabs with the date of each report like this: EOD Report - 10-08-2010 at the bottom.

    However, I need to add some more data which come off the default tabs, mainly the R&D Jobs tab (I renamed it in the example sheet that is attached to NEW EOD Report - 10-08-2010)

    When I run the CreateReportV3 macro, I need the following done:
    • Add columns "First Name" and "Last Name" from R&D Technicians tab to R&D Jobs tab in between "Tech" and "Job Id"
    • Add calculations for "Total Units" for each tech
    • Add calculations for "Total Hours" for each tech
    - Based on lowest "Start Time" and highest "End Time"
    • Add calculations for "Units per Hour" for each tech
    • Resize columns to fit
    • Delete the following columns: Zip Code, JS, DS, RteC, Reason, EST, ETA, Time ETA Entered, Company
    • Format text using "Center Text" and "Middle Align"
    • Freeze rows 1, 2, 3, 4 so header info shows when scrolling.
    • Rename the R&D Jobs tab to EOD Report - 10-08-2010 (or the current date the report is being run)

    Now, the big question is the creation of the Week ending 10-16-2010 tab.

    Is it even possible to have that tab auto-update as each daily report is run? It's going to be a pain already having to run the daily reports, run the macro, and paste each new daily EOD into the template.

    The software I glean the raw data from only opens Excel as a new separate file, so that's why I have to keep that part manual, unfortunately. Ultimately, I am trying to keep manual data entry down to a nominal minimum if I can.

    Attached is the file, with the macro, as how I envision it, minus the highlighted columns. The highlight can be removed. I hope I made some sort of logical sense here. I apologize if not and will clarify any and all questions.

    I also uploaded a file straight from the software program so it's easier to see what the actual data look like pre-macros or other editing.
    Attached Files Attached Files
    Last edited by BlondOIverBlue; 10-09-2010 at 09:25 PM.

  14. #14
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Adding/Deleting rows, columns, and more automatically.

    BlondOIverBlue,

    I have exceeded the normal amount of time I allocate for solving problems/requests on web sites like Excel Forum.

    Your requirements are quite complicated, but doable.

    I would suggest that you start a completely new post with a new title, and someone else will assist you.

+ 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