home *** CD-ROM | disk | FTP | other *** search
/ Computer Based Training: …, Windows 95 & NT Basics / a1454501.iso / msobe / BE04.TXT < prev    next >
Encoding:
Text File  |  1997-03-27  |  11.4 KB  |  265 lines

  1. Formulas are the engines of spreadsheets; they actually do the work.
  2. |
  3. If they are incorrect, the interpretation of the results will also be incorrect.
  4. |
  5. A formula can consist of several parts; all formulas must begin with an equal sign (=).
  6. |
  7. You can follow the equal sign with
  8.  
  9. ò cell references, such as A1
  10. |
  11. ò functions, such as SUM
  12. |
  13. ò parentheses
  14. |
  15. ò other components
  16. |
  17. Excel 97 gives you various ways of entering formulas into cells.
  18. |
  19. The most common way of entering a formula is to type it directly into the cell.
  20. |
  21. For example, to find the total for cells B3 through B5, beginners may type ^R=B3+B4+B5^r.
  22. |
  23. Although this works, it is not very efficient and increases the chances of data entry errors.
  24. |
  25. As you type, the characters appear in the cell as well as in the Formula bar.
  26. |
  27. The Formula bar is to the right of the Name box just under the bold, italic, and underline formatting buttons.
  28. |
  29. You can use all the normal editing keys - delete, backspace, direction keys, and so on - when entering a formula.
  30. |
  31. Another way to sum the values in a group of cells is to use a function.
  32. |
  33. To type the same formula =B3+B4+B5, you type ^R=SUM(B3:B5)^r.
  34. |
  35. In this case SUM is the function.
  36. |
  37. The range of cells to be summed (B3 through B5) appears, as always, in parentheses.
  38. |
  39. The cell addresses are separated by a colon which indicates a range.
  40. |
  41. However, you can use a comma in addition to the colon.
  42. |
  43. Commas indicate individual cell addresses while colons indicate contiguous groups of cells.
  44. |
  45. You don't have to worry about upper and lower cases when you enter a formula.
  46. |
  47. As soon as you press ^UEnter^u or move to another cell, Excel converts all letters to uppercase.
  48. |
  49. In addition to typing formulas and functions, you can enter cell addresses by combining keyboard entry with point-and-click.
  50. |
  51. After entering an operator, Excel allows you to point at the cells used in the formula and click to select them.
  52. |
  53. To add cells C1 to C9 as well as D1 and D2, you begin the keyboard entry by typing ^R=SUM(^r.
  54. |
  55. You then click cell ^UC1^u while holding down the ^UShift^u key, and then you click ^UC9^u.
  56. |
  57. Excel automatically places the cell addresses in the formula.
  58. |
  59. When you have finished entering the formula and have pressed ^UEnter^u, Excel recognizes that you have completed the formula and inserts the closing parenthesis for you.
  60. |
  61. Excel automatically calculates the sum.
  62. |
  63. If you don't type the first parenthesis before clicking the first cell in the formula, you get an error message in the formula cell.
  64.  
  65. If you don't type the last parenthesis in a formula, Excel enters it for you.
  66. |
  67. Operator precedence is the set of rules that Excel uses to perform its calculations in a formula.
  68. |
  69. In simple arithmetic formulas, Excel will calculate in the following order:
  70.  
  71. ò multiplication (*) and division (/)
  72.    are treated equally
  73. |
  74. ò division (/) before addition (+)
  75. |
  76. ò addition (+) and subtraction (-)
  77.    are treated equally
  78. |
  79. You can override operator precedence by using parentheses in your formulas.
  80. |
  81. If an addition or subtraction operation is enclosed in parentheses, it will be calculated before division or multiplication.
  82. @@
  83. @@
  84. The AutoSum feature allows you to total a group of cells to the left of the active cell or above it.
  85. |
  86. When you click the ^UAutoSum^u button, Excel looks for numbers above or to the left of the current cell and highlights them with a moving dotted line known as a ^Rmarquee^r.
  87. |
  88. You press ^UEnter^u to total the cells.
  89. |
  90. If the correct cells are already highlighted, simply double-click ^UAutoSum^u to show the total.
  91. |
  92. When there are cells both to the left and above the active cell when you click ^UAutoSum^u, the column cells take precedence over the rows and are highlighted.
  93. |
  94. ^UAutoSum^u automatically totals the cells in column A.
  95. |
  96. You would have to drag the mouse along the row to sum the row cells instead of the column cells.
  97. |
  98. If you have a table surrounded by blank cells, AutoSum can total all of its columns and rows.
  99. |
  100. To select the entire table, click any cell in the table.
  101. |
  102. You then press ^UCtrl+*^u and the entire table is selected.
  103. |
  104. You click ^UAutoSum^u to total all the columns and rows.
  105. |
  106. The AutoCalculate feature is handy if you need to do calculations on numbers you have highlighted, but don't want to include a formula as part of your table.
  107. |
  108. When you right-click the running total in the Status bar, a menu is displayed for further calculations.
  109. |
  110. The default for AutoCalculate is the SUM function.
  111. |
  112. The ^UAutoCalculate^u menu allows you to
  113.  
  114. ò calculate the average of the selected cells
  115. |
  116. ò count the number of cells highlighted
  117. |
  118. ò count the number of highlighted cells that
  119.   contain numbers or formulas
  120. |
  121. ò display the maximum or minimum value 
  122.    of the selected cells
  123. |
  124. ò sum the selected cells
  125. |
  126. You choose an option from the ^UAutoCalculate^u pop-up menu, such as ^UCount^u.
  127. |
  128. Now when you hold down ^UShift^u and drag the mouse, the number of rows or columns is displayed in the Status bar.
  129. |
  130. Note that the option must be chosen while a cell from within the table is selected.
  131. If the active cell is anywhere else on the worksheet, the new option will not apply to the table.
  132. @@
  133. An absolute cell reference or address is one that doesn't adjust when you copy or move a formula.
  134. |
  135. An absolute reference includes the $ symbol for both the column letter and the row number, such as $C$4.
  136. |
  137. You use absolute cell references when you refer to fixed address cells.
  138. |
  139. Examples of absolute references would be key variables, such as the inflation rate or a standard discount.
  140. |
  141. A relative cell reference in a formula is one that adjusts when copied from one cell or range of cells to another location.
  142. |
  143. Once you have entered the formula, you move the pointer to the fill handle in the bottom right-hand corner of the cell and drag the outline down to the last cell to which you want to apply the formula.
  144. |
  145. For example, you can copy a cross-total formula from one cell to other cells below it, and the formula will automatically apply to the relevant row for each cell.
  146. |
  147. The moment you release the mouse button, the cells fill with the results of the copied formula.
  148. |
  149. The process of entering a formula and copying it by dragging the fill handle is known as ^Rfilling^r ^Ra^r ^Rformula^r.
  150. |
  151. Excel also allows mixed references in which only one part of the address is absolute.
  152. |
  153. The following are all the possible types of cell references:
  154.  
  155. ò A1 - relative reference
  156. |
  157. ò $A$1 - absolute reference
  158. |
  159. ò $A1 - mixed reference in which
  160.    the column is absolute
  161. |
  162. ò A$1 - mixed reference in which
  163.    the row is absolute
  164. |
  165. You can examine the formulas without having to scroll through the worksheet.
  166. |
  167. This allows you to see the formulas rather than the results.
  168. |
  169. To view the formulas, you select the ^UTools^u ^U- Options^u menu item.
  170. |
  171. You click the ^UView^u tab in the Options dialog box.
  172. |
  173. Then you select the box entitled ^UFormulas^u.
  174. |
  175. The result is a display of the formulas rather than the results.
  176. @@
  177. @@
  178. If you plan to use dates in formulas, make sure that when entering a date, Excel is able to recognize it as a date, otherwise your formulas will produce incorrect results.
  179. |
  180. You do this by checking that Excel has right-aligned the entry in the cell, and by viewing the entry as displayed in the formula bar. 
  181. |
  182. Excel 97 recognizes entries as dates and can use these dates in formulas.
  183. |
  184. For example, if Jun 95 is entered in one cell, Jul 95 in the next, and a formula entered in a number formatted cell to subtract the first from the second, the correct result (30) is calculated and displayed.
  185. |
  186. You can enter dates in cells using month text with spaces, such as Jun 1 1995. They are then displayed with a hyphen in the cell and as mm/dd/yy format in the formula bar. 
  187. |
  188. Such cells can be used in formulas, but the key in many cases is to have the cell containing the formula formatted as a number, otherwise Excel tries to display the result as a date.
  189. |
  190. You can create a formula to add a date cell to a number to give a date result. By default, Excel will show the result in the format of the first date cell and will simply show Jun-1 1995. 
  191. |
  192. You can reformat the formula result cell to dd/mm/yy format and the result will display correctly as 6/1/95.
  193. |
  194. Microsoft Excel stores dates as sequential numbers known as serial values and stores times as decimal fractions, because time is considered a portion of a day.
  195. |
  196. Dates and times are values and therefore can be added, subtracted, and included in other calculations.
  197. |
  198. For example, to determine the difference between two dates, you can subtract one date from the other and get the result in days.
  199. |
  200. You can view a date or time as a serial number or a decimal fraction by changing the format of the cell that contains the date or time to General format.
  201. |
  202. The best way to deal with times is to enter the time into a cell in a recognized format.
  203. |
  204. Some examples are
  205.  
  206. ò 11:30:00 am for 11:30 am
  207. |
  208. ò 11:30:00 AM for 11:30 am
  209. |
  210. ò 11:30 for 11:30 am
  211. |
  212. ò 11:30 pm for 11:30:00 pm
  213. |
  214. An example of an unrecognized format would be 1130.
  215. |
  216. You can also combine dates and times, as in 6/1/95 11:30 for 11:30 a.m. on June 1, 1995.
  217. |
  218. Excel 97 supports two date systems: the 1900 and 1904 date systems.
  219. |
  220. The default date system for Excel 97 is the 1900 system.
  221. |
  222. You can change to the ^U1904 date system^u using the ^UTools - Options^u menu item.
  223.  
  224. Click the ^UCalculation^u tab, and then select the 1904 date system check box.
  225. |
  226. The 1900 date system uses January 1, 1900 as its start date.
  227. |
  228. Each date has a serial number based on how many days have passed since that date.
  229. |
  230. So January 1, 1900 has the serial value 1 and December 31, 1999 has the serial value 36525.
  231. |
  232. When you enter a date in Excel 97 and you enter only two digits for the year, Excel sees 99 as 1999, 20 as 2020, and so on.
  233. |
  234. Excel presumes a century of 20 for all years up to December 31 2029, and a century of 19 for all years over and including 30.
  235. |
  236. For example, if you type ^R"5/28/19"^r, Excel assumes the date is May 28, 2019.
  237. |
  238. Another example is ^R"5/28/91"^r. Excel assumes the date is May 28, 1991.
  239. |
  240. Microsoft Excel calculates the underlying, or stored, values in cells.
  241. |
  242. The value you see on the screen depends on how you choose to format and display the stored value.
  243. |
  244. For example, a cell that displays a date as 6/22/96 also contains a serial number that is the stored value for the date in the cell.
  245. |
  246. You can change the display of the date to another format (for example, to 22-Jun-96), but changing the display of a value on a worksheet does not change the stored value.
  247. |
  248. When you enter a date formula, such as ^R="6/1/92"-"5/1/92"^r Excel interprets the text as a date in the mm/dd/yy format.
  249. |
  250. When you enter date formulas that don't refer to cell coordinates, you must remember to enclose the dates in quotation marks.
  251. |
  252. Excel then converts the dates to serial numbers and calculates the difference between them, in this case 31 days.
  253. |
  254. To accommodate leap years when doing calculations, you enter 365.25 rather than simply 365.
  255. |
  256. Some types of worksheets may benefit from an outline.
  257. |
  258. An outline lets you display hierarchical information at different levels of detail.
  259. |
  260. To do this you would choose ^UData - Group and Outline -^u ^UAuto Outline^u.
  261. |
  262. For more information on outlining, see CBT Systems course ^RAdvanced Excel 97^r.
  263. @@
  264.  
  265.