+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Create Paper Usage Report

  1. #1
    Registered User
    Join Date
    03-31-2011
    Location
    Elkhart IN
    MS-Off Ver
    Excel 2003
    Posts
    4

    Create Paper Usage Report

    As part of my company's "Go green" initiative I have been asked to create a report that shows individual page counts for people that print in the office to raise awareness. I may have found one way to do this however I am not very good with Excel.

    My print server logs every print job sent to it including number of pages printed. I can export the log to a CSV file and remove the unneeded columns however the column showing total pages printed also contains other information that I do not need. I have attached an example that shows all print jobs ocurring on 3/1/11.

    I am looking for a way to semi-automate the process of generating a report but I do not know how to do it. I will still have to manually export the data from my server and remove any unneeded info, but from that point is it possible to run a script or macro that will grab the data and generate a nice looking report that may possibly even include some graphs? (Graphs are optional). Idealy I want a report that shows total pages printed by user and a total page count for everybody. Can this be done?

    I left the date and time columns however date and time are not important. I will be creating a monthly report so I will only export the data for the month that is needed. The only columns that are really needed are User and total pages.
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Create Paper Usage Report

    Try this macro

    Please Login or Register  to view this content.
    Open up the VBA editor by hitting ALT F11

    Insert a new module by hitting Insert - Module

    Paste the macro into the empty sheet

    Hit ALT F11 to get back to the worksheet.

    Run the macro by going to tools-macro in Excel 2003 or the view ribbon in Excel 2007.
    Martin

  3. #3
    Registered User
    Join Date
    03-31-2011
    Location
    Elkhart IN
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Create Paper Usage Report

    This works perfectly! Thank you. Can I ask one more question? How can I change the macro so it trims off the domain name from the username? The raw data shows "APG\Username" and in the report I would like to strip off APG\ so it just shows "Username".

    Thanks again! This is a huge help.

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Create Paper Usage Report

    As requested plus some sorting, totalling and graphing.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-31-2011
    Location
    Elkhart IN
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Create Paper Usage Report

    That works great, but I have one more request. I would like to add a total at the end of the column on the worksheet that looks like: TOTAL XXXXXX (in bold)

    Thanks again for all the help!
    Last edited by shg; 04-05-2011 at 04:57 PM. Reason: deleted spurious quote

  6. #6
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Create Paper Usage Report

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    03-31-2011
    Location
    Elkhart IN
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Create Paper Usage Report

    Works perfectly. Thank you again, you have been a huge help!!

+ 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