Download presentation
Presentation is loading. Please wait.
Published byOliver Bryan Modified over 9 years ago
1
1 Intro to Micro Apps EXCEL Copyright 2013 by Janson Industries 1 2 3 ----- TOTAL6 Assg1Assg1 Assg2 Assg3 Assg4Assg2Assg3Assg4
2
Copyright 2013 by Janson Industries 2 Objectives n Explain u Basic spreadsheet concepts u Relative/Absolute addresses u Charts u Expressions n Show how to: u Create, edit, and save spreadsheets using Excel
3
Copyright 2013 by Janson Industries 3 Concepts n Spreadsheet is made up of rows and columns (cols), essentially a table u Excel calls this a worksheet n Col(s) identified with a letter(s): A n Rows identified with a number(s): 1 n Intersection of row & col is a cell n Cells identified by col letter followed by the row number: A1
4
Copyright 2013 by Janson Industries 4 Concepts n Cells hold the contents of the spreadsheet n Use the arrow keys to move between cells or click on a cell n SS will scroll when you reach the bottom of the screen n To enter data, move the cursor to the cell and start typing n Multiple worksheets can be stored in a single PC file called a workbook
5
Copyright 2013 by Janson Industries 5 Like Word, when first started can create from a template or create blank Spreadsheet (SS)
6
Copyright 2013 by Janson Industries 6 Standard tabs and ribbons Active cell (where cursor is) has border around and address displayed in Name box Border shows row numbers, column letters, and active row/col is highlighted SS can have many sheets
7
Copyright 2013 by Janson Industries 7 Moving In the Spreadsheet n Up, down, right, and left arrows move one cell at a time n Page down and Page up moves 1 screen of rows (default) n When at the edge of the screen, up, down, right, and left arrows scroll one row/column at a time n Ctrl+Home moves cell A1 to upper left of SS n Go to a cell: enter cell address in Name box and press Enter
8
Copyright 2013 by Janson Industries 8 Spreadsheet Data n Two general categories u Text: descriptive info u Values: can perform logic and mathematical functions against n Values broken into u Static numbers/Fixed Constants u Formulas u Functions
9
Copyright 2013 by Janson Industries 9 When entering data Excel will distinguish between text and values. E.g. text is left justified in the cell but values are right justified
10
Copyright 2013 by Janson Industries 10 SS Data n Text can consist of numbers u Phone numbers u Social security numbers n Why are these considered text? n No mathematical functions will be performed against them!
11
Copyright 2013 by Janson Industries 11 Documentation n SS’s can get very complicated (as you will see) n Especially if many people are using, must document n Good documentation includes u Descriptive sheet names u Descriptive text in sheet u Cell comments u Documentation worksheet
12
Copyright 2013 by Janson Industries 12 To change a sheet name, right click it and select rename Name will get highlighted and cursor will be place in tab
13
Copyright 2013 by Janson Industries 13 Just type to replace the old name
14
Copyright 2013 by Janson Industries 14 To insert a comment, click on a cell, then the REVIEW tab and New Comment
15
Copyright 2013 by Janson Industries 15 A comment box will be displayed with the user name Just type to add text and click on another cell
16
Copyright 2013 by Janson Industries 16 To add a sheet click the + to the right of the last sheet tab Cells with comments will have a red triangle in upper right corner
17
Copyright 2013 by Janson Industries 17 Can also include info about the purpose of the workbook, how it works, etc. Good doc sheet has info (meta data) about the entire workbook
18
Copyright 2013 by Janson Industries 18 SS Data n There are some special values that SS’s recognize u Dates u Times n SS’s will uniquely format these values and provide special functions
19
Copyright 2013 by Janson Industries 19 SS Data and Formulas n Formulas begin with an = and are composed of standard mathematical functions: u Exponents ^ u Multiplication & Division * / u Addition & Subtraction + – n This is also the order of precedence (and within the formula, left to right) n Can change OOP with () n Examples: =1+2, = 2+4/2, (2+4)/2
20
Copyright 2013 by Janson Industries 20 SS Data - Formulas n Formulas can also include cell addresses instead of static numbers u Example: =G6+G7 n Formulas with static numbers (instead of cell addresses) are considered “hard coded” n Formulas with cell addresses are considered “soft coded” n Hard coding BAAAADDDD! Soft coding GOOOODDDD! Why? Because of recalculation!
21
Copyright 2013 by Janson Industries 21 Recalculation n If the content of a cell is changed, any dependent cells will automatically be recalculated n Good? Why?
22
Copyright 2013 by Janson Industries 22 Cell G11 contains a hard coded formula Change a cell value by clicking and typing G5 changed to 1000, the total is now incorrect
23
Copyright 2013 by Janson Industries 23 We substituted cell addresses for the static values in the formula When the Car value in cell G5 is changed, the total in G11 is recalculated automatically by Excel
24
Copyright 2013 by Janson Industries 24 Formulas n Lots of different ways to specify cell address n For instance, as you enter the formula, click on a cell and it will be added to the formula
25
Copyright 2013 by Janson Industries 25 Copy and Move n Standard cut, copy, & paste u Click on cell to be copied u Click cut or copy u Click on target cell u Click paste n When a cell is copied, its border changes to a moving dashed line
26
Copyright 2013 by Janson Industries 26 G5 has been copied
27
Copyright 2013 by Janson Industries 27 Copy and Move n To get rid of the dashed border press the Esc key n Keystroke short cuts still work u Crtrl+C or Crtrl+X then Crtrl+V n You can also cut or copy a RANGE of cells
28
Copyright 2013 by Janson Industries 28 Ranges n A rectangular set(s) of adjacent cells n To identify a range, click on the upper leftmost cell and drag to the lower rightmost cell (or visa versa) n The range will be “selected” u All selected cell’s (except the current cell) background color will change and a border will surround the cells n Range identified by: u Upper left cell address u A colon u Lower right address
29
Copyright 2013 by Janson Industries 29 Once selected you can cut/copy and paste just like a single cell Range is I4:I9
30
Copyright 2013 by Janson Industries 30 Ranges n Ranges can be moved by dragging: u Select the range u Click and hold on the ranges’ border u Drag to the new location u Release
31
Copyright 2013 by Janson Industries 31 Non-adjacent Ranges n You can select and manipulate multiple non-adjacent ranges u Select the first range u Press and hold the CTRL key u Select a non-adjacent range u Continue until all ranges are selected u Format, delete, copy/cut and paste
32
Copyright 2013 by Janson Industries 32 Selected non-adjacent ranges Result of a copy/paste to K13
33
Copyright 2013 by Janson Industries 33 Manipulating the SS n Based on the content of the selected cells, autofill will try to guess what you want to input into adjacent cells n Select cells that have series of data u 1,2,3 u 1/23/15, 1/24/15, 1/25/15 n Click and drag on the fill handle u Solid square in lower right of selected cells border
34
Copyright 2013 by Janson Industries 34
35
Copyright 2013 by Janson Industries 35
36
Copyright 2013 by Janson Industries 36 Manipulating the SS n To insert a row or column u Position the cursor at the row or column were you want to insert before u Click Home tab u Display Insert menu u Select Insert Sheet Rows/Columns n You can also: u Right click a cell u Select Insert u Click Entire Row or Column
37
Copyright 2013 by Janson Industries 37
38
Copyright 2013 by Janson Industries 38
39
Copyright 2013 by Janson Industries 39
40
Copyright 2013 by Janson Industries 40 Manipulating the SS n To delete a row or column u Position the cursor at the row or column to delete u Click Home tab u Display Delete menu u Select Delete Sheet Rows/Columns n To clear a row or column u Click on the row number or column letter (to select) u Press Delete key
41
Copyright 2013 by Janson Industries 41
42
Copyright 2013 by Janson Industries 42
43
Copyright 2013 by Janson Industries 43 Manipulating the SS n Change row height or column width u Move cursor over row bottom or column right border divider F Changes cursor to u Click and drag n Of course, Undo and Redo still work
44
Copyright 2013 by Janson Industries 44 Before you release will show you the effect
45
Copyright 2013 by Janson Industries 45
46
Copyright 2013 by Janson Industries 46 Manipulating the SS n AutoFit will change the column and row sizes so all the data is displayed u Select the cells, rows and/or columns to autofit u On the HOME ribbon, display the Format menu u Choose to change row or column size
47
Copyright 2013 by Janson Industries 47
48
Copyright 2013 by Janson Industries 48 Fortunately Undo still works
49
Copyright 2013 by Janson Industries 49 Manipulating the SS n Can also change the contents of a cell by u Double clicking the cell to edit F Puts cursor in the cell and is in insert mode u Click cell and click formula window to edit F Puts cursor in the formula window and is in insert mode n Delete, Backspace to delete a character before or after cursor
50
Copyright 2013 by Janson Industries 50 Manipulating the SS n Can also delete the contents of an entire row or col (clearing) u Select row or col by clicking on its border letter or number u Press the delete key F Row/col is still in the SS, just the data has been deleted F Other rows/cols location not affected
51
Copyright 2013 by Janson Industries 51 Merging Cells and Centering n Just like manipulating a table in Word n Select the cells to merge n On the HOME ribbon, click the Merge & Center button
52
Copyright 2013 by Janson Industries 52
53
Copyright 2013 by Janson Industries 53
54
Copyright 2013 by Janson Industries 54 SS Views n 2 alternative views of the SS u Page Layout F Shows margins, headers/footers, page breaks u Page Break F Shows page breaks and allows the user you to manipulate them n To change view click on the icons to the left of the zoom slider
55
Copyright 2013 by Janson Industries 55 Page Layout view
56
Copyright 2013 by Janson Industries 56 Page Break view
57
Copyright 2013 by Janson Industries 57 Click and drag dotted line
58
Copyright 2013 by Janson Industries 58 Print Preview shows that only Jan data is on first page
59
Copyright 2013 by Janson Industries 59 Page Breaks n To insert click on cell where you want the page break to go to the left and above n On the PAGE LAYOUT ribbon, click Breaks, then Insert Page Break n With SS, you will often change the page orientation to landscape n To print: u Click File button u Click Print
60
Copyright 2013 by Janson Industries 60 Put in 2 page breaks that broke the SS into 6 pages To remove, click on blue line and drag off
61
Copyright 2013 by Janson Industries 61 Print Titles n If SS will span many pages, col and row title text will only appear on first page n Can force a col or row to be repeated n On PAGE LAYOUT ribbon click Print Titles
62
Copyright 2013 by Janson Industries 62 Specify col(s) or row(s) to be repeated
63
Copyright 2013 by Janson Industries 63 Print preview shows row titles will be repeated
64
Copyright 2013 by Janson Industries 64 Headers and footer can be defined Switch to Page Layout view and click in the header or footer area Three areas in header/footer and Design ribbon provides buttons to insert page number, date, time, etc. Can be formatted just like any other text
65
Copyright 2013 by Janson Industries 65 To leave header/footer view, click anywhere outside of the header or footer then click normal view button
66
Copyright 2013 by Janson Industries 66
67
Copyright 2013 by Janson Industries 67 Printing the SS n Just like Word n Always best to preview n Some useful print options to help get info printed the way you want n With SS, you will often change the page orientation to landscape
68
Copyright 2013 by Janson Industries 68 First, make sure there are no hard page breaks (solid lines) by dragging them off the SS
69
Copyright 2013 by Janson Industries 69 Then in Print, change page orientation All columns will be displayed on one page Be aware: different printers may have different options
70
Copyright 2013 by Janson Industries 70 Can change scaling to Fit All Columns on One Page Scales down the print size to fit
71
Copyright 2013 by Janson Industries 71 Can also play with margins to fit more on the page
72
Copyright 2013 by Janson Industries 72 Lastly you can specify the area to be printed Select the area to be printed
73
Copyright 2013 by Janson Industries 73 Specify Print Selection
74
Copyright 2013 by Janson Industries 74 Assignment n WS 1: GolfCarts Mowers n Problem Solve 1: TCO
75
Copyright 2013 by Janson Industries 75 Formatting n Can use the Home ribbon or Format box n Format box provides all the functions of the Home ribbon plus u More numeric formats u More alignment options u Borders u Patterns
76
Copyright 2013 by Janson Industries 76 Can quickly change to $, %, add comma’s, change number of decimals but Home ribbon options are limited ##### are displayed when a number can’t be displayed in the cell because cell is too small
77
Copyright 2013 by Janson Industries 77 Solution: make font smaller, change col width
78
Copyright 2013 by Janson Industries 78 n Use Format box for most options u Select range u Right click range u Click Format Cells Notice the variety of number formats
79
Copyright 2013 by Janson Industries 79 All sorts of crazy options
80
Copyright 2013 by Janson Industries 80 Font pane shows sample for choices selected
81
Copyright 2013 by Janson Industries 81
82
Copyright 2013 by Janson Industries 82
83
Copyright 2013 by Janson Industries 83
84
Copyright 2013 by Janson Industries 84
85
Copyright 2013 by Janson Industries 85 Need to merge cells & center the text within the new cell Highlight the cells, display the Merge & Center menu and choose Merge & Center
86
Copyright 2013 by Janson Industries 86
87
Copyright 2013 by Janson Industries 87 Formatting n Negative numbers usually formatted differently than positive numbers u Red u In parenthesis u Minus symbol n Dates and times also have a wide variety of formats
88
Copyright 2013 by Janson Industries 88 Default is to show negatives with a minus sign Can easily change
89
Copyright 2013 by Janson Industries 89
90
Copyright 2013 by Janson Industries 90 Different date defaults based on how date is entered Again, can change easily
91
Copyright 2013 by Janson Industries 91
92
Copyright 2013 by Janson Industries 92 Whoa, times entered (like 11:45 AM) but Excel displays Jan 0, 1900 date!
93
Copyright 2013 by Janson Industries 93
94
Copyright 2013 by Janson Industries 94
95
Copyright 2013 by Janson Industries 95 Crazy number of paste options for numbers
96
Copyright 2013 by Janson Industries 96 Number Copy/Paste n Paste options control what is copied value, formula, text formatting, col width n For example, you could copy u The formatting of one cell to another cell(s) u Copy a formula’s result value (not the formula) to another cell u Paste a number as a picture u Paste a range of cells but flip the cols and rows
97
Copyright 2013 by Janson Industries 97 Formatting n Can insert images n Instead of trying to format the SS by hand, use pre-defined u Cell styles u Table styles u Themes
98
Copyright 2013 by Janson Industries 98 Click on cell to hold the picture, display Illustrations menu and select Online Pictures Specify a search word(s), click the search icon
99
Copyright 2013 by Janson Industries 99 Select an image and click insert
100
Copyright 2013 by Janson Industries 100 Can reposition, resize, rotate, copy, format, etc.
101
Copyright 2013 by Janson Industries 101
102
Copyright 2013 by Janson Industries 102 Select cells, from HOME ribbon display Cell Styles menu Move cursor over options to see effect
103
Copyright 2013 by Janson Industries 103 Specialty formats for headers and totals
104
Copyright 2013 by Janson Industries 104 Select cells, from HOME ribbon display Format as Table and select a format
105
Copyright 2013 by Janson Industries 105 Specify where the data is
106
Copyright 2013 by Janson Industries 106 Ooops, said I had headers but didn’t include them: Undo
107
Copyright 2013 by Janson Industries 107 On PAGE LAYOUT ribbon display Themes menu and move cursor over options to see effect
108
Copyright 2013 by Janson Industries 108 Functions n Better alternative than formulas u Can be performed against ranges n Function: a predefined calculation n Ex. =A1+A2+A3 vs. =SUM(A1:A3) n Syntax: u Equal sign u Function word (e.g. SUM) u Opening parenthesis u Range u Closing parenthesis
109
Copyright 2013 by Janson Industries 109 Common functions include: AVERAGE, MIN, MAX, COUNT
110
Copyright 2013 by Janson Industries 110 Functions n Lots of ways to enter functions: u In a cell type: =, function, (, parameters, ) u Type =, function, (, select parameters with mouse cursor, press Enter u Click INSERT, select function, fill in prompt window u Buttons on ribbon (e.g. Auto sum)
111
Copyright 2013 by Janson Industries 111 Click cell that will hold the function, display Auto sum menu, select the function
112
Copyright 2013 by Janson Industries 112 Excel will take a guess which cells, press Enter to accept or...
113
Copyright 2013 by Janson Industries 113 Select cells you want to sum or...
114
Copyright 2013 by Janson Industries 114 Type in the range Notice the different type of border when range typed
115
Copyright 2013 by Janson Industries 115 If you select the cell to hold the formula first (C24) and then the range with data (C23:C20) and ALT+=, the sum function will be inserted into the first cell (C24)
116
Copyright 2013 by Janson Industries 116 Functions n Tables have a subtotal function that works like sum but will perform the calc only on visible data u Users can filter table rows u Subtotal will be recalced based on the filtered data
117
Copyright 2013 by Janson Industries 117 Insert a table
118
Copyright 2013 by Janson Industries 118 Click on any data cell, from the DESIGN ribbon click the Total Row checkbox Excel puts total line at bottom and a subtotal function in the far right cell
119
Copyright 2013 by Janson Industries 119 Add more subtotal by clicking in cell, click the drop down arrow and select Sum
120
Copyright 2013 by Janson Industries 120
121
Copyright 2013 by Janson Industries 121 Filter data by clicking the col header’s (who’s values you want to use in the filter) drop down arrow, select Number Filters, then the type of filter
122
Copyright 2013 by Janson Industries 122 Specify the filter value and click OK
123
Copyright 2013 by Janson Industries 123 First two rows filtered and subtotals recalced
124
Copyright 2013 by Janson Industries 124 To delete a filter, display the col menu and select Clear Filter option
125
Copyright 2013 by Janson Industries 125 You can also hide rows or cols Select the rows/cols, right click the selection area and choose Hide
126
Copyright 2013 by Janson Industries 126 Excel indicates the hidden cells with a thick line Also in the border area the row/lines will be missing
127
Copyright 2013 by Janson Industries 127 Conditional Formatting n The appearance of the info is based on the value in the cell n Can also have images/icons in the cells indicating the relative value in the cells n Select the cells, from the HOME ribbon display the Conditional Formatting menu and pick an option
128
Copyright 2013 by Janson Industries 128
129
Copyright 2013 by Janson Industries 129 Select Custom Format an specify format
130
Copyright 2013 by Janson Industries 130
131
Copyright 2013 by Janson Industries 131
132
Copyright 2013 by Janson Industries 132 To delete, select the cells and from the Conditional Formatting menu select Manage Rules, the Delete Rule Can also change the rule by clicking Edit Rule
133
Copyright 2013 by Janson Industries 133 Move the cursor over some options to see the effect
134
Copyright 2013 by Janson Industries 134 Viewing the SS n Display formulas u Show the formula/function instead of the result of the formula/function u A lot of formatting not shown u Click Ctrl + ` (grave accent) F ` is above the left Tab key n Sort of like reveal codes in Word
135
Copyright 2013 by Janson Industries 135 Press Ctrl+` to toggle back to normal view
136
Copyright 2013 by Janson Industries 136 Assignment n Workshop 2:WeekSales n Problem Solve 1: Portfolio n Module 1 Capston Problem Solve 2: Housekping
137
Copyright 2013 by Janson Industries 137 Absolute vs. Relative Addresses n Absolute Address: u 123 Main St. n Relative Address: u Next door n When you enter cell addresses the spreadsheet considers them relative n This is clearly shown when copying formulas/functions
138
Copyright 2013 by Janson Industries 138 Change to formula view to help explain Absolute vs. Relative Cell addressing
139
Copyright 2013 by Janson Industries 139 Excel considers all three formulas the same Advantage? Copying the formula in G11 to H11:J11 results in:
140
Copyright 2013 by Janson Industries 140 Absolute vs. Relative Addresses n To specify an absolute address u Precede the column letter with a $ u Precede the row number with a $ n Example: u $A$1 n When use: u When you want to reference the same cell value in many formulas
141
Copyright 2013 by Janson Industries 141 Mixed Addresses n One of the row and col specifications is relative the other is absolute n Examples: u $A1 u A$1 n When use: u When you want to reference a constant value in the same row or column
142
Copyright 2013 by Janson Industries 142 Specifying Addresses n F4 is a fast way to change a relative, mixed, and/or absolute address n For example, place the cursor in/next to a relative cell reference: u J12 u Press F4 and it is changed to: $J$12 u Press F4 again, it is changed to: J$12 u Press F4 again, it is changed to: $J12 u Press F4 again, it is changed to: J12
143
Copyright 2013 by Janson Industries 143 Named Ranges n Can give cells a name n Then when used in a formula will make more sense n So instead of u =$K$9*$M$9*$I7+F6*(1+$M$5) n Could have u =DaysInYear*PacksADay*$I6+F5* (1+IntRate)
144
Copyright 2013 by Janson Industries 144 Select the cell(s) to be named, enter the name in the Name field, press Enter
145
Copyright 2013 by Janson Industries 145 Now when referencing the cell(s) use the name
146
Copyright 2013 by Janson Industries 146 Manage names by clicking Name Manager, select a range name and click a function button
147
Copyright 2013 by Janson Industries 147 Can also use row/col titles to define range names Select the range and title and click Create from Selection Identify the location of the title
148
Copyright 2013 by Janson Industries 148 Certainly a lot easier to understand that formula than the original one
149
Copyright 2013 by Janson Industries 149 Functions n Lots of functions n Grouped into categories u Math u Logic u Date/Time u Engineering n Some can be quite complicated
150
Copyright 2013 by Janson Industries 150 Math Functions n ABS: returns the absolute value of a number n ROUND: rounds a value to specified number digits n RAND: generates a random number (from 0 to <1)
151
Copyright 2013 by Janson Industries 151 Click cell to hold function, then click Insert Function Can select from alpha list or narrow list by category When function selected, click OK
152
Copyright 2013 by Janson Industries 152 Excel brings up a fill in the blank window with help text based on cursor location Sometimes you need more help
153
Copyright 2013 by Janson Industries 153 Has some simple examples
154
Copyright 2013 by Janson Industries 154 Scroll down for more detailed examples Would you ever have guessed that =ROUND(626.3, -3) would equal 1000?
155
Copyright 2013 by Janson Industries 155 Date/Time Functions n Don’t forget, Excel stores dates as an integer (# of days since 12/31/1899) n DATE(year, month, day): returns the integer value for the date n TODAY(): returns the computers system date n NOW(): returns the computers system date and time as decimal # n WEEKDAY(integer date value): returns values 1-7 rep day of week
156
Copyright 2013 by Janson Industries 156 Date/Time Functions n Want a SS of projects/tests etc. with u Due dates and times u Number of days until due n Will use math and time/data functions to calc
157
Copyright 2013 by Janson Industries 157 Have todays date at top and then three projects with due date/time
158
Copyright 2013 by Janson Industries 158 But date/time stored as a decimal number
159
Copyright 2013 by Janson Industries 159 Because dates a numbers can do arithmetic on them Notice the mixed reference – why?
160
Copyright 2013 by Janson Industries 160 The fractional value looks bad, need to round
161
Copyright 2013 by Janson Industries 161 Put the calc inside the ROUND function and change the formatting so no decimals are shown
162
Copyright 2013 by Janson Industries 162 What other things could we do to improve the SS?
163
Copyright 2013 by Janson Industries 163 Text Functions n Allows string manipulate n CONCATENATE(): joins multiple strings, just separate “static text” and/or cell addrs by a comma n FIND(findtext, searchtext): returns the start postion (integer) of the text, case sensitive n SEARCH(findtext, searchtext): same as FIND, case insensitive n TRIM(text): removes all spaces
164
Copyright 2013 by Janson Industries 164 Due Date Example n Want to change the time to go from days to months and days u Instead of 161 days it would read 5 months and 2 days n Will use the DATEDIF function to do the calc of days and months and CONCATENATE() to join the numbers with the static text
165
Copyright 2013 by Janson Industries 165
166
Copyright 2013 by Janson Industries 166 DATEDIF n Supply it two dates and it will retrun the interval between them n Syntax n =DATEDIF(olderdate, newerdate, “interval”) n Interval indicated by text u “D” days u “M” months u “Y” years
167
Copyright 2013 by Janson Industries 167 DATEDIF n Specifying months will ignore days, specifying years will ignore months and days n For example u =DATEDIF(“7/4/13”, “12/25/15”, “M”) F Results in 29 (months) u =DATEDIF(“7/4/13”, “12/25/15”, “Y”) F Results in 2 (years)
168
Copyright 2013 by Janson Industries 168 DATEDIF n Other intervals u “MD” days regardless of months or years u “YM” months regardless of day or years u “YD” days ignoring years
169
Copyright 2013 by Janson Industries 169 DATEDIF n Examples u =DATEDIF(“7/4/13”, “12/25/15”, “MD”) F Results in 21 (days) u =DATEDIF(“7/29/13”, “12/25/15”, “MD”) F Results in 26 (days) u =DATEDIF(“7/4/13”, “12/25/15”, “YM”) F Results in 5 (months) u =DATEDIF(“7/4/13”, “12/25/15”, “YD”) F Results in 174 (days)
170
Copyright 2013 by Janson Industries 170 Due Date Example n Will use the following DATEDIF to get the number of months u DATEDIF(TODAY(),$AM13,"M") n And this DATEDIF to get the number of days u DATEDIF(TODAY(),$AM13,"MD") n We also need to concatenate the text “ months and “ & “ days” as in u 4 months and 6 days
171
Copyright 2013 by Janson Industries 171 Due Date Example n Here’s the full statement to do that u =CONCATENATE( DATEDIF(TODAY(),$AM13,"M"), " months and ", DATEDIF(TODAY(),$AM13,"MD"), " days") n Sure am glad I used that mixed reference so I only have to type this in once and then copy to the other cells
172
Copyright 2013 by Janson Industries 172
173
Copyright 2013 by Janson Industries 173 Logic Functions n Result in a true or false. Ex: IF n If evaluates a condition and assigns a value based on if it is true or false n =IF(A1=B1, 100, 200) n If cell A1 equals B1, the cell containing the IF is 100 else 200 n The assigned value can be a function or formula
174
Copyright 2013 by Janson Industries 174 Logic Functions n Need a SS to calc saleperson’s commission, bonus, and total salary n Commission is 15% of sales n If Sales are over $125,000 u Bonus is $10,000 n Else u Bonus is an additional 2% of Sales
175
Copyright 2013 by Janson Industries 175 Logic Functions n The IF statement to calc bonus is u =IF(Sales>125000, 10000, Sales*.02) n Commission calc is simply Sales *.15
176
Copyright 2013 by Janson Industries 176
177
Copyright 2013 by Janson Industries 177 Though the results are correct, this is a very poorly constructed SS. Why?
178
Copyright 2013 by Janson Industries 178 Logic Functions n Employees not happy with salary plan u Want an opportunity to earn more n After negotiations, agree to a sliding bonus value u < 100,000 get 2% of sales u 100K – 119K get 4% u 120K – 139K get 6% u 140K – 159K get 8% u 160K – 179K get 10% u 180K and up get 12%
179
Copyright 2013 by Janson Industries 179 Logic Functions n But the commission rate goes down to 13% n Will create a CommRate value and range name u New formula is =P5*CommRate n SalesRange and BonusPct values n Will use the VLOOKUP function to search the SalesRange and find the corresponding BonusPct
180
Copyright 2013 by Janson Industries 180
181
Copyright 2013 by Janson Industries 181 Logic Functions n VLOOKUP requires: u The value you are searching for (Sales) u Then the range of cells F To search to find a match F That contains the value to retrieve u The relative column # within the range that has the value to retrieve u Whether the search is for an exact value match or approximate F FALSE is exact F TRUE is approximate
182
Copyright 2013 by Janson Industries 182 Logic Functions n Our VLOOKUP will be: u VLOOKUP(Sales,$U$5:$V$10, 2,TRUE) n Then multiply the returned BonusPct by the Sales u =VLOOKUP(Sales,$U$5:$V$10, 2,TRUE) * Sales
183
Copyright 2013 by Janson Industries 183 So how do you think the Sales force did with the new salary plan?
184
Copyright 2013 by Janson Industries 184 Think Joe and Mary would have liked to see the new calcs before they agreed to the plan? How do you think the boss feels about the plan?
185
Copyright 2013 by Janson Industries 185
186
Copyright 2013 by Janson Industries 186 Functions n Imbedding functions within functions can provide some powerful and comples logic n Remember earlier u WEEKDAY(date) returns number representing day of the week n In the due date SS, we want to show the day of the week (Monday, Tuesday, etc.) for each date
187
Copyright 2013 by Janson Industries 187
188
Copyright 2013 by Janson Industries 188 Functions n So for the number (1-7) that WEEKDAY returns, we want to check it and if it’s a u 1 show Sunday u 2 Monday u Etc. n We do that by nesting a series of Ifs u i.e. Imbed IFs with IFs
189
Copyright 2013 by Janson Industries 189 Functions n Remember an IF has three parts u The condition to check u Action if condition is true u Action if condition is false n Another IF can be one of the actions u So if we set up an IF to check if the WEEKDAY value is 1 u The true action is to display “Sunday” u The false action is to check if it is 2
190
Copyright 2013 by Janson Industries 190 Functions n Here’s the beginning of the IF n In the imbedded/nested IF, the true action is to display “Monday” u What should the false action be? =IF(WEEKDAY(AC13)=1,"Sunday", IF(WEEKDAY(AC13)=2,"Monday", First IF condition True action False action is the imbedded IF that checks if it’s a 2
191
Copyright 2013 by Janson Industries 191 Functions n Here’s the fincal IF n Why don’t we check for 7? n IN the SS, Excel will color code all the parens so you can keep track of the matching pairs =IF(WEEKDAY(AC13)=1,"Sunday", IF(WEEKDAY(AC13)=2,"Monday", IF(WEEKDAY(AC13)=3,"Tuesday", IF(WEEKDAY(AC13)=4,"Wednesday", IF(WEEKDAY(AC13)=5,"Thursday", IF(WEEKDAY(AC13)=6,"Friday", "Saturday"))))))
192
Copyright 2013 by Janson Industries 192
193
Copyright 2013 by Janson Industries 193 Common Error Msgs n # NAME? u Function name misspelled or missing parameters u Text not enclosed in parens u Unrecognized values specified in function n #VALUE! u Wrong value specified for a function F Text used in a math function u Unusable data name specified
194
Copyright 2013 by Janson Industries 194 Missing data Not a function Text not in “” C7:C9 invalid values C1:C2 invalid values Sales is a range name
195
Copyright 2013 by Janson Industries #N/A Because SalesRange doesn’t start with 0, $89,302 is not found in the VLOOKUP
196
Copyright 2013 by Janson Industries 196 Assignment 3 n Work Shop 3: Wedding n Problem Solve 1: Car Rental
197
Copyright 2013 by Janson Industries 197 Charts and Graphs n Lots of different types and subtypes n Different types of charts show different info better u Pie charts good for static data u Area charts good for data over time n Start by selecting the data
198
Copyright 2013 by Janson Industries 198 Charts and Graphs n Generally charts also consist of descriptive text n Depending on type of chart text may be u On the left and/or across the bottom u On different areas within the chart u Title usually across top n Start by selecting the data the chart will be based on
199
Copyright 2013 by Janson Industries 199 Want to show the budget allocation change over the 4 month period Select the data, click on the INSERT tab, then launch the CHART dialog box
200
Copyright 2013 by Janson Industries 200 Initially shows recommended charts
201
Copyright 2013 by Janson Industries 201 Click for a preview
202
Copyright 2013 by Janson Industries 202 Chart Tools tab is displayed and chart area is surrounded by a border with resize handles. Can move chart by clicking and dragging on the border.
203
Copyright 2013 by Janson Industries 203 Charts and Graphs n Chart consists of many elements u Background u Axes u Legend u Grid u Labels n The graphic may also be comprised of many pieces that can be manipulated u Individual slices in a pie chart n To the right of the chart are quick access buttons
204
Copyright 2013 by Janson Industries 204 Click on a chart element, like the title, to select it and then edit and format to your liking
205
Copyright 2013 by Janson Industries 205 Control the chart’s Elements, Style, and Filter with these quick access buttons
206
Copyright 2013 by Janson Industries 206 Add some data labels
207
Copyright 2013 by Janson Industries 207 Pretty ugly However each individual label can be manipulated
208
Copyright 2013 by Janson Industries 208 Got rid of the legend at the bottom too
209
Copyright 2013 by Janson Industries 209 Style lets you quickly change the over all chart look
210
Copyright 2013 by Janson Industries 210 Or just the data area appearance
211
Copyright 2013 by Janson Industries 211 Filter lets you remove entire categories of info
212
Copyright 2013 by Janson Industries 212 Since the value of Rent didn’t change, took it out better tell Mary’s story
213
Copyright 2013 by Janson Industries 213 As mentioned, can select individual chart components and format
214
Copyright 2013 by Janson Industries 214 Made a couple more changes to tidy up the chart
215
Copyright 2013 by Janson Industries 215 Can click and drag to move and resize the chart
216
Copyright 2013 by Janson Industries 216 Or put chart in a separate sheet Click move chart, specify new sheet and name
217
Copyright 2013 by Janson Industries 217
218
Copyright 2013 by Janson Industries 218 Changes in the SS data values immediately reflected in the chart
219
Copyright 2013 by Janson Industries 219 Chart Types n Different chart types have advantages and disadvantages n Pie chart u Good for single period, relative comparison between many value n Column charts u Good for showing change over time for a single category
220
Copyright 2013 by Janson Industries 220
221
Copyright 2013 by Janson Industries 221
222
Copyright 2013 by Janson Industries 222 Chart Types n Different chart types have advantages and disadvantages n Line charts u Good for showing change over time u Good for multiply categories of info n Bar charts u Most are just column charts turned sideways u However, Gantt charts useful for showing schedules
223
Copyright 2013 by Janson Industries 223
224
Copyright 2013 by Janson Industries 224 Gantt Chart
225
Copyright 2013 by Janson Industries 225 Chart Types n Scatter charts u Good for showing correlations between two categories of data n Area charts u Sort of a filled in stacked line chart u Good at showing multiple categories of info changing over tiem F Like Mary’s budget
226
Copyright 2013 by Janson Industries 226
227
Copyright 2013 by Janson Industries 227 Chart Types n Combination charts u Good for comparing two type of data that have different scales u Y axis usually has two different scales
228
Copyright 2013 by Janson Industries 228 Sparklines n Line chart(s) inserted into cell(s) u Select the cells to hold the sparklines u On the INSERT ribbon, click Sparklines, choose a type F Line F Column F Win/loss
229
Copyright 2013 by Janson Industries 229
230
Copyright 2013 by Janson Industries 230 Specify the location of the data to base the sparklines on
231
Copyright 2013 by Janson Industries 231
232
Copyright 2013 by Janson Industries 232 Charts and Graphs n To print only the chart u Select the chart u Follow the normal print process
233
Copyright 2013 by Janson Industries 233
234
Copyright 2013 by Janson Industries 234 Advanced Formatting n How the SS appears and how it will print can be two different things n Click FILE then PRINT PREVIEW to see how it will print
235
Copyright 2013 by Janson Industries 235 Part of the SS will appear in the upper right of the page and the rest of the SS with part of the chart will be on page 2
236
Copyright 2013 by Janson Industries 236 We can move the chart to make it better but we need to select the cells that includes the table and chart and then print just the selected area
237
Copyright 2013 by Janson Industries 237
238
Copyright 2013 by Janson Industries 238
239
Copyright 2013 by Janson Industries 239 Assignment n Workshop 4: Spa Sales n Problem Solve 1: Express n Module 2 Capstone Problem Solve 1: Raises
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.