Upload
dorthy-houston
View
212
Download
0
Embed Size (px)
Citation preview
PROJECT OVERVIEWPROJECT OVERVIEW
PINGER EXECUTIVE PLOTSPINGER EXECUTIVE PLOTS
AKBAR MEHDIAKBAR MEHDI
SequenceSequence
1.1. TASKS GIVENTASKS GIVEN
2.2. OVERVIEW OF TOOLS USEDOVERVIEW OF TOOLS USEDPivot TablesPivot Tables
VBAVBA
3.3. CURRENT TASK PROGRESSCURRENT TASK PROGRESS
TASKSTASKSThe aim is to provide high level plots of data The aim is to provide high level plots of data generated by PingER to executives.generated by PingER to executives.
These plots are to be designed using tools in MS These plots are to be designed using tools in MS Excel such asExcel such as– VBA(Visual Basic for Applications)VBA(Visual Basic for Applications)– Pivot tablesPivot tables– MacrosMacros
Plots should provide a more management Plots should provide a more management oriented view of the data generated by PingER.oriented view of the data generated by PingER.
OVERVIEW OF TOOLS USEDOVERVIEW OF TOOLS USED
Pivot TablesPivot Tables
Pivot TablesPivot TablesPivot tables quickly summarize and analyze large amounts Pivot tables quickly summarize and analyze large amounts of data in lists and tables.of data in lists and tables.
Independent of the original data layout, a summary is Independent of the original data layout, a summary is created by dragging, dropping columns to different rows, created by dragging, dropping columns to different rows, columns, or summary positions. columns, or summary positions.
As an exampleAs an example– Lets say we have a huge database of census data in Excel with Lets say we have a huge database of census data in Excel with
various data fields.various data fields.
– Obviously it would be difficult to analyze such a large amount of Obviously it would be difficult to analyze such a large amount of data and even graphing would not be feasible.data and even graphing would not be feasible.
– We can create a pivot table summary using this raw census data. We can create a pivot table summary using this raw census data.
– With the drag of a mouse, you can easily rearrange the pivot table With the drag of a mouse, you can easily rearrange the pivot table so that it summarizes the data based on gender so that it summarizes the data based on gender oror age groupings age groupings oror geographic location. geographic location.
Pivot TablesPivot Tables
Pivot TablesPivot Tables
Pivot TablesPivot Tables
VBA VBA (Visual Basic for Applications)(Visual Basic for Applications)
VBA (Visual Basic for Applications)VBA (Visual Basic for Applications)
VBA is "Visual Basic for Application". VBA is "Visual Basic for Application".
It is a programming language that allows users to It is a programming language that allows users to program macros to accomplish complex tasks within an program macros to accomplish complex tasks within an application. application. – Such Applications include MS Word, MS Excel and MS Access.Such Applications include MS Word, MS Excel and MS Access.
VBA for Excel is powerful programming language with VBA for Excel is powerful programming language with which you can develop within Excel, real programs that which you can develop within Excel, real programs that will accomplish in a few minutes very complex tasks. will accomplish in a few minutes very complex tasks.
VBA FeaturesVBA FeaturesVBA code uses five types of components:VBA code uses five types of components:
– ObjectsObjects They are the building blocks of Excel projects.They are the building blocks of Excel projects.They are the application (Excel), the workbooks, the They are the application (Excel), the workbooks, the worksheets, the cells and the ranges, the charts, the worksheets, the cells and the ranges, the charts, the drawings, the controls (command buttons, text boxes, list drawings, the controls (command buttons, text boxes, list boxes, etc.).boxes, etc.).
– PropertiesProperties All objects have properties that you can set and modify. All objects have properties that you can set and modify. For example the font can be bold, the sheet can be visible or For example the font can be bold, the sheet can be visible or not, a cell can have a formula not, a cell can have a formula
– ProceduresProceduresAllow the programmer to write code in the form of modules to Allow the programmer to write code in the form of modules to be called as macros.be called as macros.
VBA Features (contd.)VBA Features (contd.)
FunctionsFunctions– These include These include
Excel functions such as SUM( ), COUNTIF( ) Excel functions such as SUM( ), COUNTIF( )
VBA functions such as UCASE, LCASE, NOW()VBA functions such as UCASE, LCASE, NOW()
– Can be called from VBA procedures.Can be called from VBA procedures.
StatementsStatements – IF..THEN, DO...LOOP, FOR...NEXT, WITH...END WITH, EXIT IF..THEN, DO...LOOP, FOR...NEXT, WITH...END WITH, EXIT
FOR, EXIT DO, EXIT SUBFOR, EXIT DO, EXIT SUB
VBA EditorVBA Editor
Current Task ProgressCurrent Task Progress
Tasks CompletedTasks Completed
I have completed an excel based I have completed an excel based application which:application which:– Automatically reads data from text file into Automatically reads data from text file into
Excel sheetExcel sheet– Generates Pivot Tables of the DataGenerates Pivot Tables of the Data– Creates graphs of the pivot tables.Creates graphs of the pivot tables.
The data for the text file is obtained from:The data for the text file is obtained from:– http://www-iepm.slac.stanford.edu/cgi-wrap/http://www-iepm.slac.stanford.edu/cgi-wrap/
pingtable.plpingtable.pl
Pivot TablePivot Table
Graph GeneratedGraph Generated
Current TasksCurrent Tasks
Generating Pivot Tables and graphs for Generating Pivot Tables and graphs for data on the following page:data on the following page:
– http://www-iepm.slac.stanford.edu/pingehttp://www-iepm.slac.stanford.edu/pinger/prmoutr/prmout
Improving the created pivot tables and Improving the created pivot tables and graphs to make them more dynamicgraphs to make them more dynamic
THANKYOUTHANKYOU