TLC Quicktip Excel
TLC Quicktip Excel
TLC Quicktip Excel
Microsoft Office Excel is a powerful tool used to create and format spreadsheets. Spreadsheets allow information to be organized in rows and tables and analyzed with automatic mathematics. Spreadsheets are commonly be used to perform many different types of calculations. If you have any questions, feel free to ask a TLC staff consultant for assistance during staffed hours at your center.
In this tutorial, learn how to: Navigate Cells Manipulate Data Use Formulas and Functions Create Charts and Tables
Contents
Getting Started
Definitions Ribbon Navigating Cells 2-3 2 3 3 4-7 4 4 5-6 6 6-7 7-9 7 8 8 9 9 9 10-11 11 12
Data
Entering Data/Text Editing Data/Text Autofill Controlling Your View of Data Sorting and Filtering
Formulas
Cell References Autofill with Formulae AutoSum Functions AutoCalculate Name Manager
Definitions
Workbook vs. Worksheet when you open Excel, a new file is created called Book 1 (until you name
it differently). It is called Book because it is a Workbook that is initially made up of three Worksheets (accessible from the tabs in the lower left corner of your excel window - see Fig. 1). Think of a three ring binder with three sheets of paper in it. As with a binder, you can: Add sheets to your Workbook: Insert > Worksheet, or click on the new worksheet tab to the right of the tabs for your existing worksheets Delete worksheets: by right-clicking on the tab of the worksheet you wish to delete, then selecting delete Re-arrange them: by clicking on the worksheet tab and dragging it to the location you desire Rename worksheets: by double-clicking on the worksheet title
Cell cells are the basic rectangular building blocks of a spreadsheet. They are assigned an address, generally referred to as a cell reference, according to their column and row (e.g. the cell in column B at row 3 is referenced as cell B3).
Row rows travel horizontally and are numbered. Column columns travel vertically and are assigned letters. Formula a mathematical formula used to calculate a result based on data from one or more other
cells. Often they consist of some combination of the standard mathematical operators ( +, -, *, /) (e.g.: =(A1+A5)/B13), but they may also include functions (see below). When you type a formula into a cell, that cell will generally display the result obtained by the formula, rather than the formula itself.
Functions pre-written formulae that perform common (and not so common) calculations, such as summation and averaging. You can combine many functions and operators in a single formula to obtain more complex results (e.g.: =SUM(A1:A13)).
Navigating Cells
To select:
a single cell a range of adjacent cells non-adjacent cells or ranges an entire row or column all cells the next cell to the right the next cell down the column the A1 Home cell the last cell in a sheet
Do this (If you are left-handed use Right click in place of Left):
Left click on it Drag from the first cell to the last cell, or click on the first cell, hold the Shift key and click on the last cell (scrolling if necessary) Hold CTRL (Windows) or Command (Mac) key and click or drag Left click on the row or column heading Left click on the blank header in the upper left corner Use the Tab key Use the Enter key Press Ctrl + Home keys together Press Ctrl + End keys together
Editing Data/Text
If you want to entirely replace the data that you previously entered into the cell, just click on it and type the new data. The old data will automatically be erased. If you want to edit data in a cell, click on the cell, then go up to the formula bar and edit the data that appears there (see Fig. 3). If you want to delete part of your entry, just use the backspace key as usual. If you want to delete the entire contents of a cell (or multiple cells), select the cell(s) you want to clear and press the delete key.
Click on the cell with the data you want to edit Fig. 3: Editing data
Excel knows how to Autofill months (January or Jan) and days of the week (Monday or Mon). You can teach Excel to Autofill other text series. First, click on the Office Button and choose Excel Options in the lower right corner of the menu. In the Popular category (the one that appears automatically), click on Edit Custom Lists... (see fig. 5).
Click here to import a list already entered into your spreadsheet. Fig. 6: Custom Lists Menu
When the Custom Lists window appears, select New List in the column on the left (it will probably already be selected) and type your whole list in the column on the right (see fig. 6). You can also import a list you have already typed into cells by clicking on the import symbol (see fig. 6), selecting the list you wish to import, and pressing Enter. Click OK, and from now on you can type the first letter of the list, and just autofill the rest!
Another way to organize data is to filter it. A filter only displays data that meet a certain criteria, such as all records for a certain day. To do this, go to Data tab > Filter. A dropdown arrow will appear in the header cell of each column of your worksheet. Click on the arrow and select the criteria that you would like to use as a filter (e.g. April 10th). The worksheet will now display only the records from that day. You can also use the AutoFilter tool to display the top or bottom 10 numbers in a column, only records with blank spaces in that particular column, records that have a value greater than a certain number in the column that you are filtering, etc. These options are all available under the dropdown arrow that you will see after going to Data tab > Filter.
Formulas
Select the cell that the formula result is going to be displayed in. Operation: Sign: Example: The formula can be constructed in the formula bar or typed diAddition + =A1+B1+C1+D1 rectly into the cell in which you want the formula to begin. You =A1-A2 must always put the = sign before a formula, as this is how Excel Subtraction Multiplication * =C4*C5 recognizes what you are entering as a formula. Autofill helps you fill in formulae quickly once you have constructed one in a Division / =C4/D4 cell. In order to Autofill, select the cell with the formula. Place Combination (___) = A1*(B1+C1) your cursor so the small black cross appears in the lower right corner of the cell (+). Once that cursor is visible, simply drag your formula down the column (or across the row as the case may be). Autofill will change the cell references accordingly. (E.g.: If the formula in A3 is =A1+A2, when you drag that formula over to B3 then the formula becomes =B1+B2.) Note that cell references can also change automatically when you copy and paste a formula using the clipboard, unless you use an absolute cell reference (see below).
Cell References
There are two different types of cell references: Relative Cell References: cell references that change when the formula is autofilled into different cells, as in the example above. Absolute Cell References: if you don't want a certain part of your cell reference to change when you copy the formula to a new cell, you need to put a $ in front of the row and/or column part of the reference. E.g.: If the formula in A3 is =$A$1+A2, when you drag that formula over to B3 the formula becomes =$A$1+B2.
Updated by Rachael Steller (Summer 2008)
Functions
Excel has created hundreds of functions that prevent you from having to write out complex or repetitive formulae yourself. Functions can be inserted by by clicking on the function symbol (see fig. 8) to the left of the formula bar (see fig. 9). Functions Fig. 8: Function can also be inserted by clicking on the Insert Function button on the Formula Symbol tab or jumping to any of the subcategories of functions on that tab (see fig. 10). Yet another way to insert a function is to type the equals sign into a cell and begin to type the name of formula. A drop down menu will appear, from which you can select the formula. Functions can also be 'nested'; that is inserted into larger functions by using the appropriate amount of brackets. =AVERAGE(SUM(B2:F2), SUM(B3:F3))
Formula Tab
Name Manager
Name Box with new name for highlighted cells
You can use Name Manager to name a group of cells, and therefore only type one name when you want to perform a calculation with that group. This can be useful when you are performing many different calculations on the same set of numbers, especially when you want to perform these calculations across multiple sheets. To do this, select the cells you would like to name and name them in the name box next to the formula bar (see fig. 12). You can then perform any function on these cells (on any page of your workbook) by just typing the name you gave the cells instead of referencing the cell numbers (ex: =sum(Days)). You can edit the names you gave the cells and change which cells they refer to by clicking on Name Manager on the Formula tab.
Charts
A full discussion of Excels many charting options is beyond the scope of this handout. However, it is fairly straightforward to create a simple chart (and some complicated ones) using the chart wizard. Just highlight the data you wish to base your chart on (including header rows, if you have any) and click on the Insert tab and you will see the available charts there. When you click on a type of chart, you will be promted to select a subtype of chart. Once you have done so, the chart will appear on your spreadsheet. Three additional tabs will also appear on your ribbon (see fig. 13), through which you can alter your chart by adding titles, changing data points, and many other options.
New tabs to change aspects of your chart
Now choose any cell in this table and choose the Insert tab > Pivot Table. Excel will select all of the cells in your table, and this range will appear next to Table/Range in the pivot table menu. At the bottom of this window you can choose where you would like the Pivot Table to be placed: new sheet or in an existing sheet. If you select Existing sheet, you can choose the Pivot Tables location by selecting or typing the name of the cell that you would like the top left corner to be. Click OK.
Drag the headers Who, Week and What into the Row Labels area, and the Amount header into the Values area. (Leave the Column area blank for now.) To change the placement of an item, drag the header title to the desired area. If the Amount tag does not show "Sum of Amount", click on it, select Value Field Settings, and choose the Sum option. You can use different functions other than sum, such as (sum, average, count, etc.) by changing this. Clicking on the arrows next to the headers gives options of showing/hiding specific data and reorganizing items in the column. Right-clicking on the row labels in the pivot table allows you to remove subtotaling for that category. You can also change the look of your Pivot Table by selecting the Design tab on the Pivot Table Tools portion of the ribbon. Lets try another example. This time, drag Who into the Row Labels field, What into the Column Labels field and Amount into the Values field. This sorts your data in a different way. You can change the order of the columns the same way you changed the rows: by clicking on the arrow next to Column Labels. See fig. 14 (next page) for clarification of these steps.
10
Right-click here to remove the subtotal across from it (and all of the subtotals across from the other items in that category)
Click here and go to Value Field Settings to change the function performed on this category Fig. 14: Pivot Table
Common sources of errors are parentheses that dont match or missing arguments for functions. If your formula is free from those errors, here are some error values you might get: ###### #DIV/0 There is nothing wrong with your formula; the cell simply isnt big enough to display the result. Widen the column. You are trying to divide by zero Correct the divisor If the divisor is a cell reference, check to make sure the cell isnt empty There is a name in the formula that Excel doesnt recognize. If you used a natural language name, check the spelling If you typed in a function, check the spelling or verify that the function exists. If you are performing operations on text, enclose the text in double quotation marks A cell reference is not valid. Check to make sure your formula references the right cells. The formula uses the wrong type of operand or argument. Check to see that youre not performing math operations on labels or that arguments or functions that need to numeric are not referring to cells containing labels. This can also happen if you try to perform an impossible mathematical function (ex: taking the square root of a negative number).
Troubleshooting
#NAME?
#REF! #VALUE!
11
Printing
1. 2. 3. 4.
Highlight the area that you want to print. From the menu bar, select Page Layout > Print Area > Set Print Area Now when you go to MS Office Button > Print Preview, you will see only the area that you highlighted. To go back to printing the entire document, use Page Layout > Print Area > Clear Print Area
If you want to print a section of your spreadsheet on every page you print (for example, printing the titles of your columns on every page in a long list of data), go to Page Layout > Print Titles, and select or type the name(s) of the row(s)/column(s) you would like to repeat on each page.
We hope this Quicktip has been helpful for you. If you have any further questions, please visit any TLC during staffed hours (Sun-Thurs 8pm-11pm, Fri 1pm-3pm). If you have any comments on this quicktip, please go to: http://www.tlc.housing.wisc.edu/feedback.php
Updated by Rachael Steller (Summer 2008)
12