Marcelino Institute of Statistics, University of the Philippines Los Baños
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 1
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE I. Introduction to MS EXCEL® Software II. More on MS EXCEL® Functions III. Using PHStat ® for Statistical Data Analysis
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 2
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 3 » Why MS Excel ® ˃ Well-known for its user-friendly environment ˃ Simple functions and operations that do not require programming skills ˃ Easy access and transfer to and across several data set formats ˃ Data set format does not differ too much from older or newer versions
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 4
» OBJECTIVES: Review basic data input techniques in Excel Use functions and mathematical operations Evaluate data sets and use formulas and macros Identify errors in formula and functions created
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 5
» The EXCEL Window
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 6
» Current filename is shown on top
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 7
» Ribbon
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 8
» Menu Tab
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 9
» Home Tab includes tools for editing and formatting data
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 10
» Insert Tab includes option for adding elements e.g. tables, illustrations, and charts
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 11
» Page Layout Tab includes options used to layout page for printing, and to arrange worksheet elements
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 12
» Formulas Tab includes options used to insert and check functions and formulas.
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 13
» Data Tab includes options used to import, sort, filter, manipulate and analyze data.
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 14
» Review Tab includes options used to import, sort, filter, manipulate and analyze data.
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 15
» View Tab includes options used to change how the worksheet appears on active window.
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 16
» Developer Tab ˃ Click on the File menu -> Options from the drop down menu -> Options window appears, click on the Customize Ribbon option on the left -> Developer checkbox under the list of Main Tabs on the right -> OK button.
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 17
» File is a special tab which leads to the Backstage Menu
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 18
» Button grouping for each tab
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 19
» Buttons are called Command Buttons
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 20
» Hide and show command buttons Show Tabs and Commands
Hide command buttons
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 21
» The Worksheet (16, 384 columns and 1,048,576 rows)
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 22
» Entering and editing data points » Copying and moving cells and cell contents » Selecting and navigating » Formatting data (i.e. alignment, cell styles and borders, text format, automatic formatting) » Managing Worksheets (i.e. create, insert and delete worksheets, freeze and hide, lock)
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 23
» Select the cell you want to type in ˃ i.e. not restricted to starting at cell A1 but it is recommended to start at A1 to have a better structuring
» Down by pressing Enter key
Rightward by pressing Tab key Up by pressing Shift+Enter Left by pressing Shift + Tab
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 24
» Cancel or confirm cell content changes
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 25
» Undo or redo multiple actions
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 26
» Add new line within a cell ˃ Press Alt + Enter Key » Enter the same data into a range of cells ˃ Press Ctrl + Enter Key » Delete data using Delete or Clear Button
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 27
» Texts are aligned left while numerical values are aligned right » Negative values can be entered using “-” or “( )” » Press Ctrl + : for current date » Press Ctrl + Shift + : for current time
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 28
» Referencing in Excel is commonly used in data management specifically: ˃ cell content transfer ˃ data management and transfer ˃ formulas and functions
» Requires the use of “=“ then clicking the
specific cell » Can be denoted by the command “=WorksheetName!” if across worksheets
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 29
» Referencing within a worksheet ˃ Requires only “=“
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 30
» Referencing across worksheets ˃ Requires only “= WorksheetName! “
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 31
» Inserting a row (column) precedes the target row (column) » Column size determines the cell content or values to be displayed ˃ Double click the right border (lower border) to change size
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 32
» SORTING 1. Select a cell in the column you want to sort. 2. Click the Sort & Filter command in the Editing group on the Home tab.
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 33
» SORTING 3. Options for sorting depends on the type of cell contents ˃ Numbers: smallest to largest or vice-versa ˃ Letters: A to Z or vice-versa
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 34
» SORTING 4. Sort multiple levels ˃ From the Sort and Filter Button, select custom sort ˃ Press OK in succeeding dialog boxes
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 35
» GROUPING CELLS ˃ Grouping is a really useful Excel feature that gives you control over how the information is displayed. ˃ You must sort before you can group.
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 36
» GROUPING CELLS and subtotals 1. Decide how you want things grouped. In this example, we will organize by Category. 2. Select a function. In this example, we will leave the SUM function selected. 3. Select the column you want the Subtotal to appear. In this example, Total Cost is selected by default. 4. Click OK. The selected cells are organized into groups with subtotals.
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 37
» FILTERING ˃ Filtering, or temporarily hiding, data in a spreadsheet is very easy. ˃ This allows you to focus on specific spreadsheet entries.
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 38
» FILTERING
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 39
» Any formula should always start with “=“ » Writing formulas or operation
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 40
» Types of Operators: ˃ Arithmetic Operators ˃ Comparison Operators ˃ Text Operator ˃ Reference Operator
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 41
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 42
» Comparison Operators
OPERATOR DESCRIPTION EXAMPLE
= Equal to =D10=F10 > Greater than =F5>D5 < Less than =A4<60 >= Greater than or =F3>=G3 equal to <= Less than or equal =Y4<=Z5 to <> Not equal to =F5<>G3
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 43
» Text Operator
OPERATOR DESCRIPTION EXAMPLE
& Concatenates two =D10&E10 (ampersand) values to produce D10: “Ex” text, phrases, or E10: “cel” sentences
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 44
» Reference Operators
OPERATOR DESCRIPTION EXAMPLE
: Range Operator: produces one =B2:B5 reference for all celss between two references , Union Operator: combines =SUM(A1, B2) multiple references into one reference [space] Intersection Operator: =(B3:D7 produces one reference to C2:C8) cells common to two references
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 45
» Order of evaluation of operators (precedence)
ORDER OPERATOR(S) DESCRIPTION
1 “:” then (space) Reference then “,” operators 2 - Negation 3 % Percent 4 ^ Exponentiation 5 * and / Mult’n & Div’n 6 + and - Add’n & Sub’n 7 & Concatenation 8 = < > <= >= Comparison <> PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 46 » Functions in Excel are built-in. Some of the most common functions are shown in
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 47
» Functions in Excel are user-invoked. One must know the name of the function in order to be able to call the function. » Use the “=“ sign to call a predefined function » Example: =SUM(A1:B5) =COUNT(A1:B5) =AVERAGE(A1:B5)
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 48
» In functions, ranges of cells are usually used as arguments. » Data manipulation can be easier if ranges are named. » Names can be used in formulas (instead of the highlighting the cells) for quick referencing. » To name a range:
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 49
» Introduction to Excel. Retrieved from www.spreadsheettrainer.com on February 14, 2015 » Marcelino, R.T. and Mendoza, J.J.O., Effective use of Microsoft Excel for Data Entry, Management, and Analysis. Training Manual. Institute of Statistics, UPLB.
PHILIPPINE STATISTICAL RESEARCH AND TRAINING INSTITUTE 50