The Use of Excel Pivot Tables & Charts to Process TRI and RSEI Data in Support of Data Quality, Enforcement, and Pollution Prevention Activities Douglas M. Chatham, SEE Enrollee Air Toxics Assessment & Implementation Section U.S. EPA Region 4 Atlanta, Georgia
CONTACT INFORMATION Ezequiel Velez, EPA Region 4 Toxics Release Inventory (TRI) Coordinator Tel. (404) Douglas Chatham, SEE Enrollee EPA Region 4 TRI Program Assistant Tel. (404) U.S. EPA Region 4 61 Forsyth Street, S.W. Atlanta, GA 30303
Producing Charts from TRI-Explorer Data n Export Data from TRI-Explorer to Excel ALsc06-releases.xls 1.Export TRI-Explorer Data to CSV files. ST88-06-releases.csv, ST98-06-releases.csv, STch06- releases.csv, STsc06-releases.csv, and STfa06- releases.csv 2.Enter formulas for Total Air, Water, Land, and Underground Injection. 3.Copy the Results and Paste (to the right) the Values into a blank area. Copy the ID column and the Total Air and paste into another blank area. 4.Sort by Total TRI Releases or by Total Air in Descending order. 5.Insert bar charts from these sorted results.
Producing Charts from TRI-Explorer Data n Export Data from TRI-Explorer to Excel Copy Data from the State File to the Region 4 File. R4sc06Temp.xls The Chemical and Industry Data must be aligned across the state entries to be able to sum them.
Producing Charts from TRI-Explorer Data n Export Data from TRI-Explorer to Excel Let’s Do This a Little Faster. TRIMacro.xls
Producing Charts from RSEI n Export Data from RSEI to Access 1.Run RSEI with No Elements Selected 2.Set up a Table with Chemical.CAS Number, Facility.Facility ID, Submission.Year, and Release.Media Code Fields selected. 3.Start a new Access database with an appropriate name (US mdb). 4.Import the Paradox tables Chemical.db, Facility.db, Media.db and the table produced in step 2 into the new database. 5.Establish Relationship Links between the Tables (CAS Number, Facility ID, and Media).
Producing Charts from RSEI n Set Up Access Queries and Export to Excel. The Fields I include are: »CAS NumberChemical »Year »Facility IDFacility Name »FIPSCounty »StateZipCode »Region »SIC Code 2DigitSICName »MediaMediaType »TRI Pounds HazardFull Model
Producing Charts from RSEI n Export Query to Excel Close the Query in Access Select Export from the File Menu Specify How and Where the File Should be Saved (As Excel ) Close Access and Open the Excel File The Next Slide shows a screen shot of the resulting Excel sheet.
Producing Charts from RSEI n Set Up Excel Pivot Tables and Charts Open the Excel Spread-Sheet. qryAL98-05Start.xls Select Cell A1 Select “Data/Pivot Table and Pivot Chart Report” Select “Pivot Chart Report” Move Fields from the Field List to the Appropriate Areas of the Pivot Table.
Producing Charts from RSEI n Save Pivot Table Data & Create Excel Charts Insert Pounds and Risk Data Sheets Copy Pivot Table Data and Paste to the Appropriate Data Sheet Create a Bar Chart from the Data Sheet Format the Chart qryAL_98-05Pivot.xls
Producing Charts from RSEI n Use Visual Basic Program to Generate Charts from the Data Sheets Let’s Generate some charts Using Visual Basic RSEIMacro.xls n What’s Next?? I Plan to Program the Transfer of Data from Pivot Tables to the Data Tables htmhttp:// htm