home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR6 / XE0800.ZIP / XE0800.TXT
Text File  |  1993-07-14  |  70KB  |  1,562 lines

  1.  
  2.  
  3. ======================================================================
  4.   Microsoft(R) Product Support Services Application Note (Text File)
  5.                 XE0800: MOST FREQUENTLY ASKED QUESTIONS
  6. ======================================================================
  7.                                                    Revision Date: 7/93
  8.                                                      16 Pages, No Disk
  9.  
  10. The following information applies to Microsoft Excel, version 4.0.
  11.  ---------------------------------------------------------------------
  12. | INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY     |
  13. | ACCOMPANY THIS DOCUMENT (collectively referred to as an Application |
  14. | Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER      |
  15. | EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED      |
  16. | WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR       |
  17. | PURPOSE. The user assumes the entire risk as to the accuracy and    |
  18. | the use of this Application Note. This Application Note may be      |
  19. | copied and distributed subject to the following conditions: 1) All  |
  20. | text must be copied without modification and all pages must be      |
  21. | included; 2) If software is included, all files on the disk(s) must |
  22. | be copied without modification (the MS-DOS(R) utility diskcopy is   |
  23. | appropriate for this purpose); 3) All components of this            |
  24. | Application Note must be distributed together; and 4) This          |
  25. | Application Note may not be distributed for profit.                 |
  26. | Copyright (C) 1993 Microsoft Corporation. All Rights Reserved       |
  27. |                                  .                                  |
  28. | Microsoft, Microsoft Press, and MS-DOS are registered trademarks    |
  29. | and| Windows is a trademark of Microsoft Corporation.               |
  30. | Apple, Macintosh, and TrueType are registered trademarks and Geneva |
  31. | is a trademark of Apple Computer, Inc.                              |
  32. | dBASE is a registered trademark of Borland International, Inc.      |
  33. | DEC is a registered trademark of Digital Equipment Corporation.     |
  34. | OS/2 is a registered trademark of International Business Machines   |
  35. | Corporation.                                                        |
  36. | Helvetica and Times are registered trademarks of Lynotype AG and    |
  37. | its subsidiaries.                                                   |
  38. | 1-2-3 and Lotus are registered trademarks of Lotus Development      |
  39. | Corporation.                                                        |
  40. | Arial and Times New Roman are registered trademarks of The Monotype |
  41. | Corporation PLC.                                                    |
  42. | ORACLE is a registered trademark of Oracle Corporation.             |
  43. | Q+E is a registered trademark of Pioneer Software Systems           |
  44. | Corporation.                                                        |
  45.   --------------------------------------------------------------------
  46.                                    
  47.                                    
  48.                                OVERVIEW
  49.                                ========
  50.                                    
  51. This Application Note provides detailed responses to some of the most
  52. frequently asked questions about Microsoft Excel version 4.0. The
  53. questions, which were derived from polling members of the Microsoft
  54. Excel technical support staff, are broken into eight functional
  55. categories. These categories include, tips and tricks, printing,
  56. working with text files, formulas and functions, macros, workbooks,
  57. and working with other applications.
  58.  
  59. Page number references are accurate ONLY in the printed application
  60. note; use them in this Knowledge Base article strictly as comparative
  61. reference points.
  62.  
  63. Tips and Tricks                                                      2
  64.    Editing Templates and Add-in Macros                               2
  65.    Displaying Leading Zeros                                          2
  66.    Omitting the Last Three Digits in a Large Value                   2
  67.    Cell Protection                                                   3
  68.    Working with and Resolving Circular References                    3
  69.       Finding a Circular Reference with the Worksheet Auditor        3
  70.    Entering Non-Keyboard Characters                                  4
  71.       Microsoft Excel for Windows                                    4
  72.       Microsoft Excel for the Macintosh                              5
  73.       Creating a Custom Number Format with an Extended Character     5
  74.    Using the Keyboard to Move Around and Select Cells                6
  75.  
  76. Printing                                                             7
  77.    Different Output/Different Printer                                7
  78.       Microsoft Excel for Windows                                    7
  79.       Microsoft Excel for the Macintosh                              7
  80.    Disappearing Page Breaks                                          8
  81.  
  82. Working with Text Files                                              8
  83.    Importing Text Files                                              8
  84.    Exporting Text Files                                              9
  85.       Tab- and Comma-Delimited Files                                 9
  86.       Space-Delimited Files (Flat Files)                            10
  87.    Printing to a File                                               10
  88.  
  89. Formulas and Functions                                              10
  90.    Exact Match in a Lookup Table                                    10
  91.    Combining Cell Contents                                          11
  92.    LINEST() Function                                                11
  93.    Correlation Coefficient                                          12
  94.  
  95. Macros                                                              12
  96.    Debugging Macros                                                 12
  97.       Using the Step and Evaluate Commands                          12
  98.       Using Key Commands to Evaluate Portions of a Macro Statement  12
  99.       Using Key Commands to View Values Returned by Macro Statements12
  100.       Running a Portion of the Macro                                12
  101.    Learning More About Macros                                       13
  102.  
  103. Workbooks                                                           13
  104.    Displaying Workbook Files                                        13
  105.    Copying Workbook Files                                           13
  106.  
  107. Charting                                                            13
  108.    Adding New Series Information                                    13
  109.    Changing the Plotting Order                                      14
  110.    Adding a Second Y-Axis                                           14
  111.  
  112. Using Microsoft Excel with Other Applications                       15
  113.    Microsoft Word                                                   15
  114.       Microsoft Word Version 2.0 for Windows                        15
  115.       Microsoft Word Versions 4.0, 5.0, and 5.1 for the Macintosh   15
  116.    Database Applications                                            16
  117. ----------------------------------------------------------------------
  118.                                    
  119.  
  120.                             TIPS AND TRICKS
  121.                            ================
  122.                                    
  123.  
  124. EDITING TEMPLATES AND ADD-IN MACROS
  125. ===================================
  126.  
  127. How can I open a template file or an add-in macro sheet so that I can
  128. edit it?
  129.  
  130. To open a template file or an add-in macro sheet so that you can edit
  131. it, press SHIFT when you open the document:
  132.  
  133. 1. From the File menu, choose Open.
  134.  
  135. 2. In the Open dialog box, select the file you want to open and then
  136.    press and hold down the SHIFT key and choose OK.
  137.  
  138.  
  139. DISPLAYING LEADING ZEROS
  140. ========================
  141.  
  142. How can I display leading zeros in a value such as a ZIP Code?
  143.  
  144. By default, Microsoft Excel drops leading zeros. To display leading
  145. zeros in a value, create a custom number format using zeros as the
  146. format symbols. When you use a zero as a digit placeholder, Microsoft
  147. Excel displays the extra zero even when the number of significant
  148. digits is fewer than the number of placeholders in the number format.
  149. For example, to display leading zeros in a five-digit number:
  150.  
  151. 1. Select the range of cells you want to format.
  152.  
  153. 2. From the Format menu, choose Number.
  154.  
  155. 3. In the Code box, type "00000" (without the quotation marks).
  156.  
  157. 4. Choose OK.
  158.  
  159. This custom number format will force all entries in the selected range
  160. to have five digits. For example, 1204 will be displayed as 01204, and
  161. 1 will be displayed as 00001.
  162.  
  163.  
  164. OMITTING THE LAST THREE DIGITS IN A LARGE VALUE
  165. ================================================
  166.  
  167. How can I display a value without its last three, six, or nine digits?
  168.  
  169. In Microsoft Excel, you can display numbers with the last three, six,
  170. or nine digits omitted by creating a custom number format. The number
  171. will retain its value--it will just be displayed differently.
  172. Displaying a number this way is useful when you have a worksheet
  173. containing numbers that are very large and would therefore be more
  174. readable if they were expressed in some number of units, such as
  175. millions of dollars or thousands of dollars.
  176.  
  177. To display values so that a limited number of digits appear:
  178.  
  179. 1. From the Format menu, choose Number.
  180.  
  181. 2. In the Code box, type
  182.  
  183.       0,,
  184.  
  185.    where each comma represents three zeros.
  186.  
  187. 3. Choose OK.
  188.  
  189. With this number format applied, if you enter 60,893,232 in a cell
  190. formatted with this custom number format, it will be displayed as 61
  191. (the millions are rounded up). However, calculations referencing that
  192. cell will use 60,893,232 as the value. If you enter a format of 0 in
  193. the Code box, 60,893,232 is displayed as 60893. If you want 60893 to
  194. be displayed with a comma, you can use the custom format #,###, (note
  195. the comma on the end). In this case, the number 60,893,232 will be
  196. displayed as 60,893.
  197.  
  198.  
  199. CELL PROTECTION
  200. ===============
  201.  
  202. How can I lock or protect a specific area of cells on my worksheet?
  203.  
  204. To format a cell with a cell protection status of locked or hidden or
  205. both, use the Cell Protection command on the Format menu. To enable
  206. the cell protection status, choose Protect Document from the Options
  207. menu.
  208.  
  209. The default cell protection status for Microsoft Excel worksheets and
  210. macro sheets is Locked. This means that when you choose Protect
  211. Document from the Options menu, all the cells on your worksheet are
  212. locked and cannot be modified or formatted.
  213.  
  214. To lock a specific range of cells but leave other cells unlocked, you
  215. must first select your entire worksheet and disable the locked
  216. protection status. To format a specific range to be locked:
  217.  
  218. 1. Select the entire worksheet by choosing the Select All button to
  219.    the left of the column headings.
  220.  
  221. 2. From the Format menu, choose Cell Protection.
  222.  
  223. 3. Clear the Locked check box and choose OK.
  224.  
  225. 4. Select the range of cells you want to protect.
  226.  
  227. 5. From the Format menu, choose Cell Protection.
  228.  
  229. 6. Turn on the Locked option. Choose OK.
  230.  
  231. 7. To enable document protection, choose Protect Document from the
  232.    Options menu. Select the appropriate settings and choose OK.
  233.  
  234. You cannot enter data in the locked cells until you choose the
  235. Unprotect Document command from the Options menu.
  236.  
  237.   NOTE: While you can enter data in the cells that are not locked, you
  238.   will not be able to use any formatting options once document
  239.   protection is enabled. To turn off document protection, choose
  240.   Unprotect Document from the Options menu.
  241.  
  242.  
  243. WORKING WITH AND RESOLVING CIRCULAR REFERENCES
  244. ==============================================
  245.  
  246. The status bar is displaying the message "Circular:<Cell Reference>,"
  247. (where <Cell Reference> is an actual cell reference such as A1). What
  248. does this mean and how can I correct it?
  249.  
  250. In Microsoft Excel, you can intentionally create formulas that depend
  251. on each other for their results. For example, if cell A1 contains the
  252. formula =B1 and cell B1 contains the formula =A1, a circular reference
  253. has been created because both formulas depend on each other for their
  254. answer. To calculate a circular reference, use the Iteration options
  255. in the Calculation Options dialog box (from the Options menu, choose
  256. Calculation).
  257.  
  258. More commonly, circular references are not intentional and result from
  259. incorrect cell references in formulas or defined names. Microsoft
  260. Excel displays the message, "Circular:Cell Reference" in the status
  261. bar when an unresolved circular reference is on the active worksheet.
  262. If the message displays the word "Circular" by itself, an unresolved
  263. circular reference is on a worksheet that is currently open in
  264. Microsoft Excel. In this case, activate each open worksheet until the
  265. message displays a specific cell reference.
  266.  
  267. Finding a Circular Reference with the Worksheet Auditor
  268. -------------------------------------------------------
  269.  
  270. When the worksheet that contains the circular reference is active, you
  271. can use the Worksheet Auditor add-in macro to isolate the cause:
  272.  
  273. 1. From the File menu, choose Open. To load the Worksheet Auditor add-
  274.    in macro in Microsoft Excel for Windows, change to the LIBRARY
  275.    subdirectory (this directory should be located in the same
  276.    directory where you installed Microsoft Excel); in Microsoft Excel
  277.    for the Macintosh(R), change to the Macro Library folder (this
  278.    folder should be located in the same folder where you installed
  279.    Microsoft Excel).
  280.  
  281. 2. In Microsoft Excel for Windows, select AUDIT.XLA. In Microsoft
  282.    Excel for the Macintosh, select Worksheet Auditor. Choose OK.
  283.  
  284. 3. From the Formula menu, choose Worksheet Auditor.
  285.  
  286. 4. In the Worksheet Auditor dialog box, select Generate Audit Report
  287.    and choose OK.
  288.  
  289. 5. In the Audit Report dialog box, clear all the check boxes except
  290.    Circular References. Choose OK.
  291.  
  292. The time it takes to generate your Audit Report may vary depending on
  293. the number and complexity of the formulas in your worksheet. Once the
  294. Audit Report is complete, you'll have a complete list of all the
  295. flagged cells on your worksheet that are involved in the circular
  296. reference. You can use this list to sequentially check all the
  297. formulas and defined name references to locate the circular reference.
  298.  
  299.  
  300. ENTERING NON-KEYBOARD CHARACTERS
  301. ================================
  302.  
  303. How do I enter special characters, such as a trademark or degree
  304. symbol, in a cell?
  305.  
  306. Many characters not available on your keyboard (extended characters)
  307. can be used in a Microsoft Excel worksheet. For example, you may be
  308. able to add a degree or trademark symbol or an exponent or other
  309. mathematical expression to your sheet. The characters that are
  310. available depend on the font you use to format a cell(s).You add
  311. extended characters to your sheet using key combinations.
  312.  
  313.   NOTE: If you are using Microsoft Windows 3.1, you can also copy
  314.   extended characters from Character Map; if you are using Microsoft
  315.   Excel for the Macintosh, you can copy them from the Key Caps desk
  316.   accessory.
  317.  
  318. Microsoft Excel does not support individual character formatting such
  319. as multiple fonts within the same cell. Your cell must be formatted
  320. with the same font that contains the extended character you want to
  321. use. For example, if your cell is formatted with the Arial(R) font (if
  322. you are using the Windows operating system) or with the Geneva(TM)
  323. font (if you are using a Macintosh computer), the extended characters
  324. you can enter in the cell must be part of the Arial or Geneva
  325. character set, respectively.
  326.  
  327. To add special characters to your worksheet, follow the appropriate
  328. procedure below.
  329.  
  330.  
  331. Microsoft Excel for Windows
  332. ---------------------------
  333.  
  334. If you are using Microsoft Windows version 3.1, you can determine what
  335. characters are contained within a font character set by opening
  336. Character Map, which is located in the Accessories group in Windows
  337. Program Manager, and selecting the appropriate font from the Font
  338. list. When you select a character, its code is displayed in the lower-
  339. right corner of the Character Map dialog box. This code will consist
  340. of the ALT key plus a 4-digit number beginning with zero (0).
  341.  
  342. To enter a character in a worksheet, use one of the following two
  343. methods:
  344.  
  345.  - Use the character code in the lower-right corner of the Character
  346.    Map dialog box. For example, if you are using the Arial font, the
  347.    code for the degree symbol is ALT+0176. To enter the degree symbol
  348.    in a cell on your worksheet, hold down the ALT key and type 0176 on
  349.    the numeric keypad.
  350.  
  351.    If you are combining an extended character with other text or
  352.    numbers, for example 10 degrees Celsius, type the number 10 and
  353.    then hold down the ALT key and type 0176 on the numeric keypad, (if
  354.    you have only a 3-digit code, you need to include the zero [0] at
  355.    the beginning of the number.) Release the ALT key and type the
  356.    letter C.
  357.     
  358.     IMPORTANT: For these procedures to work correctly, you must use
  359.     the numbers on the numeric keypad.
  360.    
  361.    -or-
  362.  
  363.  - Copy the character from Character Map and paste it into a cell in
  364.    your worksheet. To copy the character, select it in Character Map
  365.    and then choose the Select button. This will place the character in
  366.    the Characters To Copy box. Choose the Copy button. Next, activate
  367.    your Microsoft Excel worksheet and select the cell into which you
  368.    want to paste the character and choose Paste from the Edit menu or
  369.    press CTRL+V. If you're combining the character with other text or
  370.    numbers, type your text, press CTRL+V and then complete your text
  371.    and press ENTER.
  372.  
  373.   NOTE: Character Map is not available in Microsoft Windows version
  374.   3.0. You can, however, use character codes in this version of
  375.   Microsoft Windows. For a complete list of available characters and
  376.   their codes, see page 568 of the "Microsoft Windows User's Guide"
  377.   version 3.0.
  378.  
  379. Microsoft Excel for the Macintosh
  380. ---------------------------------
  381.  
  382. On the Macintosh, to determine what characters are contained within a
  383. particular font set, open the Key Caps desk accessory (located on the
  384. Apple(R) menu). Key Caps contains an on-screen keyboard and a box that
  385. will display whatever keys you select from the keyboard. You can
  386. change the Key Caps font by choosing a new font from the Key Caps
  387. menu. Initially, the keyboard displays all your normal keys. By
  388. pressing and holding down the CONTROL, COMMAND, OPTION, and SHIFT keys
  389. individually and in combination, the on-screen keyboard will display
  390. the extended characters that are part of the particular font set.
  391.  
  392. To enter an extended character in your worksheet, use one of the
  393. following two methods:
  394.  
  395.  - In your worksheet, use the key combination that displays the
  396.    character on the Key Caps keyboard. For example, if you are using
  397.    the Geneva font, a degree symbol is displayed on the 8 key when you
  398.    hold down the OPTION and SHIFT keys while in Key Caps. To enter the
  399.    degree symbol in your worksheet, use the following key combination
  400.    in the cell where you want the symbol to appear:
  401.  
  402.       OPTION+SHIFT+8
  403.  
  404.    If you are combining an extended character with other text or
  405.    numbers, for example 10 degrees Celsius, type the number 10 and
  406.    then hold down the OPTION and SHIFT keys simultaneously and press
  407.    8. Release the OPTION, SHIFT, and 8 keys and type the letter C.
  408.  
  409.    -or-
  410.  
  411.  - To copy and paste the character into a cell, do the following:
  412.  
  413.    1. In Key Caps, type the key combination sequence required to
  414.       display the character on the Key Caps keyboard. This will
  415.       display the character on the display line.
  416.    
  417.    2. From the Edit menu, choose Copy or press COMMAND+C.
  418.    
  419.    3. Switch to Microsoft Excel, select the cell into which you want
  420.       to paste the extended character in and choose Paste from the
  421.       Edit menu or press COMMAND+V. Or, if you're combining the
  422.       character with other text or numbers, type your text, press
  423.       COMMAND+V and then complete your text and press RETURN.
  424.  
  425. Creating a Custom Number Format with an Extended Character
  426. ----------------------------------------------------------
  427.  
  428. When you enter an extended character directly in a cell with or
  429. without other numbers or text, the entry will always be entered as
  430. text. If you want the entry to be treated as a value (for example, to
  431. add or average a series of temperatures), create a custom number
  432. format:
  433.  
  434. 1. Select the range of cells you want to format.
  435.  
  436. 2. From the Format menu, choose Number.
  437.  
  438. 3. Follow the appropriate procedure for your version of Microsoft
  439.    Excel:
  440.  
  441.    - If you are using Microsoft Excel for Windows, type 0 (zero) in the
  442.      Code box, and then hold down the ALT key and type 0176 on the
  443.      numeric keypad. Release the ALT key and type the letter C.
  444.  
  445.    - If you are using Microsoft Excel for the Macintosh, type 0 (zero)
  446.      in the Code box, and then hold down the OPTION and SHIFT keys while
  447.      typing 8. Release the OPTION and SHIFT keys and type the letter C.
  448.  
  449. When you enter a value in one of the selected cells, it will be
  450. followed by a degree symbol and the letter c. Note that if you are
  451. using a custom number format for an exponent such as 2 squared, the
  452. exponent portion is treated as text and thereby ignored in any
  453. calculation. For example, 2 squared plus 2 squared will calculate to 4
  454. squared. Only the 2's are added and the cell containing the sum takes
  455. its number format from the cells being added, resulting in the
  456. exponent of 2 being appended to the sum.
  457.  
  458.  
  459. USING THE KEYBOARD TO MOVE AROUND AND SELECT CELLS
  460. ===================================================
  461.  
  462. What are some keyboard shortcuts for moving and selecting areas on my
  463. worksheet?
  464.  
  465. The following table lists some common keyboard shortcuts for moving
  466. and selecting areas on a worksheet. Keys that must be pressed
  467. sequentially are separated by a comma; keys that must be pressed at
  468. the same time are separated by a plus sign. In a few cases, there are
  469. two key combinations that perform the same action.
  470.  
  471.   NOTE: If the Alternate Navigation Keys option is turned on, some of
  472.   these keyboard shortcuts will behave differently. To turn off
  473.   Alternate Navigation Keys, choose Workspace from the Options menu
  474.   and clear the Alternate Navigation Keys check box.
  475.  
  476.  
  477. To do this                In Windows press      On the Macintosh press
  478. ----------------------------------------------------------------------
  479.  
  480. Move to the beginning of  CTRL+HOME             COMMAND0+HOME
  481. the sheet
  482.  
  483. Move to the last cell in  CTRL+END              COMMAND+END
  484. the sheet
  485.  
  486. Move to the edge of the   CTRL+arrow key        COMMAND+arrow key
  487. data block in the         END, arrow key        END, arrow key
  488. direction of the arrow 
  489. key
  490.  
  491. Select the entire row     SHIFT+SPACEBAR        SHIFT+SPACEBAR
  492.  
  493. Select the entire column  CTRL+SPACEBAR         CTRL+SPACEBAR
  494.  
  495. Select the entire         CTRL+SHIFT+SPACEBAR   COMMAND+SHIFT+SPACEBAR
  496. worksheet if a cell is                          COMMAND+A
  497. selected; if an object
  498. is selected, select the
  499. whole object
  500.  
  501. Extend the selection to   CTRL+SHIFT+arrow key  COMMAND+SHIFT+arrow key
  502. the edge of the data      END, SHIFT+arrow key  END, SHIFT+arrow key 
  503. block in the direction
  504. of the arrow key
  505.  
  506. Extend the selection up   SHIFT+PAGE UP        SHIFT+PAGE UP
  507. one window
  508.  
  509. Extend the selection      SHIFT+PAGE DOWN      SHIFT+PAGE DOWN
  510. down one window
  511.  
  512. Extend the selection      CTRL+SHIFT+PAGE UP   COMMAND+SHIFT+PAGE UP
  513. left one window
  514.  
  515. Extend the selection      CTRL+SHIFT+PAGE DOWN COMMAND+SHIFT+PAGE DOWN
  516. right one window
  517.  
  518. Select the current data   CTRL+SHIFT+8         COMMAND+* (on numeric
  519. block                                          keypad)
  520.  
  521. Switch to the next open   CTRL+F6              COMMAND+M
  522. document                                       COMMAND+F6 (extended
  523.                                                keyboard)
  524.  
  525. Switch to the previous    CTRL+SHIFT+F6        COMMAND+SHIFT+M
  526. open document                                  COMMAND+SHIFT+F6
  527.                                                (extended keyboard)
  528.  
  529. Switch to the next        ALT+PAGE DOWN        COMMAND+PAGE DOWN
  530. workbook document
  531.  
  532. Switch to the previous    ALT+PAGE UP          COMMAND+PAGE UP
  533. workbook document
  534.  
  535. Go to a specific cell     F5                   COMMAND+G or F5
  536. or range                                       (extended keyboard)
  537.  
  538.  
  539. Turn Extend mode on or    F8                   F8 (extended keyboard)
  540. off (used for extending
  541. a selection)
  542.  
  543. Turn Add mode on/off      SHIFT+F8             SHIFT+F8 (extended)
  544. (used to add a
  545. nonadjacent selection)
  546.  
  547. To extend a selection     SHIFT+click the      SHIFT+click the last
  548. from the active cell      last cell in the     cell in the selection
  549. (like Extend mode)        selection
  550.  
  551. To add a nonadjacent      CTRL+click           CTRL+click
  552. selection (like Add mode)
  553.  
  554.  
  555.                                PRINTING
  556.                                ========
  557.  
  558. DIFFERENT OUTPUT/DIFFERENT PRINTER
  559. ==================================
  560.  
  561. I changed printers and now my worksheet is not fitting on one page.
  562. What has happened and how can I correct this?
  563.  
  564. The most likely cause is that your screen fonts are mapping to a
  565. different set of printer fonts on the new printer. For more specific
  566. information about this problem and how to correct it, see the
  567. appropriate section below.
  568.  
  569. Microsoft Excel for Windows
  570. ---------------------------
  571.  
  572. When you change printers, in most cases you are using a different
  573. printer driver. This new driver may support a different set of fonts
  574. than the printer driver you were using. As a result, different printer
  575. fonts may be substituted, causing your printer output to appear
  576. different or to no longer fit on one page.
  577.  
  578. The row heights and column widths on your worksheet are sized
  579. according to your Normal style font, the default font in Microsoft
  580. Excel. If the Normal style font is a screen font such as MS Sans Serif
  581. (the default), when you print, this font is matched, or mapped, to the
  582. closest matching font available on your printer. If the matching
  583. printer font is slightly larger or if it is a monospace font (such as
  584. Courier) rather than a proportional space font, your column widths,
  585. row heights, and text size may change in such a way that the text is
  586. truncated or fewer or more columns or rows fit onto a page.
  587.  
  588. How to Correct the Problem
  589.  
  590. If your data is not fitting as it once did but the text otherwise
  591. looks the same, you can use Microsoft Excel's scaling features to fit
  592. your document to the original number of pages. To do this, choose Page
  593. Setup from the File menu. Under Scaling, set the number of pages wide
  594. and tall you want your document to fit on.
  595.  
  596. If your fonts look different, use a TrueType(R) font (Microsoft
  597. Windows 3.1) or a printer font (Microsoft Windows 3.0) for your Normal
  598. style font as well as when you apply font styles and sizes to
  599. individual cells. If you reformat your worksheet with a TrueType font
  600. such as Arial or Times New Roman(R), you'll be able to switch printers
  601. without any perceptible change (as long as TrueType fonts are
  602. supported by your new printer driver). TrueType fonts function as both
  603. screen and printer fonts and are supported by nearly all printer
  604. drivers available in the Windows 3.1 operating environment. If you are
  605. using Windows 3.0, you'll get the best results if you format your
  606. sheet using a printer font and, when you change printers, you reformat
  607. your sheet with a font that is available on the new printer.
  608.  
  609.    NOTE: To distinguish among TrueType, screen, and printer fonts,
  610.    from the Format menu, choose Font. In the Font list box, you'll see
  611.    a list of available fonts. TrueType fonts will be preceded by a
  612.    double T, printer fonts will be preceded by a printer symbol, and
  613.    screen fonts will not be preceded any symbol.
  614.  
  615. To change the Normal style font and the font applied to individual
  616. cells:
  617.  
  618. 1. From the Format menu, choose Style.
  619.  
  620. 2. Verify that Normal is selected in the Style Name box and choose
  621.    Define.
  622.  
  623. 3. Under Style Includes, clear all the check boxes except Font.
  624.  
  625. 4. Under Change, choose the Font button.
  626.  
  627. 5. Select a font from the Font list.
  628.  
  629.     NOTE: If you are using Windows 3.1, select a TrueType font and if
  630.     you are using Windows 3.0, select a printer font.
  631.  
  632. 6. Make other changes as needed in the Font dialog box and choose OK
  633.    twice to return to your sheet.
  634.  
  635. 7. If you have formatted individual cells with a font size or style
  636.    other than the Normal style font, select those cells and choose
  637.    Font from the Format menu. If the font is not already a printer or
  638.    a TrueType font, select one that is or select the same font you
  639.    chose for your Normal style font. Clear the Font Style and the Size
  640.    boxes; by doing this, you only change the font, not the style or
  641.    size you previously selected. Choose OK.
  642.  
  643. Microsoft Excel for the Macintosh
  644. ---------------------------------
  645.  
  646. While some printers use the fonts that are displayed on your screen,
  647. other printers have built-in fonts that may be substituted. In this
  648. case, when you change printers, a different printer font may be
  649. substituted--this font substitution may cause your output to appear
  650. different or to no longer fit on one page.
  651.  
  652. The row heights and column widths on your worksheet are sized
  653. according to your Normal style font, the default font in Microsoft
  654. Excel. If your Normal style font is a screen font such as Geneva (the
  655. default), when you print, this font is either substituted with the
  656. closest matching font available on your printer or your screen font is
  657. used. To determine if printer fonts are being substituted or not, from
  658. the File menu, choose Page Setup. If the option for Font Substitution
  659. is selected, printer fonts are being substituted for your screen
  660. fonts. In this case, since the Normal style font is a screen font and
  661. since this font determines your column widths and row heights, if the
  662. substituted printer font is slightly larger or if it is a monospace
  663. rather than a proportional space font, your column widths and row
  664. heights may change in such a way that text is truncated or fewer or
  665. more columns or rows fit onto a page.
  666.  
  667. How to Correct the Problem
  668.  
  669. When your data is not fitting as it once did but the text otherwise
  670. looks the same, you can use Microsoft Excel's scaling features to fit
  671. your document to the original number of pages: from the File menu,
  672. choose Page Setup, and under Scaling, set the number of pages wide and
  673. tall that you want your document to fit on.
  674.  
  675. If your fonts look different, do one of the following:
  676.  
  677.  - To quickly correct the problem, turn off the Font Substitution
  678.    option in the Page Setup dialog box. The quality of your printed
  679.    output, may be decreased.
  680.  
  681.    -or-
  682.  
  683.  - To get the best results, format your sheet using a printer font for
  684.    your Normal style font (follow the steps  above in this article)
  685.    and leave the Font Substitution option enabled. Then, if you change
  686.    printers, the previous printer font will be substituted with the
  687.    closest matching font on the new printer. For a list of printer
  688.    fonts, consult your printer documentation. The most common printer
  689.    fonts are Times(R), Helvetica(R), and Courier.
  690.  
  691.  
  692. DISAPPEARING PAGE BREAKS
  693. ========================
  694.  
  695. My manual page breaks are not displayed on my screen and they don't
  696. seem to be working when I print my worksheet. Why?
  697.  
  698. This is most likely occurring because, in the Page Setup dialog box,
  699. you enabled the Fit To X Pages Wide By X Pages Tall option under
  700. Scaling to specify a certain scale. When you use this scaling option,
  701. manual page breaks do not appear on the worksheet and are ignored in
  702. print preview and the printed output.
  703.  
  704. To emulate scaling a document to fit a certain number pages and have
  705. page breaks at specific rows and/or columns, use the Reduce/Enlarge
  706. Scaling option. To determine the reduction percentage required to fit
  707. a document to a certain number of pages, follow these steps:
  708.  
  709. 1. From the File menu, choose Page Setup.
  710.  
  711. 2. In the scaling section, select the Fit To option and indicate the
  712.    desired number of pages wide and tall. Choose OK.
  713.  
  714. 3. From the File menu, choose Print Preview to force the document to
  715.    be scaled according to the Fit To setting. Choose Close.
  716.  
  717. 4. Choose Page Setup from the File menu again. This time, select the
  718.    Reduce/Enlarge option in the Scaling section. The percentage the
  719.    document was scaled to while in print preview appears when this
  720.    option is selected. Choose OK.
  721.  
  722. If you now set manual page breaks, they are displayed correctly, your
  723. document breaks where specified, and it appears in the appropriate
  724. scale.
  725.  
  726.  
  727.                         WORKING WITH TEXT FILES
  728.                         =======================
  729.  
  730. IMPORTING TEXT FILES
  731. ====================
  732.  
  733. How can I import text files to Microsoft Excel from a third-party
  734. application? For example, I have some text files that I have
  735. downloaded from my company's mainframe system and I would like to
  736. bring these into Microsoft Excel 4.0. How can I do this?
  737.  
  738. When you open a text file in Microsoft Excel, the way the text is
  739. broken into columns depends on the character you choose to delimit
  740. your fields or columns of text. You can also choose no delimiter and
  741. parse your text after the file is opened. The most common column
  742. delimiters are commas, tabs, and spaces.
  743.  
  744. When you open a text file, Microsoft Excel checks the document for the
  745. column delimiter you selected in the Text File Options dialog box
  746. (from the File menu, choose Open and then choose the Text button). In
  747. this dialog box, the default Column Delimiter option is Tab; you can
  748. also select the Comma, Space, Semicolon, None, or Custom option (when
  749. you select Custom, you can specify any keyboard character). Once you
  750. choose a column delimiter, Microsoft Excel places the text following
  751. each instance of the specified delimiter in a separate cell. For
  752. example, if your text is delimited by spaces and if you select the
  753. Space delimiter, Microsoft Excel places the text following each space
  754. in a separate cell. This process is called parsing and occurs
  755. automatically when you specify a delimiter for your text file.
  756.  
  757. If you do not select the Space delimiter before you open a space-
  758. delimited file, or if you select the None (no delimiter) option, the
  759. text in your file will not be parsed; that is, each line of text will
  760. appear in a separate row in column A only. In this case, after you
  761. open the file in Microsoft Excel, you can break the text into separate
  762. columns using one of the parsing commands.
  763.  
  764.    NOTE: If you open a text file with no delimiter specified, you are
  765.    limited to 255 characters per row. All characters beyond 255 will
  766.    not be imported for any given row.
  767.  
  768. The parsing commands, located on the Data menu, are:
  769.  
  770.  - Parse - This command parses text based on a fixed length or number
  771.    of characters per column, rather than parsing your text based on a
  772.    specified character.
  773.  
  774.    For more information on opening and using the Parse command, see
  775.    pages 150-151 in "User's Guide 2" or the "Parsing" topic in
  776.    Microsoft Excel Help.
  777.  
  778.  - Smart Parse - This command is added to the Data menu when you load
  779.    the Flat File add-in macro. Smart Parse gives you the option of
  780.    parsing your data based on a specified delimiter: This is similar
  781.    to specifying a delimiter in the Text File Options dialog box, with
  782.    the exception that the parsing is done after you've opened the text
  783.    file and that there is not an option to parse based on a tab
  784.    delimiter.
  785.  
  786.    For more information on opening and using the Flat File add-in
  787.    macro, see pages 151-152 in "User's Guide 2" or the "Flat File
  788.    Macro" topic in Microsoft Excel Help.
  789.  
  790.     NOTE (Windows only): When you open a file with a .CSV extension,
  791.     Microsoft Excel for Windows will always assume that this file is a
  792.     comma-separated values (CSV) file regardless of the selected
  793.     column delimiter. As a result, it will be automatically parsed
  794.     using a comma delimiter; if there are no commas in the file, the
  795.     text will not be parsed. For files with any other filename
  796.     extension, .TXT for example, Microsoft Excel will use the
  797.     delimiter you specify in the Text File Options dialog box.
  798.  
  799. When your text is parsed and placed into separate columns in Microsoft
  800. Excel, you may find that some of the text entries in your file do not
  801. appear as expected. These unexpected results may occur because of the
  802. way Microsoft Excel automatically applies formatting to numbers and
  803. alphanumeric characters. If you have a text file in which this
  804. formatting is altering the values of your entries, there is an
  805. Application Note available, "Opening and Saving Text Files" (WE0801
  806. for Microsoft Excel for the Macintosh or ME0802 for Microsoft Excel
  807. for Windows), which includes a Text Reader add-in macro. When you use
  808. this macro to import text files, your text is parsed according to a
  809. delimiter you select and each entry is formatted as text--this text
  810. formatting prevents Microsoft Excel from applying automatic number
  811. formatting.
  812.  
  813. If you have a modem, you can obtain this Application Note and the
  814. associated add-in macro by connecting to the Microsoft Download
  815. Service (MSDL) at (206) 936-MSDL. If you do not have a modem, you can
  816. obtain this Application Note directly from Microsoft Excel Technical
  817. Support. Call (206) 635-7070 if you are using Microsoft Excel for
  818. Windows or call (206) 635-7080 if you are using Microsoft Excel for
  819. the Macintosh.
  820.  
  821.  
  822. EXPORTING TEXT FILES
  823. ====================
  824.  
  825. I created a worksheet in Microsoft Excel 4.0 and now need to export
  826. this file from Microsoft Excel to my mainframe. How can I do this?
  827.  
  828. Just as you can import text files to Microsoft Excel, you can also
  829. save and export worksheet files in text format.
  830.  
  831.  
  832. Tab- and Comma-Delimited Files
  833. ------------------------------
  834.  
  835. To save your file in either a tab-delimited (Text) or comma-delimited
  836. (CSV) file, follow the appropriate procedure below.
  837.  
  838. If you are using Microsoft Excel for the Macintosh:
  839.  
  840. 1. From the File menu, choose Save As and choose the Options button.
  841.  
  842. 2. From the File Format list, select either Text format for a tab-
  843.    delimited file or CSV for a comma-delimited file. Choose OK.
  844.  
  845. 3. If you want to rename your file, type a new name in the Save
  846.    Worksheet As box and choose OK.
  847.  
  848. If you are using Microsoft Excel for Windows:
  849.  
  850. 1. From the File menu, choose Save As.
  851.  
  852. 2. Under Save File As Type, select Text or CSV. Note that if you
  853.    select Text, the filename extension changes to .TXT; similarly,
  854.    when you select CSV, the filename extension automatically changes
  855.    to .CSV.
  856.  
  857. 3. Choose OK.
  858.  
  859.  
  860. Space-Delimited Files (Flat Files)
  861. ----------------------------------
  862.  
  863. If you want to save the file as a flat file (a file that uses spaces
  864. between the columns to delimit the file), you can use the Flat File
  865. add-in macro. When you load this macro, the Export command is added to
  866. your Data menu. To export your data:
  867.  
  868. 1. Select the area of the worksheet that you want to save to a flat
  869.    file format.
  870.  
  871. 2. From the Data menu, choose Export (this command will be available
  872.    only if the Flat File add-in macro is open). The add-in macro will
  873.    prompt you for a filename. Type in a path and filename and choose
  874.    Export. This file can now be opened in any application that
  875.    requires an ASCII flat file.
  876.  
  877. For more information on saving files from Microsoft Excel, see pages
  878. 147-150 of "User's Guide 2." For more information on opening and using
  879. the Flat File add-in macro, see pages 151-152 in "User's Guide 2" or
  880. the "Flat File Macro" topic in Microsoft Excel Help.
  881.  
  882.  
  883.  
  884. PRINTING TO A FILE
  885. ==================
  886.  
  887. In Lotus(R) 1-2-3(R), I have the option to print to a file rather than
  888. the printer. This creates a text file with a .PRN filename extension.
  889. How can I do this in Microsoft Excel?
  890.  
  891. When you print to a file in Lotus 1-2-3, a space-delimited text file
  892. is created. In Microsoft Excel, you can create a space-delimited text
  893. file by using the Export command that is available with the Flat File
  894. add-in macro. For detailed information about using this command, see
  895. the "Space-Delimited Files (Flat Files)" section above.
  896.  
  897.  
  898.  
  899.                         FORMULAS AND FUNCTIONS
  900.                         =======================
  901.  
  902. EXACT MATCH IN A LOOKUP TABLE
  903. =============================
  904.  
  905. I want to create a lookup formula so that it will only find an exact
  906. match. If it doesn't, I want it to return the #N/A error value. In
  907. addition, I don't want to have to sort my table so that the first
  908. column is in ascending order. How can I do this?
  909.  
  910. In Microsoft Excel, the lookup functions LOOKUP(),VLOOKUP(), and
  911. HLOOKUP() will find an exact match in a lookup table only when one
  912. exists. If there is not an exact match, the function will return the
  913. largest value that is less than or equal to the value you've specified
  914. for the <lookup_value> argument. In addition, the first column in your
  915. lookup table must be sorted in ascending order. To ensure that a match
  916. is exact for a given <lookup_value> and/or to find it in an unsorted
  917. table, use a combination of the INDEX() and MATCH() functions as
  918. follows
  919.  
  920.    =INDEX(<table_array>,MATCH(<lookup_value>,
  921.     <lookup_array>,<match_type>),<col_index_num>)
  922.  
  923. where <table_array> is the entire lookup table, <lookup_value> is the
  924. value used to find the value wanted in the table, <lookup_array> is
  925. the range of cells containing possible lookup values, <match_type> is
  926. a number (-1, 0, or 1) specifying how you want your <lookup_value> to be
  927. matched, and <col_index_num> is the column number in the <lookup_array>
  928. for which the matching value should be returned.
  929.  
  930.        NOTE: If the <match_type> argument is 0, MATCH() finds the
  931.        first value that is exactly equal to the <lookup_value> and the
  932.        <lookup_array> does not need to be sorted.
  933.  
  934. If none of the cells in the <lookup_array> argument match those in the
  935. <lookup_value> argument, this formula will return the #N/A error
  936. value.
  937.  
  938. For example, in the following table
  939.  
  940.     |  A     |   B    |   C
  941.    -|--------|--------|-------
  942.    1|Name    | Dept   |     Age
  943.    -|--------|--------|-------
  944.    2|Henry   |    501 |     28
  945.    -|--------|--------|-------
  946.    3|Stan    |    201 |     19
  947.    -|--------|--------|-------
  948.    4|Mary    |    101 |     22
  949.    -|--------|--------|-------
  950.    5|Larry   |    301 |     29
  951.  
  952.  
  953. since the "Name" range is not sorted, using VLOOKUP() to find the age
  954. of Mary returns 28, the age of Henry. To find the age of Mary, use the
  955. formula:
  956.  
  957.    =INDEX(A2:C5,MATCH("mary",A2:A5,0),3)
  958.  
  959. This formula will return 22.
  960.  
  961.  
  962. COMBINING CELL CONTENTS
  963. ========================
  964.  
  965. How can I combine the contents of two cells into one cell? I have a
  966. series of last names in one column and first names in a second column
  967. and I'd like to combine them into one cell.
  968.  
  969. In Microsoft Excel, to join the contents of two or more cells into a
  970. single cell, use the ampersand to connect, or concatenate, the values
  971. of the cells. For example, you can join first and last names or you
  972. can combine a formula with text. The following table shows some common
  973. uses of the concatenation operator (&):
  974.  
  975.       |  A    |   B    |        C      |     Formula Used in Column C
  976.    ---|-------|--------|---------------|------------------------------
  977.    1  |John   |Doe     |John Doe       | =A1&" "&B1
  978.    ---|-------|--------|---------------|------------------------------
  979.    2  |John   |Doe     |Doe, John      | =B1&", "&A1
  980.    ---|-------|--------|---------------|------------------------------
  981.    3  |John   |Doe     |JohnDoe        | =A1&B1
  982.    ---|-------|--------|---------------|------------------------------
  983.    4  |       |        |               |
  984.    ---|-------|--------|---------------|------------------------------
  985.    5  |10     |5       |The cost is    |
  986.       |       |        |15 dollars     | ="The Cost is "&SUM(A5:A6)&"
  987.       |       |        |               | dollars"
  988.  
  989. Use quotation marks to add any text to the concatenated string and the
  990. ampersand (&) to add cell references or formulas. In the name
  991. examples, quotation marks are used to add a space between the first
  992. name and the last name (cell C1) and a comma and space between the
  993. last and the first name (cell C2). Cell C5 contains an example of how
  994. to add a formula in the middle of a text string. This can be useful
  995. when you have a statement that uses the result of a formula.
  996.  
  997.   NOTE: If a referenced cell contains a formula, the returned value is
  998.   displayed as a text value in the combined string.
  999.  
  1000.  
  1001. LINEST() FUNCTION
  1002. ==================
  1003.  
  1004. How can I return the additional regression statistics that are built
  1005. into the LINEST() function?
  1006.  
  1007. To retrieve the statistics that can be returned by the LINEST()
  1008. function, you must first select an appropriately sized array on your
  1009. worksheet. The array should be five rows high and two columns wide. If
  1010. your original data includes more than one x variable, your array
  1011. should include one extra column for each additional x variable. For
  1012. example, if you have three x variables, your array will be five rows
  1013. by four columns.
  1014.  
  1015. The syntax of the LINEST() function is:
  1016.  
  1017.  =LINEST(<known_y's>,<known_x's>,<const>,<stats>)
  1018.  
  1019. By setting the <stats> argument to TRUE, you instruct Microsoft Excel 
  1020. to return the additional statistics. If <stats> is set to FALSE, the 
  1021. LINEST() function will return only the slope and the y intercept. 
  1022. (See pages 254-258 of the "Function Reference" for a complete 
  1023. discussion of the <known_y's>, <known_x's>,and <const> arguments.)
  1024.  
  1025. To create a LINEST() formula for the following table:
  1026.  
  1027.       |      A     |    B   |    C
  1028.    ---|------------|--------|--------
  1029.    1  | Known Y's  | XVar1  | XVar2
  1030.    2  |        200 |     15 |      76
  1031.    3  |        210 |     20 |      65
  1032.    4  |        195 |     23 |      66
  1033.    5  |        235 |     28 |      72
  1034.    6  |        250 |     36 |      80
  1035.  
  1036. 1. Because the data includes two x variables, select an array that is
  1037.    five rows by three columns. For example, you could select cells
  1038.    E2:G6.
  1039.  
  1040. 2. In the formula bar, type:
  1041.    
  1042.       =LINEST(A2:A6,B2:C6,,TRUE)
  1043.   
  1044.    NOTE: For this example, you can omit the third argument of the
  1045.    function.
  1046.  
  1047.    After typing the formula, you must press CTRL+SHIFT+ENTER in
  1048.    Microsoft Excel for Windows or COMMAND+RETURN in Microsoft Excel
  1049.    for the Macintosh to enter the formula as an array formula--you
  1050.    will see braces ({}) placed around the formula in the formula
  1051.    bar.
  1052.     
  1053. 3. Cells E3:F6 contain the additional regression statistics:
  1054.  
  1055.        |      E    |       F   |     G
  1056.    ----|-----------|-----------|----------
  1057.    2   |  1.017709 |  2.22756  | 90.57607
  1058.    ----|-----------|-----------|----------
  1059.    3   |  1.167926 | 0.934885  | 76.37852
  1060.    ----|-----------|-----------|----------
  1061.    4   |  0.840776 |  13.3242  |  #N/A
  1062.    ----|-----------|-----------|----------
  1063.    5   |  5.280472 |        2  |  #N/A
  1064.    ----|-----------|-----------|----------
  1065.    6   |  1874.931 | 355.0688  |  #N/A
  1066.  
  1067. The additional statistics are returned in the last three rows and
  1068. first two columns of your array. If your array has more than the
  1069. required number of columns (three in this example), #N/A errors will
  1070. be returned in the extra columns. To determine what each returned
  1071. value represents, refer to page 255 in the "Function Reference."
  1072.  
  1073. You can also use the Regression tools to perform regression analysis,
  1074. return the additional statistics, and automatically create best-fit-
  1075. line plots. The Analysis ToolPak includes an add-in macro that
  1076. provides statistical analysis tools. When you load this add-in macro,
  1077. the Analysis Tools command is added to the Options menu. Selecting the
  1078. Analysis Tools command will display a list of statistical tools.
  1079.  
  1080.  
  1081. CORRELATION COEFFICIENT
  1082. =======================
  1083.  
  1084. How can I retrieve the correlation coefficient?                 
  1085.  
  1086. In earlier versions of Microsoft Excel, it was necessary to use the
  1087. LINEST() function to calculate the additional regression statistics
  1088. including the correlation coefficient. In Microsoft Excel 4.0, the
  1089. RSQ() function uses the <known_y's> and <known_x's> arguments to
  1090. perform this calculation automatically. It returns a single value
  1091. representing your correlation coefficient (that is, the value 
  1092. of R squared).
  1093.  
  1094. For additional information on using the RSQ() function, see pages 366-
  1095. 367 of the "Function Reference."
  1096.  
  1097.  
  1098.                                 MACROS
  1099.                                 ======
  1100.  
  1101.             
  1102. DEBUGGING MACROS
  1103. ================
  1104.  
  1105. I need to debug a macro that I've written. What is the best way to do
  1106. this?
  1107.  
  1108. Most command-equivalent macro functions return the value FALSE before
  1109. they are run, TRUE if they are run successfully, and FALSE or an error
  1110. value if they don't run successfully. If your macro functions are
  1111. returning an incorrect or unexpected result or if one or more macro
  1112. commands cause your macro to halt in error, you can use any
  1113. combination of the following methods to isolate and resolve the
  1114. problem.
  1115.  
  1116. Using the Step and Evaluate Commands
  1117. ------------------------------------
  1118.  
  1119. The step feature allows you to step through and evaluate your macro
  1120. commands line by line. To use the step feature, run your macro by
  1121. choosing Run from the Macro menu. After you select your macro from the
  1122. list, choose the Step button. You can then either step through or
  1123. evaluate the individual lines of your macro code. Step takes you to
  1124. the next macro command. Evaluate calculates each nested function
  1125. within a line of macro code, one argument at a time--this is a useful
  1126. way to isolate a problem within a specific line of a macro. While you
  1127. are in step mode, you cannot edit your macro. To exit step mode to
  1128. edit your macro, choose the Halt button.
  1129.  
  1130. Using Key Commands to Evaluate Portions of a Macro Statement
  1131. -------------------------------------------------------------
  1132.  
  1133. To evaluate a portion of a statement or an entire line of code in your
  1134. macro in the formula bar, select the area you want to evaluate and
  1135. press F9 or, if you are using Microsoft Excel for the Macintosh, press
  1136. and hold down the COMMAND key and then press the EQUAL SIGN (=). This
  1137. will immediately calculate the selected portion of your function and
  1138. display the value in the formula bar.
  1139.  
  1140.   CAUTION: Be sure to press the ESC key after you view the value;
  1141.   otherwise the original formula will be replaced with the displayed
  1142.   value.
  1143.  
  1144. Using Key Commands to View Values Returned by Macro Statements
  1145. ---------------------------------------------------------------
  1146.  
  1147. To view the values returned by all statements on a macro sheet, press
  1148. and hold down the CTRL key, or the COMMAND key if you are using
  1149. Microsoft Excel for the Macintosh, and then press the ACCENT GRAVE (`)
  1150. key. CTRL+ACCENT GRAVE (Windows) and COMMAND+ACCENT GRAVE (Macintosh)
  1151. toggle between the view values mode and the view formulas mode. Press
  1152. CTRL+ACCENT GRAVE or COMMAND+ACCENT GRAVE to return the macro sheet to
  1153. view formulas mode. An alternative way to toggle between view values
  1154. and view formulas is to choose Display from the Options menu and
  1155. select or clear the Formula check box (when a macro sheet is active,
  1156. the default view is view formulas).
  1157.  
  1158.  
  1159. Running a Portion of the Macro
  1160. ------------------------------
  1161.  
  1162. If your macro is long, you may want to test small portions of it to
  1163. isolate problems. To divide your macro into more manageable sections,
  1164. do the following:
  1165.  
  1166. 1. Activate your macro sheet. At the end of the range of macro code
  1167.    that you want to test, insert a row and type "=HALT()" (without
  1168.    the quotation marks). This will stop execution at this point 
  1169.    in the macro.
  1170.  
  1171. 2. Activate the document from which you are running your macro and
  1172.    choose Run from the Macro menu.
  1173.  
  1174. 3. With the dialog box active, choose the macro sheet name from the
  1175.    Window menu and select the cell containing the first line of macro
  1176.    code that you want to test. This will place the macro cell
  1177.    reference in the Run Macro dialog box.
  1178.  
  1179. 4. Choose OK or Step.
  1180.  
  1181. The macro will stop where it encounters the HALT() function.
  1182.  
  1183.  
  1184. LEARNING MORE ABOUT MACROS
  1185. ==========================
  1186.  
  1187. How can I learn more about writing macros?
  1188.  
  1189. In addition to reviewing Chapters 6-7 in "User's Guide 2," you can use
  1190. the Recorder command (located on the Macro menu) as a learning tool.
  1191. You can use the macro recorder to learn command structure, syntax, and
  1192. which macro commands perform which actions. When you record key
  1193. combinations, menu command selections, and mouse actions, they are
  1194. automatically placed in a macro sheet. You can then review this sheet
  1195. to gain a better understanding of the macro functions that perform the
  1196. actions you recorded. If you need to use non-command-equivalent
  1197. functions, such as information, reference, or customizing functions,
  1198. you must manually add these to your macro. For additional information
  1199. on what functions fall into these categories, see pages xv-xliii in
  1200. the "Function Reference."
  1201.  
  1202. For more information about recording a command macro, see pages 216-
  1203. 219 of "User's Guide 2."
  1204.  
  1205. For more information about writing macros, see the "Complete Guide to
  1206. Microsoft Excel Macros" by Charles Kyd and Chris Kinata, or "Microsoft
  1207. Excel Macros Step by Step" by Steve Wexler and Julianne Sharer. To
  1208. order these books, call Microsoft Press(R) at (800)888-3303.
  1209.  
  1210.  
  1211.                                WORKBOOKS
  1212.                                =========
  1213.  
  1214.  
  1215. DISPLAYING WORKBOOK FILES
  1216. =========================
  1217.  
  1218. How can I see all the files I have in my workbook?
  1219.  
  1220. To arrange your workbook documents so you can see more than one
  1221. document on your screen at a time, open each document in a window
  1222. separate from the Workbook Contents screen:
  1223.  
  1224. 1. Switch to the Workbook Contents window by clicking the Workbook
  1225.    Contents icon in the lower-right corner of the document.
  1226.  
  1227. 2. To open a document in a separate window, hold down the CTRL key if
  1228.    you are using Microsoft Excel for Windows or the COMMAND key if you
  1229.    are using Microsoft Excel for the Macintosh, and double-click the
  1230.    document in the Workbook Contents window. Repeat this step for each
  1231.    document you want to view.
  1232.  
  1233. 3. From the Window menu, choose Arrange. Enable the Windows Of Active
  1234.    Workbook option and choose OK.
  1235.  
  1236. Each of the documents you selected will be arranged on your screen so
  1237. that you can view them all at once.
  1238.  
  1239.  
  1240. COPYING WORKBOOK FILES
  1241. ======================
  1242.  
  1243. How can I make a copy of a file in my workbook?
  1244.  
  1245. You can copy or move a workbook document from one workbook to another
  1246. using the drag and drop method or the Copy and Paste commands. To copy
  1247. a workbook document into a sheet that is not part of a workbook:
  1248.  
  1249. 1. From the Workbook Contents window, double-click the document name
  1250.    to activate the document you want to copy.
  1251.  
  1252. 2. Choose the Select All button to the left of the column headings.
  1253.  
  1254. 3. From the Edit menu, choose Copy.
  1255.  
  1256. 4. From the File menu, choose New. Select Worksheet and choose OK.
  1257.  
  1258. 5. From the Edit menu, choose Paste. You will now have a separate copy
  1259.    of the workbook document, which you can save.
  1260.  
  1261. For information on moving and copying documents between workbooks, see
  1262. pages 75-76 of "User's Guide 1."
  1263.  
  1264.  
  1265.                                CHARTING
  1266.                                ========
  1267.  
  1268.  
  1269. ADDING NEW SERIES INFORMATION
  1270. =============================
  1271.  
  1272. When I add additional data to my spreadsheet, can I update my chart
  1273. without re-creating it?
  1274.  
  1275. To update a chart when you add additional data to an existing series
  1276. or when you want to add a new series, use the ChartWizard. For
  1277. example, if you present the following data in a chart,
  1278.  
  1279.        |   A         |      B    |    C
  1280.    ----|-------------|-----------|---------
  1281.    1   |             |     1990  |   1991
  1282.    ----|-------------|-----------|---------
  1283.    2   | Productx    |    $100   |  $350
  1284.    ----|-------------|-----------|---------
  1285.    3   | Producty    |    $200   |  $500
  1286.    ----|-------------|-----------|---------
  1287.    4   | Productz    |    $300   |  $700
  1288.  
  1289. the sales data for 1990 and 1991 are displayed as the series and the
  1290. products are displayed as the categories. If you add a new product to
  1291. the table with sales data for 1990 and 1991, you are adding data to
  1292. existing series. If, instead, you add sales figures for 1992 for each
  1293. of the three products, you would create a new series. In either case,
  1294. the easiest way to add information to a chart is to use the
  1295. ChartWizard:
  1296.  
  1297. 1. If your chart is a chart object, select the chart by clicking it
  1298.    once. If your chart is a separate chart window, activate it.
  1299.  
  1300. 2. Choose the ChartWizard button on the Chart toolbar.
  1301.  
  1302. 3. In the ChartWizard Step 1 Of 2 dialog box, change the Range to
  1303.    include the data you added. Using the sample data, if you add data
  1304.    to the existing series (1990 and 1991), you would enlarge the range
  1305.    from $A$1:$C$4 to $A$1:$C$5 to include the new row. If you add a
  1306.    new series, enlarge the range from $A$1:$C$4 to $A$1:$D$4, so that
  1307.    it includes the new column.
  1308.  
  1309.       NOTE: When your new data is entered in cells that are not adjacent
  1310.       to the range of cells your chart is linked to, separate the data
  1311.       ranges with a comma when you update the chart. For example, if you
  1312.       want to add a new series to your chart and you've entered the data
  1313.       in cells E1:E4, in the Range box in the ChartWizard dialog box,
  1314.       change your reference to $A$1:$C$4,$E$1:$E$4.
  1315.  
  1316. For more information on adding information to charts, see pages 437-
  1317. 438 in "User's Guide 1."
  1318.   
  1319.   TIP: You can use defined names in place of actual cell ranges. This
  1320.   option enables you to update the chart by redefining the named range
  1321.   to include the new data.
  1322.  
  1323. For more information on naming a cell or range of cells on a
  1324. worksheet, see pages 263-268 of the "User's Guide 1."
  1325.  
  1326.  
  1327. CHANGING THE PLOTTING ORDER
  1328. ===========================
  1329.  
  1330. Microsoft Excel plotted my chart backwards. The information in the y-
  1331. axis should be in the x-axis and vice versa. How can I change this?
  1332.  
  1333. Microsoft Excel uses the shape of the worksheet selection to determine
  1334. whether rows or columns form the data series. Microsoft Excel assumes
  1335. you want fewer series than categories. So, if the worksheet selection
  1336. has more rows than columns, Microsoft Excel plots each column as a
  1337. separate data series and plots each row as a separate category.
  1338. Similarly, if the worksheet selection has more columns than rows,
  1339. Microsoft Excel plots each row as a separate data series and each
  1340. column as a separate category.
  1341.  
  1342. To reverse Microsoft Excel's default plotting assumptions, use the
  1343. ChartWizard to create the chart, or, if you have already created the
  1344. chart, use the ChartWizard to change the defaults:
  1345.  
  1346. 1. If you have not yet created your chart, select the data on the
  1347.    worksheet that you want your chart to be based on.
  1348.  
  1349.    -or-
  1350.  
  1351.    If your chart is already created and your chart is a chart object,
  1352.    select the chart by clicking it once. If your chart is a separate
  1353.    chart window, activate it.
  1354.  
  1355. 2. Select the ChartWizard tool.
  1356.  
  1357. 3. When you reach step 4 of 5 (new chart) or step 2 of 2 (edited
  1358.    chart), select either columns or rows. On the left, a sample of
  1359.    what your chart will look like is displayed. If you want the axes
  1360.    reversed, select the alternate option under Data Series In. For
  1361.    example, if Microsoft Excel has defaulted to rows, select columns.
  1362.    Verify that your chart is displayed correctly and choose the OK
  1363.    button.
  1364.  
  1365. For more information on controlling how Microsoft Excel plots your
  1366. chart data series, see pages 423-427 in "User's Guide 1."
  1367.  
  1368.  
  1369. ADDING A SECOND Y-AXIS
  1370. ======================
  1371.  
  1372. The information my data series is based on refers to two different
  1373. kinds of numbers. As a result, my columns are large for one data
  1374. series and very small for the other data series. Is it possible to
  1375. have a second y-axis with a different scale?
  1376.  
  1377. In Microsoft Excel, you can use an overlay chart to plot different
  1378. types of data on the same chart. An overlay chart is a second chart
  1379. plotted on top of the main chart in the same chart window. The overlay
  1380. can be a different chart type or have a different scale or both. For
  1381. example, if you have one data series that consists of numbers of units
  1382. sold and a second data series that consists of revenues, the values
  1383. representing units sold and those representing revenues are different
  1384. types of information. When you plot these two types of data on the
  1385. same chart, if you use only one y-axis, the data markers may be skewed
  1386. if the revenues are in a significantly higher range of values than the
  1387. units sold. Instead, to meaningfully represent the different types of
  1388. information, add an overlay chart with a second y-axis.
  1389.  
  1390. To add an overlay chart, do one of the following:
  1391.  
  1392.  - If you've just created a new chart and haven't yet customized it,
  1393.    use the Combination command on the Gallery menu. Select one of the
  1394.    combined chart options and choose OK.
  1395.  
  1396.    -or-
  1397.  
  1398.  - If you've already customized the chart and want to preserve the
  1399.    formatting, use the Add Overlay command on the Chart menu.
  1400.  
  1401. Using either method, Microsoft Excel automatically divides your chart
  1402. data series between the main chart and the overlay chart. If you have
  1403. multiple data series and you want to plot specific data series in the
  1404. overlay chart that were omitted when you added the overlay, use the
  1405. Overlay command on the Format menu. Under Series Distribution, select
  1406. the First Overlay In Series option and specify the plot number of the
  1407. first chart data series you want plotted in the overlay chart. All
  1408. data series with a greater plot number will also be plotted in the
  1409. overlay chart. (To determine the plot number for each data series,
  1410. choose Edit Series from the Chart menu and, with a specific series
  1411. selected from the Series list, look at the value in the Plot Order
  1412. box.)
  1413.  
  1414.   NOTE: If you are working with a chart object on your worksheet and
  1415.   you want to add or edit an overlay chart, you must open the chart in
  1416.   its own window by double-clicking it.
  1417.  
  1418. For additional information on adding and deleting overlay charts, see
  1419. pages 429-431 of "User's Guide 1."
  1420.  
  1421.  
  1422.              USING MICROSOFT EXCEL WITH OTHER APPLICATIONS
  1423.             ==============================================
  1424.  
  1425.  
  1426. MICROSOFT WORD
  1427. ==============
  1428.  
  1429. I want to copy a chart I created in Microsoft Excel and paste it into
  1430. Microsoft Word so that it will be updated when I change it in
  1431. Microsoft Excel. What is the best way to do this?
  1432.  
  1433. You can use the Paste Link feature available both in Microsoft Excel
  1434. and Microsoft Word to link a Microsoft Excel object to a Microsoft
  1435. Word document. To link a Microsoft Excel object to a Microsoft Word
  1436. document, use the appropriate procedure below for your version of
  1437. Microsoft Word.
  1438.  
  1439. Microsoft Word Version 2.0 for Windows
  1440. --------------------------------------
  1441.  
  1442. To paste a chart in a Microsoft Word version 2.0 for Windows document
  1443. so that it will be updated when you change the original chart in
  1444. Microsoft Excel:
  1445.  
  1446. 1. In Microsoft Excel, if your chart is a chart object on your
  1447.    worksheet, select it by clicking it once. From the Edit menu,
  1448.    choose Copy. (If your chart is a separate chart document, activate
  1449.    it. From the Chart menu, choose Select Chart and choose Copy from
  1450.    the Edit menu.)
  1451.  
  1452. 2. Start Word.
  1453.  
  1454. 3. In the Word document, position the cursor where you want to paste
  1455.    the chart.
  1456.  
  1457. 4. From the Edit menu, choose Paste Special. This will display the
  1458.    Paste Special dialog box.
  1459.  
  1460. 5. Under Data Type, select Picture and choose Paste Link.
  1461.  
  1462. If the chart you copy in Microsoft Excel is a separate chart document,
  1463. you will have the option in Word of pasting the chart as a picture or
  1464. as a bitmap; if your chart is a chart object on your worksheet, you
  1465. will only have the option of pasting the chart as a picture. You'll
  1466. get the best results, both on screen and in your printed output, if
  1467. you paste the chart as a picture.
  1468.  
  1469. When you use the Paste Link command to paste a chart as a bitmap, the
  1470. text may appear distorted--particularly if you resize the image. When you 
  1471. use the Paste Link command to link a chart as a picture, printer and font 
  1472. information is pasted with it. As a result, the image will be displayed 
  1473. and printed as it is in Microsoft Excel.
  1474.  
  1475. Microsoft Word Versions 4.0, 5.0, and 5.1 for the Macintosh
  1476. -----------------------------------------------------------
  1477.  
  1478. You can copy a chart in Microsoft Excel for the Macintosh and link it
  1479. to a Word for the Macintosh document. The method for copying the chart
  1480. in Microsoft Excel is the same regardless of your version of Word or
  1481. your version of the Macintosh system software.
  1482.  
  1483. To copy the chart in Microsoft Excel:
  1484.  
  1485. 1. If you want the chart to be pasted in color in Word, choose Print
  1486.    from the File menu and select the Print Using Color and Print
  1487.    Preview options and choose Print. When the Print Preview window is
  1488.    displayed, choose Close.
  1489.  
  1490. 2. If you're copying a chart object on your worksheet, double-click it
  1491.    to open it in its own window (a chart object cannot be linked when
  1492.    pasted in Word). From the Chart menu, choose Select Chart. (If your
  1493.    chart is already a separate chart document, activate it, and choose
  1494.    Select Chart from the Chart menu.)
  1495.  
  1496. 3. Hold down the SHIFT key and choose the Copy Picture command from
  1497.    the Edit menu. Under Appearance, select the As Shown On Screen
  1498.    option. Under Size, select the option you want and choose OK.
  1499.  
  1500. 4. Switch to Word and position your insertion point where you want the
  1501.    chart.
  1502.  
  1503. The way you link and update the chart will depend on your version of
  1504. Word and your version of the Macintosh system software. To link the
  1505. chart in Word, follow the appropriate procedure below for your version
  1506. of Word:
  1507.  
  1508. For Word version    Follow this procedure
  1509. ---------------------------------------------------------------------
  1510. 4.0                 From the Edit menu, choose Paste Link.
  1511. 5.0 or 5.1          From the Edit menu, choose Paste Special. Select
  1512.                     Picture and choose Paste Link.
  1513.  
  1514. To update the chart in Word, follow the appropriate procedure for your
  1515. version of the Macintosh system software and your version of Word:
  1516.  
  1517.  - If you are using Macintosh system software version 6.x, the link
  1518.    between the chart in Word and the original chart in Microsoft Excel
  1519.    is not dynamic; that is, it will not be updated automatically after
  1520.    the chart is changed in Microsoft Excel. To manually update the
  1521.    chart:
  1522.  
  1523. For Word version    Follow this procedure
  1524. ----------------------------------------------------------------------
  1525. 4.0                 From the Edit menu, choose Update Links.
  1526. 5.0 or 5.1          From the Edit menu, choose Link Options and choose
  1527.                     Update Now.
  1528.  
  1529.  - If you are using Macintosh system software version 7 or 7.0.1, the
  1530.    link between the chart picture in Word versions 5.0 or 5.1 and
  1531.    Microsoft Excel is dynamic; it will be updated automatically after
  1532.    the chart is changed in Microsoft Excel as long as Automatically is
  1533.    selected in the Link Options dialog box in Word. Dynamic linking is
  1534.    not supported in Word 4.0 using System 7.0 AppleEvents; to update
  1535.    your chart in Word 4.0, choose Update Links from the Edit menu.
  1536.  
  1537.  
  1538. DATABASE APPLICATIONS
  1539. =====================
  1540.  
  1541. I need to extract data from an external database. Can I do this with
  1542. Microsoft Excel?
  1543.  
  1544. Microsoft Excel for Windows provides a database front-end application,
  1545. Q+E(R), along with supporting add-in macros, that allows you to
  1546. manipulate, update, and extract information from a variety of database
  1547. systems. These include dBASE(R), Microsoft SQL Server, ORACLE(R),
  1548. OS/2(R) Extended Edition Database, and DEC(R) RDB files.
  1549.  
  1550. For additional information on setting up and using Q+E, see the "Q+E
  1551. for Microsoft Excel User's Guide."
  1552.  
  1553. Microsoft Excel for the Macintosh ships with an add-in macro called
  1554. the Data Access macro. This macro allows Microsoft Excel to use the
  1555. Data Access Language (DAL) extension created by Apple Computer, Inc.
  1556. You can use this macro to access data from external databases and
  1557. transfer query results to Microsoft Excel worksheets or to separate
  1558. files. To use the Data Access Macro, you need the DAL system extension
  1559. and the Data Access software, both available from Apple Computer, as
  1560. well as network connections from your Macintosh to the external
  1561. database server.
  1562.