+ Reply to Thread
Results 1 to 6 of 6

Create macro on excel generated reports

  1. #1
    Registered User
    Join Date
    06-08-2016
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    6

    Create macro on excel generated reports

    Hi, excel masters. I don't know much about macros and VBA but I know that this can be done. if someone would be nice to help me, i would be tremendously grateful. Thank you

    here's what I want to achieve,

    1. I want to eliminate all texts that have "KM", "Litres", "Liters"
    2. I want to eliminate all values under route length that is greater than 500
    3. I want to have the sum of route length for each device because the current value for each device is not equal to actual sum
    4. I want to do all this for every report with different set of data but has the same format

    below is the link to the excel file. Thank you in advance




    https://www.dropbox.com/s/me1qxkh4yb...20Raw.xls?dl=0
    Last edited by aikiya22; 11-09-2017 at 11:50 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,743

    Re: Create macro on excel generated reports

    Many of our users are reluctant to download files from sites not connected to Excel Forum. We prefer that you upload your file to this site.


    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    06-08-2016
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    6

    Re: Create macro on excel generated reports

    hi, here is the file, I've uploaded it here. thanks for the help
    Attached Files Attached Files

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,743

    Re: Create macro on excel generated reports

    Here is code to eliminate the Km. For the other values, ie. Liters, etc. Just substitute in new code. I am not sure what you mean for the rest of your requirements. Please clarify with specific examples as your explanation is unclear.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-08-2016
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    6

    Re: Create macro on excel generated reports

    Hi, thank you for the response.

    on column e, when you removed the "km" it will become number, when it is already number, i want it to add up and show the total in B326, B675 next to route length. every report has different sets of data, so it will not always be B326 and B675.

    on column E, i just want to eliminate all values that is greater than 500. hope this makes it a little bit clear. thanks

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,743

    Re: Create macro on excel generated reports

    Here's the additon to remove the +500 values. I don't have a solution for you for adding the items as you don't have a normalized data sheet.
    Please Login or Register  to view this content.

+ 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. VBA for automatically generated reports
    By twb_cpa89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-05-2017, 12:57 PM
  2. How to create an event from generated excel
    By rosliza in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-02-2013, 04:10 AM
  3. I need to create a numeric control of reports generated / printed
    By daniel2126 in forum Access Tables & Databases
    Replies: 3
    Last Post: 01-08-2013, 10:44 AM
  4. Macro to create individual reports off of a Master Workbook
    By DotWFM in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-21-2012, 01:10 PM
  5. Help to create custom excel reports
    By milovisk in forum Excel General
    Replies: 8
    Last Post: 06-07-2012, 09:55 AM
  6. Macro to Compare daily Generated Reports
    By wnstar21 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-27-2009, 12:22 PM
  7. Macro to create reports
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2009, 09:27 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