home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / ANWENDUN / EXP_CALC / CALC3.DOC < prev    next >
Text File  |  1993-12-01  |  75KB  |  3,235 lines

  1. -
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9. NPV
  10.  
  11.  
  12.  
  13.                               NPV Function
  14.  
  15.  
  16. Purpose:  Computes the net present value of a stream of flows, at a 
  17.           specified discount rate, and returns the result to the 
  18.           current cell or formula.
  19.  
  20. Format:   NPV(.12,A1:A20)          Rate specified as value
  21.  
  22.           NPV(A1,B1:E1)            Rate in another cell
  23.  
  24.           NPV(A1/100,B1:E1)        Rate specified as formula
  25.  
  26. Remarks:  The first operand of the NPV function is the discount 
  27.           rate. It may be a value, a cell reference, or a formula. 
  28.           The interval between the stream of flows must be 
  29.           constant, and determined by the rate; i.e. if the flows 
  30.           are annual, use an annual discount rate. If the flows are 
  31.           monthly, use a monthly discount rate.
  32.  
  33.           The second operand of the NPV function is a range of 
  34.           contiguous cells, which contains the stream of flows. 
  35.  
  36. Example:  A client has an annual income of $40,000 and he expects 
  37.           it to increase 5% annually. Make a spreadsheet showing 
  38.           his annual income for the next ten years, total income 
  39.           for ten years, and net present value of the total income, 
  40.           assuming an annual discount rate of 8%:
  41.  
  42.                     A1:          40000
  43.                     A2:          A1*1.05
  44.                     A3-A10:      /R A2 A3:A10  (adjust - Y)
  45.                     A12:         SUM(A1:A10)
  46.                     A13:         NPV(.08,A1:A10)
  47.  
  48.           Cell A13 will contain the net present value of the ten 
  49.           years' income. For larger spreadsheets using NPV several 
  50.           times, it is a good idea to put the discount in another 
  51.           cell, so it can be easily changed without having to enter 
  52.  
  53.  
  54. 94
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. -
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.                                                                NPV
  76.  
  77.  
  78.           the formulas again. In the example above, make these two 
  79.           changes:
  80.  
  81.                     B1:       .08
  82.                     A13:      NPV(B1,A1:A10)
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.                                                                    95
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133. -
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141. PAGE
  142.  
  143.  
  144.  
  145.                             PAGE Function
  146.  
  147.  
  148. Purpose:  Advances a printed spreadsheet to a new page. Optional 
  149.           operand allows conditional page break. 
  150.  
  151.  
  152. Format:   PAGE                     Advances to next page after 
  153.                                    printing current line
  154.  
  155.           PAGE(3)                  Advances to next page if there 
  156.                                    are fewer than three lines left 
  157.                                    on the current page
  158.  
  159. Remarks:  When PAGE is entered into a cell, it displays as [PAGE] 
  160.           on the screen. When PAGE(n) is entered, [PAGE(n)] is 
  161.           displayed on the screen. The value n must be a positive 
  162.           integer between 0 and 99. It cannot be a cell reference 
  163.           or formula.
  164.  
  165.           When a spreadsheet is printed, a line count is kept 
  166.           internally, to count the number of lines printed on a 
  167.           page. When this line counter reaches its maximum (the 
  168.           "lines per page" value specified in /Print), a "page 
  169.           break" occurs. At page break time, the following things 
  170.           happen:
  171.  
  172.           * If footings are specified, paper is advanced to the
  173.             footing area, and footings are printed 
  174.  
  175.           * A form feed is sent to the printer, to advance to top 
  176.             of page 
  177.  
  178.           * If Pause option is specified, a message is given to 
  179.             press ENTER to print the next page
  180.  
  181.           * Line counter is reset to zero
  182.  
  183.           * If Border option is specified, top borders are printed
  184.  
  185.  
  186. 96
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199. -
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.                                                              PAGE
  208.  
  209.  
  210.  
  211.           * If headings are specified, they are printed, and the 
  212.             line counter is incremented accordingly
  213.  
  214.           When PAGE is encountered during printing, the line it 
  215.           appears in is printed first, then the steps listed above 
  216.           are followed. 
  217.  
  218.           When PAGE(n) is encountered during printing, the line it 
  219.           appears in is printed first, then the current line count 
  220.           is compared to n. If there is not enough room on the page 
  221.           for n more lines, the page break steps listed above are 
  222.           followed. If there is enough room, the PAGE(n) function 
  223.           is ignored. 
  224.  
  225.           Note that PAGE(n) refers to the next n lines. The current
  226.           line PAGE or PAGE(n) appears in is printed on the 
  227.           current page. 
  228.  
  229.           PAGE and PAGE(n) can be the second or third operands in 
  230.           an IF function, allowing page breaks to be even further 
  231.           controlled by data in the spreadsheet. The PAGE function 
  232.           cannot be used in a formula. 
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.                                                                    97
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265. -
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273. PAGE
  274.  
  275.  
  276. Example:  A spreadsheet lists an employee, then has five lines of 
  277.           information about that employee. If the bottom of the 
  278.           page is approaching, we don't want to print only one or 
  279.           two lines of data on the current page, then print the 
  280.           last four or five lines on the next page. By adding a 
  281.           PAGE(5) function ahead of each employee, all five of 
  282.           their lines will always appear on the same page. The 
  283.           screen might look like this: 
  284.  
  285.                             A          B          C          
  286.                        1  [PAGE(5)]
  287.                        2  Employee A  - line 1
  288.                        3                line 2
  289.                        4                line 3 
  290.                        5                line 4
  291.                        6                line 5
  292.                        7  [PAGE(5)]
  293.                        8  Employee B  - line 1
  294.                        9              - line 2 
  295.                                         (etc.)
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318. 98
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331. -
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.                                                       PAYMENT
  340.  
  341.  
  342.  
  343.                          PAYMENT Function
  344.  
  345.  
  346. Purpose:  Computes the payment amount per period for a given 
  347.           principal amount, rate and number of periods. (See also 
  348.           PRINCIPAL, RATE and PERIODS functions.)
  349.  
  350.          
  351. Format:   PAYMENT(principal,rate,periods)
  352.  
  353.           PAYMENT(1000,.01,12)        Returns 88.85 
  354.  
  355.           PAYMENT(A1,.18/12,36)       If A1 is 1000, returns 36.16 
  356.  
  357.           PAYMENT(B1,100,A1*2/A5)     Resolves the formula, then 
  358.                                       computes the payment
  359.  
  360.  
  361. Remarks:  PAYMENT(x,y,z) can be entered into a cell, or the 
  362.           PAYMENT function can be used in a formula. 
  363.                      
  364.           All three operands must be specified. The rate operand 
  365.           is the rate per period. The period length needs to be 
  366.           consistent; i.e. in the first example above, the term is 
  367.           twelve months, so the rate is a monthly rate, and 
  368.           the payment amount returned is the payment per month. 
  369.  
  370.           One note on amortizations: as the truth-in-lending laws 
  371.           so vividly indicate, there are many ways to amortize. If 
  372.           CALC comes up with a different answer than your bank, 
  373.           it may be because of their compounding method, or because 
  374.           of rounding. Generally, CALC's calculation method is 
  375.           mathematically sound, and yields the same result as an 
  376.           interest amortization table. 
  377.  
  378. Example:  A local used car dealer offers a time-payment plan. A 
  379.           $5,000 car requires no down payment, and requires 36 
  380.           monthly payments at 18% annual interest. Compute the 
  381.           monthly payment. In any cell, enter:
  382.  
  383.  
  384.                                                                    99
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397. -
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405. PAYMENT
  406.  
  407.  
  408.  
  409.                        PAYMENT(5000,.18/12,36) 
  410.  
  411.           The cell displays 180.77, which is the monthly payment. 
  412.           The interest rate of .18 was an annual rate, so we used 
  413.           .18/12 for the monthly rate. 
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450. 100
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463. -
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.                                                         PERIODS
  472.  
  473.  
  474.  
  475.                            PERIODS Function
  476.  
  477.  
  478. Purpose:  Computes the term of a loan (number of periods) for a 
  479.           given principal amount, payment and interest rate. (See 
  480.           also PRINCIPAL, PAYMENT and RATE functions.)
  481.  
  482.          
  483. Format:   PERIODS(principal,payment,rate)
  484.  
  485.           PERIODS(1000,88.85,.01)     Returns 12
  486.  
  487.           PERIODS(A1,36.16,.18/12)    If A1 is 1000, returns 36 
  488.  
  489.           PERIODS(B1,100,A1*2/A5)     Resolves the formula, then 
  490.                                       computes the periods
  491.  
  492.  
  493. Remarks:  PERIODS(x,y,z) can be entered into a cell, or the 
  494.           PERIODS function can be used in a formula. TERM is an 
  495.           alternate name for the PERIODS function.
  496.                      
  497.           All three operands must be specified. The rate operand 
  498.           is the rate per period. The payment and rate need to be 
  499.           consistent; i.e. in the first example above, the rate is 
  500.           a monthly rate, and the payment amount is monthly, so the 
  501.           number returned is the number of months.
  502.  
  503.           One note on amortizations: as the truth-in-lending laws 
  504.           so vividly indicate, there are many ways to amortize. If 
  505.           CALC comes up with a different answer than your bank, 
  506.           it may be because of their compounding method, or because 
  507.           of rounding. Generally, CALC's calculation method is 
  508.           mathematically sound, and yields the same result as an 
  509.           interest amortization table. 
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.                                                                   101
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529. -
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537. PERIODS
  538.  
  539.  
  540. Example:  A local used car dealer offers a time-payment plan. A 
  541.           $5,000 car requires no down payment, and has monthly 
  542.           payments of 180.77 at 18% annual interest. Compute the 
  543.           number of months of payments. In any cell, enter:
  544.  
  545.                      PERIODS(5000,180.77,.18/12) 
  546.  
  547.           The cell displays 36, which is the number of months. The 
  548.           interest rate of .18 was an annual rate, so we used 
  549.           .18/12 for the monthly rate. 
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582. 102
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595. -
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.                                                      PRINCIPAL
  604.  
  605.  
  606.  
  607.                           PRINCIPAL Function
  608.  
  609.  
  610. Purpose:  Computes the principal amount for a given payment amount, 
  611.           interest rate and number of periods. (See also PAYMENT, 
  612.           RATE and PERIODS functions.)
  613.  
  614.          
  615. Format:   PRINCIPAL(payment,rate,period)
  616.  
  617.           PRINCIPAL(88.85,.01,12)     Returns 1000 
  618.  
  619.           PRINCIPAL(A1,.18/12,36)     If A1 is 36.16, returns 1000
  620.  
  621.           PRINCIPAL(B1,100,A1*2/A5)   Resolves the formula, then 
  622.                                       computes the principal
  623.  
  624.  
  625. Remarks:  PRINCIPAL(x,y,z) can be entered into a cell, or the 
  626.           PRINCIPAL function can be used in a formula. This 
  627.           function can also be spelled PRINCIPLE.
  628.                      
  629.           All three operands must be specified. The payment, rate 
  630.           and periods need to be consistent; i.e. in the first 
  631.           example above, the rate is a monthly rate, the payment 
  632.           amount is monthly, and the periods are months.
  633.  
  634.           One note on amortizations: as the truth-in-lending laws 
  635.           so vividly indicate, there are many ways to amortize. If 
  636.           CALC comes up with a different answer than your bank, 
  637.           it may be because of their compounding method, or because 
  638.           of rounding. Generally, CALC's calculation method is 
  639.           mathematically sound, and yields the same result as an 
  640.           interest amortization table. 
  641.  
  642. Example:  A local used car dealer offers a time-payment plan. A 
  643.           car requires no down payment, and has monthly payments of 
  644.           180.77 for 36 months at 18% annual interest. Compute the 
  645.           purchase price of the car. In any cell, enter:
  646.  
  647.  
  648.                                                                   103
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661. -
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669. PRINCIPAL
  670.  
  671.  
  672.  
  673.                      PRINCIPAL(180.77,.18/12,36)
  674.  
  675.           The cell displays 5000 which is the principal amount, or 
  676.           purchase price of the car. Note that the interest rate of 
  677.           .18 was annual, so we used .18/12 for the monthly rate. 
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714. 104
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727. -
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.                                                            PRINT
  736.  
  737.  
  738.  
  739.                          PRINT Command (/P)
  740.  
  741.  
  742. Purpose:  Prints a hard copy of the spreadsheet on the printer.
  743.  
  744.  
  745. Prompts:  Enter /P and you will be prompted:
  746.          
  747.           Enter range to be printed (or ENTER for all).
  748.  
  749.           The word ALL appears on the entry line. To print the 
  750.           complete spreadsheet, press ENTER. To print only part of 
  751.           the spreadsheet, type the coordinates as a range (for 
  752.           example: A1:G15), then press ENTER or comma. The next 
  753.           prompt is:
  754.  
  755.           Enter page width (number of columns across printer).
  756.  
  757.           The number 80 will appear on the entry line. If the 
  758.           printer is set up to accomodate an eighty-character 
  759.           printout, just press ENTER. Otherwise, enter the width of 
  760.           the printer page. The next prompt is:
  761.  
  762.           Enter page length (number of lines per page).
  763.  
  764.           The number 58 will appear on the entry line. If you are 
  765.           printing on normal eleven-inch paper, at six lines per 
  766.           inch, press ENTER. Otherwise, figure out how many lines 
  767.           will print on a page and enter it. The next prompt is:
  768.          
  769.           D=dbl space, S=setup, P=pause, C=contents, M=mult copies
  770.           B=border, O=offset, T=top margin, H=headings, F=footings
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.                                                                   105
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793. -
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801. PRINT
  802.  
  803.  
  804.           If no special options are desired, press ENTER. Otherwise 
  805.           enter one or more option characters:
  806.  
  807.           D - Double space the printout. 
  808.           S - Prompt for printer setup codes. (Details below.)
  809.           P - Pause after printing each page. 
  810.           C - Print contents and attributes of cells. 
  811.           M - Print multiple copies of the report (default 1).
  812.           B - Display row and column borders on the printed copy. 
  813.           O - Override default left margin width (default 7).
  814.           T - Override default top margin height (default 2). 
  815.           H - Prompt for heading line range. 
  816.           F - Prompt for footing line range. 
  817.  
  818.           The last prompt from the Print command is:
  819.  
  820.                           Printer or Disk.
  821.  
  822.           Specify P to send the output directly to the printer. If 
  823.           D is specified, you are prompted:
  824.  
  825.                          Enter the file name.
  826.  
  827.           Enter a valid MSDOS file name, and the printed output 
  828.           will be written to a file by that name. You can print it 
  829.           later with the MSDOS "COPY filename PRN:" command, 
  830.           or access it with your word processor for further 
  831.           editing. 
  832.  
  833.  
  834. Remarks:  CALC prints an output page only as wide as the 
  835.           specified "page width". When the spreadsheet has been 
  836.           completely printed for that width, CALC checks to 
  837.           see if some of your spreadsheet was not printed. If so, 
  838.           CALC makes a second pass, printing the right-hand 
  839.           side of the spreadsheet. If it is extremely wide, then 
  840.           CALC continues making passes through the spreadsheet 
  841.           until it is all printed. These pages can then be attached 
  842.           to produce a wide spreadsheet on a narrow printer.
  843.  
  844.  
  845.  
  846. 106
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859. -
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.                                                            PRINT
  868.  
  869.  
  870.           When CALC asks for the "page width" (number of 
  871.           columns across the printer), it is asking for a width 
  872.           that: 
  873.  
  874.              1. your printer is physically capable of printing;
  875.              2. won't run off the right edge of the paper; and
  876.              3. takes character size into account.
  877.  
  878.           Since CALC has no way of determining any of these 
  879.           three factors, it needs some help. If your printer is 
  880.           capable of printing only 80 characters in 10 cpi mode, 
  881.           and you specify a page width of 96, CALC sends  
  882.           96 characters at a time to the printer. The effect is a 
  883.           "double-spaced" report, with the data from the right side 
  884.           of the report "wrapped around" onto a second line. If a 
  885.           page width of 80 had been specified, CALC would print 
  886.           the left 80 characters of the report, then skip to a new 
  887.           page and print the rest of the characters. The two pages 
  888.           can then be taped together as a wide report. 
  889.  
  890.           PRINTER SETUP
  891.           There are hundreds of brands of printers, and most of 
  892.           them have their own unique code structure for setting 
  893.           options such as characters per inch, lines per inch, 
  894.           double-wide, and so forth. The standard version of 
  895.           CALC is configured for the IBM/Epson printer, because 
  896.           more than 65% of the CALC users have an Epson or 
  897.           compatible. The /Configure option supports three other 
  898.           brands of printers, which account for another 20% of 
  899.           CALC users. Generic support for other printers has 
  900.           been provided in the .PRO configuration options of 
  901.           CALC. The section titled Customizing CALC 
  902.           gives more information. In addition, there is the "Setup" 
  903.           option of the /Print command. If "S" was specified above, 
  904.           the following prompt is given next:
  905.  
  906.                Enter printer setup codes, then ENTER.
  907.          
  908.           For some printers, the setup codes have been built into 
  909.           CALC's /Configure routines. The standard diskette 
  910.  
  911.  
  912.                                                                   107
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925. -
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933. PRINT
  934.  
  935.  
  936.           comes configured for Epson (IBM) printers. The setup 
  937.           prompt will have a second line saying: 
  938.  
  939.           Epson printers: "A"=10 cpi, "B"=12 cpi, "C"=17 cpi.
  940.  
  941.           If your CALC has been configured for another printer, 
  942.           that printer's name will appear instead of Epson. If the 
  943.           named printer matches your printer, you can alternately 
  944.           enter the letters A, B or C to set your printer spacing 
  945.           to 10, 12 or 17 characters per inch, respectively. 
  946.  
  947.           If CALC has not been configured for your printer, you 
  948.           can still send setup codes to the printer. Just Press any 
  949.           key (other than A, B or C) at this time, and its ASCII 
  950.           value will be sent directly to the printer. For example, 
  951.           if the sequence "ESC,M" sets your printer to twelve 
  952.           characters per inch, press the Escape key, then the 
  953.           capital M. When all the setup codes have been entered, 
  954.           press ENTER. 
  955.  
  956.           Some printer setup codes are special ASCII characters. If 
  957.           you need to send an ASCII 15 to your printer, for 
  958.           example, there are two ways to do this:
  959.  
  960.           1. Hold down CTRL and press O (the letter). CTRL-O at 
  961.              the keyboard generates ASCII 15. (O is the 15th letter 
  962.              of the alphabet. CTRL-A generates ASCII 1, etc.)
  963.  
  964.           2. Hold down the ALT key, and type the number you want 
  965.              sent on the numeric keypad. For example, to send an 
  966.              ASCII 15, hold down ALT, press the one then the five 
  967.              key, and let go of ALT. An ASCII 15 is sent. Be sure 
  968.              to type the number on the numeric keypad, and not on 
  969.              the numeric row across the top of the keyboard. 
  970.  
  971.           There are two other methods for getting setup codes to 
  972.           your printer. The easiest way is to just type the special 
  973.           codes into a text string at the beginning of your 
  974.           spreadsheet. Type a quotation mark, then type the codes, 
  975.           using either of the methods above (Ctrl key or Alt key). 
  976.  
  977.  
  978. 108
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991. -
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.                                                            PRINT
  1000.  
  1001.  
  1002.           Another method is the TRANSLATE PRINT x TO yyy 
  1003.           configuration option in the .PRO file. See the section 
  1004.           titled Customizing CALC for more information. 
  1005.  
  1006. Example:  EXAMPLE #1: The spreadsheet is only four columns wide, 
  1007.           and 99 lines long. No options are required. Enter:
  1008.  
  1009.           /P (ENTER) (ENTER) (ENTER) (ENTER) (ENTER) (ENTER)
  1010.  
  1011.           By pressing ENTER on all six prompts, you tell 
  1012.           CALC to use its defaults for all prompts: 
  1013.  
  1014.               * The entire spreadsheet is printed.
  1015.  
  1016.               * The page width is 80 characters, which is adequate 
  1017.                 for this narrow spreadsheet. 
  1018.          
  1019.               * The page length default is 58 lines printed per 
  1020.                 page. 
  1021.  
  1022.               * Borders are not printed, because the B option was 
  1023.                 not specified. 
  1024.          
  1025.               * The printout is single spaced.
  1026.  
  1027.               * There is a 7 character left margin (page offset).
  1028.  
  1029.               * There is a two space top margin (two blank lines 
  1030.                 are printed at the top of each page).
  1031.  
  1032.               * One copy of the spreadsheet is printed.
  1033.  
  1034.               * No headings or footings are printed. 
  1035.  
  1036.               * The output goes directly to the printer.
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.                                                                   109
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057. -
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065. PRINT
  1066.  
  1067.  
  1068.  
  1069.           EXAMPLE #2: The spreadsheet is 230 characters wide. The 
  1070.           printer has wide paper in it, and with compressed print 
  1071.           can print 232 characters across. The report is to be 
  1072.           double-spaced. Enter:
  1073.  
  1074.                           /P 232,,DO (ENTER)
  1075.  
  1076.           Since you entered an option of "O", CALC prompts for 
  1077.           a page offset. Enter 2. Since the printer will only 
  1078.           handle 232 characters, and the spreadsheet is 230 
  1079.           characters wide, you can only afford a two character left 
  1080.           margin. If you didn't change the offset, the last five 
  1081.           characters of the spreadsheet would print on a second 
  1082.           page.
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110. 110
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123. -
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.                                                              QUIT
  1132.  
  1133.  
  1134.  
  1135.                           QUIT Command (/Q)
  1136.  
  1137.  
  1138. Purpose:  Exits from CALC to the operating system. 
  1139.  
  1140.  
  1141. Prompts:  If the spreadsheet currently in memory has not been 
  1142.           saved, it will be lost. Use the Save Command (/S) to save 
  1143.           the spreadsheet before exiting. To prevent accidental 
  1144.           loss of a spreadsheet, CALC asks for confirmation if 
  1145.           data has been altered in the spreadsheet area: 
  1146.  
  1147.           The current spreadsheet was changed but not saved.
  1148.           Enter Y to quit. Enter N to return to spreadsheet.
  1149.           Enter S to save spreadsheet. 
  1150.  
  1151.           If "S" is entered, control is passed to the /Save 
  1152.           command. 
  1153.  
  1154.  
  1155. Remarks:  Normally CALC returns to DOS after /Q. However, 
  1156.           there is a .PRO file option called ON EXIT RUN program
  1157.           which invokes an .EXE file on exit from CALC. See 
  1158.           the section titled "Customizing CALC" for more 
  1159.           information.
  1160.  
  1161.  
  1162. Example:  You have saved the current spreadsheet and want to exit 
  1163.           so you can run another program. Enter:
  1164.  
  1165.                                 /Q 
  1166.  
  1167.           Since you just saved the spreadsheet, and have made no 
  1168.           further changes on it, CALC ends. The screen is 
  1169.           cleared, and at the top of the screen is the DOS 
  1170.           prompt:
  1171.  
  1172.                                 A>
  1173.  
  1174.  
  1175.  
  1176.                                                                   111
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189. -
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197. RANDOM
  1198.  
  1199.  
  1200.  
  1201.                              RANDOM Function
  1202.  
  1203. Purpose:  Returns a random number between zero and one.  
  1204.  
  1205.          
  1206. Format:   RANDOM                 Returns a random number 
  1207.                                  between 0 and 1
  1208.  
  1209.  
  1210. Remarks:  This function is useful in some statistical applications 
  1211.           and in sequencing events randomly, such as in scheduling 
  1212.           sporting events. 
  1213.  
  1214.           To compute a random number in the range 0 to 25, put 25 
  1215.           into A1, then enter the following formula in another 
  1216.           cell:  
  1217.  
  1218.                         INT(RANDOM * (A1+1))
  1219.  
  1220.           To compute a random number between 0 and n (any positive 
  1221.           integer), enter n in A1 and use the formula above. 
  1222.  
  1223.                    
  1224. Example:  EXAMPLE #1: Compute a random number between 1 and 52. 
  1225.           This number might identify the week in a year, or it 
  1226.           might identify a card in a deck of cards. Enter the 
  1227.           following formula in any cell:
  1228.  
  1229.                        INT(RANDOM * (51+1)) + 1
  1230.  
  1231.  
  1232.           EXAMPLE #2: A spreadsheet contains a list of sporting 
  1233.           events, listed one per line in lines 5 to 50. We want to 
  1234.           randomly sort them. Start by entering:
  1235.  
  1236.                           RANDOM * 1000 
  1237.            
  1238.           in cell F5, then replicate the formula from F5 to F6:F50. 
  1239.           Now use the /Arrange command to sort F5:F50. It doesn't 
  1240.  
  1241.  
  1242. 112
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255. -
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.                                                          RANDOM
  1264.  
  1265.  
  1266.           matter if the sort is ascending or descending, and no 
  1267.           options are required, so just type:
  1268.  
  1269.                  /A C F5:F50 (ENTER) (ENTER)
  1270.  
  1271.           and the lines are sorted in a random sequence.
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306.  
  1307.  
  1308.                                                                   113
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321. -
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329. RATE
  1330.  
  1331.  
  1332.  
  1333.                                RATE Function
  1334.  
  1335. Purpose:  Computes an interest rate for a given principal amount, 
  1336.           payment and number of periods. (See also PRINCIPAL, 
  1337.           PAYMENT and PERIODS functions.)
  1338.          
  1339. Format:   RATE(principal,payment,term)
  1340.  
  1341.           RATE(1000,88.85,12)         Returns .01 (1% rate)
  1342.  
  1343.           RATE(A1,36.16,36) * 12      If A1 contains 1000, returns 
  1344.                                       .18 (18% rate)
  1345.  
  1346.           RATE(B1,100,A1*2/A5)        Resolves the formula, then 
  1347.                                       computes the rate
  1348.  
  1349. Remarks:  RATE(x,y,z) can be entered into a cell, or the RATE 
  1350.           function can be used in a formula. INTEREST is an 
  1351.           alternate name for the RATE function.
  1352.                                          
  1353.           All three operands must be specified. The payment operand 
  1354.           is the payment per period. The period length needs to be 
  1355.           consistent; i.e. in the first example above, the term is 
  1356.           twelve months, so the payment is a monthly payment, and 
  1357.           the interest rate returned is the rate per month, 
  1358.           compounded monthly. 
  1359.  
  1360.           One note on amortizations: as the truth-in-lending laws 
  1361.           so vividly indicate, there are many ways to compute 
  1362.           interest. If CALC comes up with a different answer 
  1363.           than your bank, it may be because of their compounding 
  1364.           method, or because of rounding. Generally, CALC's 
  1365.           calculation method is mathematically sound, and yields 
  1366.           the same result as an interest amortization table. 
  1367.  
  1368. Example:  A local used car dealer offers a time-payment plan. A 
  1369.           $5,000 car requires no down payment, and has monthly 
  1370.           payments of $180.77 per month for 36 months. Compute 
  1371.           the effective interest rate. In any cell, enter: 
  1372.  
  1373.  
  1374. 114
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387. -
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.                                                             RATE
  1396.  
  1397.  
  1398.  
  1399.                      RATE(5000,180.77,36) * 12 
  1400.  
  1401.           The cell displays .18, indicating the interest rate is 18 
  1402.           percent. Formatting the cell for three decimal places 
  1403.           shows the number as .180, so it is exactly 18%. 
  1404.  
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.  
  1416.  
  1417.  
  1418.  
  1419.  
  1420.  
  1421.  
  1422.  
  1423.  
  1424.  
  1425.  
  1426.  
  1427.  
  1428.  
  1429.  
  1430.  
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.                                                                   115
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453. -
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461. REPLICATE 
  1462.  
  1463.  
  1464.  
  1465.                          REPLICATE Command (/R)
  1466.  
  1467.  
  1468. Purpose:  Copies data from a cell, a row, a column, a range of rows, 
  1469.           a range of columns, or a block of cells to another range 
  1470.           of cells, and optionally adjusts the cell coordinates in 
  1471.           formulas. The format attributes such as decimals, commas, 
  1472.           etc. are copied along with the data. This powerful 
  1473.           command allows cells to be replicated over and over, with 
  1474.           formulas adjusted, saving considerable data entry. 
  1475.  
  1476.  
  1477. Prompts:  Enter /R and you are prompted:
  1478.  
  1479.               Enter the "from" range.
  1480.               Examples: A5   G   22   B:J   5:12   A2:J20
  1481.  
  1482.           As the examples show, you may enter a single cell, a 
  1483.           single column, a range of columns, a single line, a range 
  1484.           of lines, or a block of cells. The next prompt is:
  1485.  
  1486.                       Enter the "to" range.
  1487.  
  1488.           Once again, enter a single cell, a single column, a range 
  1489.           of columns, a single line, a range of lines, or a block of 
  1490.           cells. If your ranges are valid, the data is moved from 
  1491.           the "from" range to the "to" range. If a formula is 
  1492.           encountered in the "from" range, an adjustment message is 
  1493.           given for each of the variables in the formula. For 
  1494.           example:
  1495.  
  1496.           Replicating cell A5. Adjust A3  Y or N? (or A for all)
  1497.  
  1498.           This sample message says that in the "from" cell A5 it 
  1499.           found a formula. That formula contained a reference to 
  1500.           A3. If you reply Y to this message, each replication is 
  1501.           adjusted so A3 becomes A4, then A5, then A6, etc. If you 
  1502.  
  1503.  
  1504.  
  1505.  
  1506. 116
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519. -
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.                                                   REPLICATE 
  1528.  
  1529.  
  1530.           reply N to this message, all replications refer to A3, 
  1531.           unchanged. See the examples below for more information.
  1532.  
  1533.  
  1534. Remarks:  A single cell may be replicated to a group of contiguous 
  1535.           cells, either across a row or down a column. Specify the 
  1536.           single cell as the "from" cell, then specify the range of 
  1537.           "to" cells, either across a row or down a column.
  1538.  
  1539.           A group of contiguous cells may be replicated to another 
  1540.           group of cells. If the "from" group are all in a row, 
  1541.           then the "to" group must either be all in a row, or they 
  1542.           must be a "block" of cells. To illustrate the latter 
  1543.           case, consider this example: 
  1544.  
  1545.                         A       B       C       D       E
  1546.                 1             Qtr 1   Qtr 2   Qtr 3   Qtr 4
  1547.                 2                                            
  1548.                 3  Sales     (from)    (to)    (to)    (to) 
  1549.                 4  CGS       (from)    (to)    (to)    (to)
  1550.                 5  Gross     (from)    (to)    (to)    (to)
  1551.  
  1552.           Values or formulas have been entered into column B for 
  1553.           the first quarter, and now you want to replicate those 
  1554.           formulas to the next three quarters. To accomplish this, 
  1555.           enter: 
  1556.          
  1557.                          /R B3:B5,C3:E5 (ENTER)
  1558.          
  1559.           The "from" range, B3:B5 is replicated to each of the 
  1560.           columns C, D and E. In this example each of the values in 
  1561.           B3 through B5 are copied to the three adjacent columns. 
  1562.           If there are any formulas in B3:B5, CALC asks 
  1563.           for adjustment (see example below).
  1564.  
  1565.           The replicate command may be used to copy values, 
  1566.           formulas or text without adjustment. Just reply "N" to 
  1567.           any "adjust" messages. 
  1568.  
  1569.  
  1570.  
  1571.  
  1572.                                                                   117
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585. -
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593. REPLICATE 
  1594.  
  1595.  
  1596. Example:  EXAMPLE #1: Referring to the example above in the 
  1597.           Remarks section, let's look at the contents of each cell. 
  1598.           Suppose the contents prior to replicating are:
  1599.  
  1600.                         A       B       C       D       E
  1601.                 1             Qtr 1   Qtr 2   Qtr 3   Qtr 4
  1602.                 2                                            
  1603.                 3  Sales     250000 
  1604.                 4  CGS        B3*.7 
  1605.                 5  Gross      B3-B4 
  1606.  
  1607.           Performing the replicate command discussed earlier:
  1608.  
  1609.                         /R B3:B5,C3:E5 (ENTER)
  1610.  
  1611.           causes the contents of B3, B4 and B5 to be copied to 
  1612.           the next three columns. But in the process of copying, 
  1613.           CALC issues three messages:
  1614.  
  1615.           Replicating cell B4. Adjust B3  Y or N? (or A for all)
  1616.           Replicating cell B5. Adjust B3  Y or N? (or A for all)
  1617.           Replicating cell B5. Adjust B4  Y or N? (or A for all)
  1618.  
  1619.           In this example, reply "Y" to all three of the messages. 
  1620.           (Or reply "A" to the first message, and the other two 
  1621.           messages will not be given.) The result is:
  1622.  
  1623.                         A       B       C       D       E
  1624.                 1             Qtr 1   Qtr 2   Qtr 3   Qtr 4
  1625.                 2                                            
  1626.                 3  Sales     250000  250000  250000  250000
  1627.                 4  CGS        B3*.7   C3*.7   D3*.7   E3*.7
  1628.                 5  Gross      B3-B4   C3-C4   D3-D4   E3-E4
  1629.  
  1630.  
  1631.           Without the adjustment, the formulas in rows 4 and 5 
  1632.           would still be pointing at column B. By adjusting, they 
  1633.           now point to their respective columns.
  1634.  
  1635.  
  1636.  
  1637.  
  1638. 118
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651. -
  1652.  
  1653.  
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.                                                   REPLICATE 
  1660.  
  1661.  
  1662.           EXAMPLE #2: At the beginning of this manual in the 
  1663.           section titled "A Brief Tutorial" there was an exercise 
  1664.           which computed interest on a savings account for three 
  1665.           years. Now let's use the Replicate Command to carry the 
  1666.           computation out for twenty years. The original 
  1667.           spreadsheet looked like this:
  1668.  
  1669.                      A          B          C          D      
  1670.               1 
  1671.               2            Compute Annual Interest
  1672.               3
  1673.               4            Rate:             5.50
  1674.               5
  1675.               6            Year         Balance   Interest
  1676.               7            1983          5,000.00     275.00
  1677.               8            1984          5,275.00     290.13
  1678.               9            1985          5,565.13     306.08
  1679.               10                                             
  1680.               11           Totals        5,871.21     871.21
  1681.  
  1682.           This time, rather than type in all the data for every 
  1683.           year, let's set up the first and second detail lines:
  1684.  
  1685.                     B7   1983  (A value instead of text.)
  1686.                     C7   5000
  1687.                     D7   C7*C4/100
  1688.                     B8   B7+1  (A formula instead of text.)
  1689.                     C8   C7+D7
  1690.                     D8   C8*C4/100
  1691.  
  1692.           Notice that the year number is set up as a value instead 
  1693.           of text. This allows it to be incremented by one for the 
  1694.           next twenty years, rather than typing in the year numbers 
  1695.           twenty times. Of course the years will be right justified 
  1696.           and will contain commas and decimals, so use the /F 
  1697.           command to format column B as follows:
  1698.  
  1699.                     /F B1:B256,J,L    (left justify)
  1700.                     /F B1:B256,D,0    (no decimals)
  1701.                     /F B1:B256,C,N    (no commas)
  1702.  
  1703.  
  1704.                                                                   119
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717. -
  1718.  
  1719.  
  1720.  
  1721.  
  1722.  
  1723.  
  1724.  
  1725. REPLICATE 
  1726.  
  1727.  
  1728.  
  1729.           Now replicate row 8. Twenty years will go all the way 
  1730.           down to line 26. The command looks like this:
  1731.  
  1732.                           /R B8:D8,B9:D26
  1733.  
  1734.           This Replicate Command takes a little longer, because of 
  1735.           its size. During the Replicate there are five "adjust" 
  1736.           messages:
  1737.  
  1738.           Replicating cell B8. Adjust B7  Y or N? (or A for all)
  1739.           Replicating cell C8. Adjust C7  Y or N? (or A for all)
  1740.           Replicating cell C8. Adjust D7  Y or N? (or A for all)
  1741.           Replicating cell D8. Adjust C8  Y or N? (or A for all)
  1742.           Replicating cell D8. Adjust C4  Y or N? (or A for all)
  1743.  
  1744.           Here is a case where adjustment is required on all but 
  1745.           one of the fields: the last one. If you responded "A" for 
  1746.           all, or "Y" to all these messages, you would get some 
  1747.           strange results. C4 is the interest rate field, which is 
  1748.           a fixed field at the top of the spreadsheet. The interest 
  1749.           rate is going to stay in C4 forever. So you must respond 
  1750.           "N" to the last "adjust" message, or the Replicate 
  1751.           command will use a different (and unpredictable) interest 
  1752.           for every year: C4, C5, C6, C7, etc. 
  1753.  
  1754.           So give it four Y's and an N. Now the replicate is 
  1755.           complete. In the tutorial there was a "Totals" line. So, 
  1756.           at B28 enter the text "Totals", at C28 enter the formula 
  1757.           C26+D26, and at D28 enter the formula SUM(D7:D26). The  
  1758.           spreadsheet recalculates and the interest for 20 years 
  1759.           is displayed.    
  1760.  
  1761.  
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770. 120
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783. -
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.                                                            ROUND
  1792.  
  1793.  
  1794.  
  1795.                             ROUND Function
  1796.  
  1797.  
  1798. Purpose:  Rounds a formula or value to a specified number of 
  1799.           decimal places. 
  1800.  
  1801.  
  1802. Format:   ROUND(1.1234,2)       Returns 1.12
  1803.          
  1804.           ROUND(A1,2)           If A1 = 1.125, returns 1.13  
  1805.          
  1806.           ROUND(A1*2/B5,A6)     Resolves formula, then rounds its 
  1807.                                 result
  1808.  
  1809.          
  1810. Remarks:  Rounding is automatically done by CALC, when 
  1811.           displaying a number in a cell. A more common means of 
  1812.           rounding is to use /Format and simply change the number 
  1813.           of decimals displayed on the screen. 
  1814.  
  1815.           However, there are occasional computations which require 
  1816.           rounding to be performed in-line. Or if your CALC 
  1817.           has been customized to default to floating decimals, the 
  1818.           ROUND function is useful for controlling the maximum 
  1819.           number of decimals displayed. 
  1820.            
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829.  
  1830.  
  1831.  
  1832.  
  1833.  
  1834.  
  1835.  
  1836.                                                                   121
  1837.  
  1838.  
  1839.  
  1840.  
  1841.  
  1842.  
  1843.  
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849. -
  1850.  
  1851.  
  1852.  
  1853.  
  1854.  
  1855.  
  1856.  
  1857. SAVE
  1858.  
  1859.  
  1860.  
  1861.                           SAVE Command (/S)
  1862.  
  1863.  
  1864. Purpose:  Saves a spreadsheet file on disk so it can be retrieved 
  1865.           later for altering or printing. Files are usually in 
  1866.           CALC spreadsheet format, but /Save can also write DIF 
  1867.           files and comma-delimited ASCII (Mail-merge) files.
  1868.  
  1869. Prompts:  Enter /S. The first prompt is:
  1870.  
  1871.                  Enter the drive and path (optional).
  1872.  
  1873.           If you are saving the spreadsheet to the default drive 
  1874.           and path, press ENTER. Otherwise, enter any valid drive 
  1875.           and path, then press ENTER. There is a brief pause, 
  1876.           then a window appears listing all the files with an 
  1877.           extension of CAL. The second prompt is displayed:
  1878.  
  1879.                          Enter the file name.
  1880.  
  1881.           If this spreadsheet had been loaded earlier, then its name 
  1882.           appears as the default. To save it with the same name, 
  1883.           just press ENTER. If you want to save the file with the 
  1884.           name of another existing spreadsheet, use the down arrow 
  1885.           or up arrow to select a file name. Or type the file name 
  1886.           instead, CALC saves the currently displayed spreadsheet 
  1887.           onto disk, giving it the name you specified. 
  1888.  
  1889.           If the file name has an extension of .DIF, the file is 
  1890.           saved in DIF (Data Interchange Format) format. 
  1891.  
  1892.           If the file name has an extension of .WS, the file is 
  1893.           saved in comma-delimited ASCII format, sometimes 
  1894.           called Mail-merge format. Each cell across the specified 
  1895.           cell range is written as either a comma (if it is empty), 
  1896.           a number followed by a comma (if it is a value or 
  1897.           formula), or a text string enclosed in quotation marks 
  1898.           (if it is text). At the end of each line, a carriage 
  1899.           return/line feed is written. Quotation marks are blanked 
  1900.  
  1901.  
  1902. 122
  1903.  
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915. -
  1916.  
  1917.  
  1918.  
  1919.  
  1920.  
  1921.  
  1922.  
  1923.                                                              SAVE
  1924.  
  1925.  
  1926.           in text fields. This is a standard technique for saving 
  1927.           sequential data. 
  1928.  
  1929.           Note that neither DIF nor WS format have a means of 
  1930.           handling formulas; they are strictly text and value 
  1931.           oriented. So if you save a spreadsheet in DIF or WS 
  1932.           format, it is a good idea to keep a backup copy of the 
  1933.           spreadsheet in CALC spreadsheet format, so formulas 
  1934.           and formatting options are saved. 
  1935.  
  1936.           Some examples of valid file names are:
  1937.  
  1938.                          LOAN1
  1939.                          B:WORKSHT5.OLD
  1940.                          X
  1941.                          A:HOMEWRK.A
  1942.                          ADDRESS.WS
  1943.                          TEST.DIF
  1944.  
  1945.           After entering the file name, press ENTER. The file is 
  1946.           opened. If a file with that name already exists on the 
  1947.           disk, you are prompted: 
  1948.  
  1949.                  File exists. Overwrite or Backup?
  1950.  
  1951.           If the file with the same name can be erased, and this 
  1952.           one written over it, reply "O". If you want to save the 
  1953.           old file as a backup, reply "B" and it is renamed with an 
  1954.           extension of .BAK, then the current file will be saved. 
  1955.           To enter a different file name, press BACKSPACE and 
  1956.           CALC prompts you for a different name.  
  1957.  
  1958.           If the file being saved is a DIF or WS file, two extra 
  1959.           prompts are given. The first is:
  1960.  
  1961.               Enter the cell range to be saved (or ALL). 
  1962.  
  1963.           The default is ALL, but a block of cells can be specified 
  1964.           instead. To confine the data saved to three columns wide 
  1965.           and fifty records long, starting at C11, enter the range 
  1966.  
  1967.  
  1968.                                                                   123
  1969.  
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981. -
  1982.  
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989. SAVE
  1990.  
  1991.  
  1992.           C11:E60. 
  1993.  
  1994.           The second prompt asks: 
  1995.  
  1996.             Enter R to save by rows, C to save by columns.
  1997.  
  1998.           The default is R, since this processes one line at a 
  1999.           time, moving left to right across the columns, which is 
  2000.           the most common method. If you specify C, the file is 
  2001.           written one column at a time, moving down the lines, 
  2002.           effectively rotating it a quarter turn. 
  2003.  
  2004.  
  2005.           As the file is being saved, the cursor coordinate in the 
  2006.           lower left corner of the screen displays the progress. A 
  2007.           message appears saying Saving file; stand by . . .. 
  2008.           When this message goes away, the save is completed. The 
  2009.           contents, value and attributes of each cell are saved, as 
  2010.           well as the column widths, current cell cursor position, 
  2011.           current settings of the global options, and current 
  2012.           settings of the print options.
  2013.  
  2014.           If your computer has only one diskette drive, do not 
  2015.           attempt to /Save or /Load to drive B:. CALC requires 
  2016.           that the program diskette remain in the drive at all 
  2017.           times. The message file and the file overlay program are 
  2018.           both on drive A:, and are needed continually during the 
  2019.           loading process. If your system has only one drive and no 
  2020.           hard disk, you will need to save your files directly onto 
  2021.           your CALC working diskette in drive A:. 
  2022.  
  2023.  
  2024.  
  2025.  
  2026.  
  2027.  
  2028.  
  2029.  
  2030.  
  2031.  
  2032.  
  2033.  
  2034. 124
  2035.  
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043.  
  2044.  
  2045.  
  2046.  
  2047. -
  2048.  
  2049.  
  2050.  
  2051.  
  2052.  
  2053.  
  2054.  
  2055.                                                              SAVE
  2056.  
  2057.  
  2058. Example:  A spreadsheet has been completed and printed. It is to be 
  2059.           saved on disk for future reference. It is to be called
  2060.           "PAYABLES". Type: 
  2061.  
  2062.                          /S PAYABLES (ENTER)
  2063.  
  2064.           A month ago a spreadsheet with the same name was saved 
  2065.           on this disk. The message: File Exists. Overwrite or 
  2066.           Backup? appears. Since the new spreadsheet is an 
  2067.           updated version of old PAYABLES file, reply B. Last 
  2068.           month's PAYABLES file is renamed PAYABLES.BAK, 
  2069.           and the new spreadsheet is saved with the name 
  2070.           PAYABLES.
  2071.  
  2072.  
  2073.  
  2074.  
  2075.  
  2076.  
  2077.  
  2078.  
  2079.  
  2080.  
  2081.  
  2082.  
  2083.  
  2084.  
  2085.  
  2086.  
  2087.  
  2088.  
  2089.  
  2090.  
  2091.  
  2092.  
  2093.  
  2094.  
  2095.  
  2096.  
  2097.  
  2098.  
  2099.  
  2100.                                                                   125
  2101.  
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113. -
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121. SGN
  2122.  
  2123.  
  2124.  
  2125.                                SGN Function
  2126.  
  2127.  
  2128. Purpose:  Determines the sign of a number, and returns 1 if the 
  2129.           number is positive, 0 if the number is zero, or -1 if the 
  2130.           number is negative. The value is returned to the current 
  2131.           cell or formula. 
  2132.  
  2133.  
  2134. Format:   SGN(-35)            Returns -1. 
  2135.          
  2136.           SGN(A1)             If A1 = 35,  then SGN(A1) =  1  
  2137.                               If A1 = 0,   then SGN(A1) =  0 
  2138.                               If A1 = -35, then SGN(A1) = -1 
  2139.          
  2140.           SGN(A1*2/B5)        Resolves formula, then determines 
  2141.                               the sign of the result.
  2142.  
  2143.          
  2144. Remarks:  SGN(x) can be entered into a cell, and used as the cell 
  2145.           value; or the SGN function can be used in a formula, 
  2146.           and/or may have a formula as its argument.
  2147.            
  2148.  
  2149. Example:  A spreadsheet lists sales figures in column A. Then in 
  2150.           column B it assigns a value of 1 if the sales figure to 
  2151.           the left is below average, 2 if the figure equals the 
  2152.           average, and 3 if the figure is above the average. Enter 
  2153.           this formula into cell B1:
  2154.          
  2155.                        SGN(A1-AVERAGE(A1:A20))+2
  2156.  
  2157.           Use the Replicate command to copy the formula to cells 
  2158.           B1 through B20. 
  2159.  
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166. 126
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179. -
  2180.  
  2181.  
  2182.  
  2183.  
  2184.  
  2185.  
  2186.  
  2187.                                                                SIN
  2188.  
  2189.  
  2190.  
  2191.                               SIN Function
  2192.  
  2193.  
  2194. Purpose:  Computes the trigonometric sine of a cell or formula and 
  2195.           returns the value to the current cell or formula. 
  2196.          
  2197.          
  2198. Format:   SIN(1.57079)        Returns 1 
  2199.          
  2200.           SIN(A1)             If A1 = 1.57079, returns 1 
  2201.          
  2202.           SIN(A1*2/B5)        Resolves formula, then computes sine 
  2203.  
  2204.  
  2205. Remarks:  SIN(x) can be entered into a cell, causing the sine of a 
  2206.           number to be computed, and used as the cell value. Or the 
  2207.           SIN function can be used in a formula, and/or may have a 
  2208.           formula as its argument.
  2209.            
  2210.  
  2211. Example:  Set up a simple spreadsheet which allows a value in 
  2212.           radians to be entered, and returns the sine:
  2213.  
  2214.                          A1:  Radians:
  2215.                          A2:  Sine: 
  2216.                          B1:  1.57079
  2217.                          B2:  SIN(B1)
  2218.  
  2219.           When a value is typed into B1, the sine is displayed in 
  2220.           B2. Enter 1.57079 in B1, and 1 is returned in B2. Now 
  2221.           change the spreadsheet so degrees can be entered instead 
  2222.           of radians:
  2223.  
  2224.                          A1:  Degrees:
  2225.                          A2:  Sine: 
  2226.                          B1:  90 
  2227.                          B2:  SIN(B1*3.14159/180)                    
  2228.  
  2229.  
  2230.  
  2231.  
  2232.                                                                   127
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240.  
  2241.  
  2242.  
  2243.  
  2244.  
  2245. -
  2246.  
  2247.  
  2248.  
  2249.  
  2250.  
  2251.  
  2252.  
  2253. SQR
  2254.  
  2255.  
  2256.  
  2257.                               SQR Function
  2258.  
  2259.  
  2260. Purpose:  Computes the square root of a value, cell or formula and 
  2261.           returns the result to the current cell or formula. 
  2262.  
  2263.  
  2264. Format:   SQR(25)          Returns 5 
  2265.          
  2266.           SQR(A1)          If A1 = 25, returns 5 
  2267.          
  2268.           SQR(A1*2/B5)     Resolves formula, then computes 
  2269.                            the square root
  2270.          
  2271.          
  2272. Remarks:  SQR(x) can be entered into a cell, causing the square 
  2273.           root of a number to be computed, and used as the cell 
  2274.           value. Or the SQR function can be used in a formula, 
  2275.           and/or may have a formula as its argument.
  2276.            
  2277.  
  2278. Example:  Set up a spreadsheet that shows the square roots of all 
  2279.           numbers from 1 to 100. Start by entering:
  2280.  
  2281.                             A1:  1 
  2282.                             A2:  A1+1   
  2283.                             B1:  SQR(A1)
  2284.                             B2:  SQR(A2)
  2285.  
  2286.           So far we have the square roots of 1 and 2. To carry 
  2287.           the table out to 100, enter:
  2288.  
  2289.                          /R A2:B2 A3:B100
  2290.                     
  2291.           When asked to adjust A1 and A2, reply Y to both. When 
  2292.           replication and calcluation are done, the spreadsheet 
  2293.           contains the numbers 1 to 100 in column A, and the square 
  2294.           roots of 1 to 100 in column B.
  2295.  
  2296.  
  2297.  
  2298. 128
  2299.  
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311. -
  2312.  
  2313.  
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319.                                                           STDEV
  2320.  
  2321.  
  2322.  
  2323.                             STDEV Function
  2324.  
  2325.  
  2326. Purpose:  Computes the standard deviation of a range of numbers. 
  2327.  
  2328.  
  2329. Format:   STDEV(A1:A20)       Computes standard deviation of a 
  2330.                               column of numbers
  2331.  
  2332.           STDEV(A1:E1)        Computes standard deviation of a 
  2333.                               row of numbers
  2334.  
  2335.           STDEV(A1:D20)       Computes standard deviation of a 
  2336.                               block of numbers
  2337.  
  2338.          
  2339. Remarks:  STDEV(m:n) can be entered into a cell, returning the 
  2340.           standard deviation of the specified range, and used as 
  2341.           the cell value. Or the STDEV function can be used in a 
  2342.           formula. 
  2343.            
  2344.           The coordinate range specified in a STDEV function may 
  2345.           be down a column, such as STDEV(A1:A20), it may be 
  2346.           across a row, such as STDEV(A1:E1), or it may be a block 
  2347.           of cells (designated by the upper-left and lower-right 
  2348.           coordinates), such as STDEV(A1:D20).
  2349.  
  2350.  
  2351. Example:  Column B has a string of numbers from B7 to B26 of which 
  2352.           we want to compute the standard deviation. The result is 
  2353.           to be placed in B27. At B27 enter:
  2354.  
  2355.                              STDEV(B7:B26)
  2356.  
  2357.           After recalculation, B27 contains the standard deviation 
  2358.           of the range.
  2359.  
  2360.  
  2361.  
  2362.  
  2363.  
  2364.                                                                   129
  2365.  
  2366.  
  2367.  
  2368.  
  2369.  
  2370.  
  2371.  
  2372.  
  2373.  
  2374.  
  2375.  
  2376.  
  2377. -
  2378.  
  2379.  
  2380.  
  2381.  
  2382.  
  2383.  
  2384.  
  2385. SUM
  2386.  
  2387.  
  2388.  
  2389.                               SUM Function
  2390.  
  2391.  
  2392. Purpose:  Sums a range of numbers and returns the result to the 
  2393.           current cell or formula.
  2394.  
  2395. Format:   SUM(A1:A20)      Sums a column of numbers
  2396.  
  2397.           SUM(A1:E1)       Sums a row of numbers
  2398.  
  2399.           SUM(A1:D20)      Sums a block of numbers
  2400.  
  2401. Remarks:  SUM(m:n) can be entered into a cell, causing the 
  2402.           specified range to be added up, and used as the cell 
  2403.           value. Or the SUM function can be used in a formula. 
  2404.            
  2405.           The coordinate range specified in a SUM function may be 
  2406.           down a column, such as SUM(A1:A20), it may be across a 
  2407.           row, such as SUM(A1:E1), or it may be a block of cells 
  2408.           (designated by the upper-left and lower-right 
  2409.           coordinates), such as SUM(A1:D20).
  2410.  
  2411. Example:  EXAMPLE #1: Column B has a string of numbers from B7 
  2412.           to B26 which are to be added up. The result is to be 
  2413.           placed in B27. At B27 enter:
  2414.  
  2415.                              SUM(B7:B26)
  2416.  
  2417.           After recalculation, B27 contains the sum. 
  2418.  
  2419.  
  2420.           EXAMPLE #2: A spreadsheet has a block of expense 
  2421.           dollar amounts, running from C8 to J15. These are to be 
  2422.           subtracted from the gross profit figure in C6, and the 
  2423.           result is to be printed in C17. Move the cell cursor to 
  2424.           C17 and enter:
  2425.          
  2426.                             C6-SUM(C8:J15)
  2427.  
  2428.  
  2429.  
  2430. 130
  2431.  
  2432.  
  2433.  
  2434.  
  2435.  
  2436.  
  2437.  
  2438.  
  2439.  
  2440.  
  2441.  
  2442.  
  2443. -
  2444.  
  2445.  
  2446.  
  2447.  
  2448.  
  2449.  
  2450.  
  2451.                                                                TAN
  2452.  
  2453.  
  2454.  
  2455.                             TAN Function
  2456.  
  2457.  
  2458. Purpose:  Computes the trigonometric tangent of a value, cell or 
  2459.           formula and returns the result to the current cell or 
  2460.           formula. 
  2461.  
  2462.  
  2463. Format:   TAN(.7854)       Returns 1 
  2464.          
  2465.           TAN(A1)          If A1 = .7854, returns 1 
  2466.          
  2467.           TAN(A1*2/B5)     Resolves formula, then computes tangent
  2468.          
  2469.          
  2470. Remarks:  TAN(x) can be entered into a cell, causing the tangent of 
  2471.           a number to be computed, and used as the cell value. Or 
  2472.           the TAN function can be used in a formula, and/or may 
  2473.           have a formula as its argument.
  2474.            
  2475.  
  2476. Example:  Set up a simple spreadsheet which allows a value in 
  2477.           radians to be entered, and returns the tangent:
  2478.  
  2479.                          A1:  Radians:
  2480.                          A2:  Tangent:
  2481.                          B1:  .7854 
  2482.                          B2:  TAN(B1)
  2483.  
  2484.           When a value is typed into B1, the tangent is displayed 
  2485.           in B2. Enter .7854 in B1, and 1 is returned in B2. Now 
  2486.           change the spreadsheet so degrees can be entered instead 
  2487.           of radians:
  2488.  
  2489.                          A1:  Degrees:
  2490.                          A2:  Tangent:
  2491.                          B1:  45 
  2492.                          B2:  TAN(B1*3.14159/180)                    
  2493.  
  2494.  
  2495.  
  2496.                                                                   131
  2497.  
  2498.  
  2499.  
  2500.  
  2501.  
  2502.  
  2503.  
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509. -
  2510.  
  2511.  
  2512.  
  2513.  
  2514.  
  2515.  
  2516.  
  2517. TITLE
  2518.  
  2519.  
  2520.  
  2521.                          TITLE Command (/T)
  2522.  
  2523.  
  2524. Purpose:  Locks spreadsheet titles along the top of the screen 
  2525.           and/or along the left side, so they remain in view.
  2526.          
  2527.  
  2528. Prompts:  Begin by moving the cell cursor to the line just below 
  2529.           and/or the column to the right of the titles to be 
  2530.           locked; i.e. the first "unlocked" cell. Then enter /T and 
  2531.           you are prompted:
  2532.  
  2533.                  Horizontal, Vertical, Both or None.
  2534.  
  2535.           To lock one or more title lines at the top of the screen, 
  2536.           enter "H". To lock one or more columns along the left 
  2537.           edge of the screen, enter "V". To lock titles both 
  2538.           vertically and horizontally, enter "B". 
  2539.  
  2540.  
  2541. Remarks:  Title locking may be turned off with the /TN command, 
  2542.           or it may be turned off by using the = (Goto) option to 
  2543.           jump to a cell above, or left of, the locked titles. 
  2544.  
  2545.  
  2546. Example:  The following spreadsheet fills up the screen and 
  2547.           overflows both to the right and the bottom: 
  2548.  
  2549.                  A         B         C         D         E    
  2550.            1             Jan 85    Feb 85    Mar 85    Apr 85 
  2551.            2 Oregon         540
  2552.            3 Florida                  441
  2553.            4 New York                                     662
  2554.            5 Illinois       293
  2555.  
  2556.           Whenever we scroll downward off the bottom of the screen, 
  2557.           the month names on line 1 disappear. Scrolling to the 
  2558.           right causes the state names to disappear. To lock both 
  2559.           the months and states so they always remain on the 
  2560.  
  2561.  
  2562. 132
  2563.  
  2564.  
  2565.  
  2566.  
  2567.  
  2568.  
  2569.  
  2570.  
  2571.  
  2572.  
  2573.  
  2574.  
  2575. -
  2576.  
  2577.  
  2578.  
  2579.  
  2580.  
  2581.  
  2582.  
  2583.                                                            TITLE
  2584.  
  2585.  
  2586.           screen, move the cell cursor to B2, enter /T B 
  2587.           (/Title,Both). To lock only the months, move the cell 
  2588.           cursor anywhere on line 2 and enter /T H 
  2589.           (/Title,Horizontal). To lock only the state names, move 
  2590.           the cell cursor anywhere in column B and enter /T V 
  2591.           (/Title,Vertical).
  2592.  
  2593.  
  2594.  
  2595.  
  2596.  
  2597.  
  2598.  
  2599.  
  2600.  
  2601.  
  2602.  
  2603.  
  2604.  
  2605.  
  2606.  
  2607.  
  2608.  
  2609.  
  2610.  
  2611.  
  2612.  
  2613.  
  2614.  
  2615.  
  2616.  
  2617.  
  2618.  
  2619.  
  2620.  
  2621.  
  2622.  
  2623.  
  2624.  
  2625.  
  2626.  
  2627.  
  2628.                                                                   133
  2629.  
  2630.  
  2631.  
  2632.  
  2633.  
  2634.  
  2635.  
  2636.  
  2637.  
  2638.  
  2639.  
  2640.  
  2641. -
  2642.  
  2643.  
  2644.  
  2645.  
  2646.  
  2647.  
  2648.  
  2649. UTILITY
  2650.  
  2651.  
  2652.  
  2653.                         UTILITY Command (/U)
  2654.  
  2655.  
  2656. Purpose:  Allows files to be deleted or renamed, and allows the user 
  2657.           to temporarily exit to DOS, then return to CALC, without 
  2658.           saving the current spreadsheet.
  2659.  
  2660.  
  2661.  
  2662. Prompts:  Enter /U and the following prompt is displayed: 
  2663.  
  2664.              Delete a file, Rename a file, or Shell to DOS.
  2665.  
  2666.           If you press D, you are prompted for the drive and path, 
  2667.           then a window lists all the files in the specified path. 
  2668.           Use the down arrow or up arrow to select a file, or type 
  2669.           the file name and press ENTER. The file is deleted. 
  2670.  
  2671.           If you press R, you are prompted for the drive and path, 
  2672.           and a window lists all the files. Use the down arrow or up 
  2673.           arrow to select one, or type the name of the file to be 
  2674.           renamed. The third prompt asks for the new name the file 
  2675.           is to be given.
  2676.  
  2677.           If you press S, the screen is cleared and the following is 
  2678.           displayed:
  2679.           
  2680.                       Type EXIT to return to CALC.
  2681.  
  2682.                       C:CALC>
  2683.           
  2684.           At this point you are back at DOS, although CALC is still 
  2685.           in memory. You can use any DOS command, and can even run 
  2686.           some small programs, provided they don't use much memory. 
  2687.           When you are finished, type EXIT to return to CALC.
  2688.  
  2689.  
  2690.  
  2691.  
  2692.  
  2693.  
  2694. 134
  2695.  
  2696.  
  2697.  
  2698.  
  2699.  
  2700.  
  2701.  
  2702.  
  2703.  
  2704.  
  2705.  
  2706.  
  2707. -
  2708.  
  2709.  
  2710.  
  2711.  
  2712.  
  2713.  
  2714.  
  2715.                                                        WINDOW
  2716.  
  2717.  
  2718.  
  2719.                         WINDOW Command (/W)
  2720.  
  2721.  
  2722. Purpose:  Allows the spreadsheet screen to be split into two 
  2723.           "windows", either vertically or horizontally. This permits 
  2724.           you to look at two parts of a spreadsheet at the same 
  2725.           time. 
  2726.  
  2727. Prompts:  Enter /W and the following prompt is displayed:
  2728.  
  2729.           Horizontal, Vertical, Off, Synchronized, Unsynchronized
  2730.  
  2731.           Press H to split the screen horizontally into two windows. 
  2732.           The screen is split at the line the cursor is on. To make 
  2733.           the upper window larger, move the cursor further down the 
  2734.           screen first. The cell cursor remains in the lower window. 
  2735.           It can be moved to the upper window by pressing the semi-
  2736.           colon (;) key. Press ; a second time to return the cell 
  2737.           cursor to the lower window.
  2738.  
  2739.           Press V to split the screen vertically into two windows. 
  2740.           The screen is split at the column the cursor is on. To 
  2741.           make the left window larger, move the cursor further to 
  2742.           the right of the screen first. The semicolon key moves the 
  2743.           cursor between windows.
  2744.  
  2745.           Press O to turn off windowing and return to the normal 
  2746.           screen. 
  2747.  
  2748.           Press S to synchronize the windows. When horizontal 
  2749.           windows are synchronized, both windows always display the 
  2750.           same columns. When vertical windows are synchronized, both 
  2751.           windows always display the same lines. 
  2752.  
  2753.           Press U to unsynchronize the windows. When windows are 
  2754.           unsynchronized, scrolling around in one window leaves the 
  2755.           other window unchanged. Unsynchronized is the default. 
  2756.  
  2757.  
  2758.  
  2759.  
  2760.                                                                   135
  2761.  
  2762.  
  2763.  
  2764.  
  2765.  
  2766.  
  2767.  
  2768.  
  2769.  
  2770.  
  2771.  
  2772.  
  2773. -
  2774.  
  2775.  
  2776.  
  2777.  
  2778.  
  2779.  
  2780.  
  2781. XTERNAL
  2782.  
  2783.  
  2784.  
  2785.                         XTERNAL Command (/X)
  2786.  
  2787.  
  2788. Purpose:  Reads data from another CALC spreadsheet, or from a 
  2789.           File Express or PC-FILE database, and places the data into 
  2790.           the current cell. 
  2791.  
  2792. Prompts:  Position the cell cursor on the cell which will contain 
  2793.           the data, then enter /X. You are prompted:
  2794.  
  2795.                 Enter C to get data from a spreadsheet. 
  2796.                 Enter F to get data from a database. 
  2797.  
  2798.           The Xternal command can reach into a spreadsheet file, or 
  2799.           a database and extract data. Enter C or F to indicate the 
  2800.           type of file. Subsequent prompts are specific to either 
  2801.           spreadsheets or databases.
  2802.  
  2803.           CALC Spreadsheet
  2804.           If you replied "C" to the previous prompt, the next 
  2805.           prompt is: 
  2806.  
  2807.                Enter the drive and path name (optional).
  2808.  
  2809.           Specify the drive and path where the calc spreadsheet is 
  2810.           located, then press ENTER. There is a brief pause while 
  2811.           the directory is read, then a window appears displaying 
  2812.           spreadsheets with .CAL extensions. This prompt appears:
  2813.  
  2814.             Enter the name of the CALC spreadsheet to be read.
  2815.  
  2816.           Use the down arrow and up arrow to select a file, or type 
  2817.           the name of the file and press ENTER. The next prompt is:
  2818.          
  2819.                       Enter the cell to be read.
  2820.  
  2821.           Any cell coordinate from A1 to BL256 is valid. After 
  2822.           pressing ENTER, the message "Stand by. Search in 
  2823.           progress." is given, and CALC searches the file for the 
  2824.  
  2825.  
  2826. 136
  2827.  
  2828.  
  2829.  
  2830.  
  2831.  
  2832.  
  2833.  
  2834.  
  2835.  
  2836.  
  2837.  
  2838.  
  2839. -
  2840.  
  2841.  
  2842.  
  2843.  
  2844.  
  2845.  
  2846.  
  2847.                                                       XTERNAL
  2848.  
  2849.  
  2850.           specified cell. When the cell is found, its data is placed 
  2851.           in the current cell of your spreadsheet. If the data is 
  2852.           text, it appears as text in your spreadsheet. If it is a 
  2853.           value or formula, it appears as a value in your spread-
  2854.           sheet. Format items, such as decimal places, justifica-
  2855.           tion, etc. are not copied. The data can be formatted as 
  2856.           desired using the /Format command.
  2857.  
  2858.           If the requested cell has no data, a warning message is 
  2859.           given. The ERROR designation is placed in the current 
  2860.           cell, and the cell's contents are the words NO DATA. 
  2861.  
  2862.           The Xternal command only goes one level deep in its search 
  2863.           for data. In other words, if the requested cell is also an 
  2864.           external reference to a third spreadsheet, CALC does not 
  2865.           access the third spreadsheet. It extracts the value of the 
  2866.           specified cell as of the last time it was saved. 
  2867.  
  2868.          
  2869.           Database
  2870.           If you replied F to the first prompt, the next prompt is: 
  2871.  
  2872.                Enter the drive and path name (optional).
  2873.  
  2874.           Specify the drive and path where the database is located, 
  2875.           then press ENTER. There is a brief pause while the 
  2876.           directory is read, then a window appears displaying all 
  2877.           the databases. The following prompt appears:
  2878.  
  2879.               Enter the name of the database to be accessed.
  2880.  
  2881.           If the database is on a disk other than the default 
  2882.           drive, its name may be prefixed by the drive letter and a 
  2883.           colon (for example, A:CUST). If the database cannot be 
  2884.           found, a message is given. Otherwise, this prompt appears: 
  2885.  
  2886.             Field to search?
  2887.             (Enter field name, or press TAB/BACKTAB to rotate
  2888.             through the field names.)
  2889.  
  2890.  
  2891.  
  2892.                                                                   137
  2893.  
  2894.  
  2895.  
  2896.  
  2897.  
  2898.  
  2899.  
  2900.  
  2901.  
  2902.  
  2903.  
  2904.  
  2905. -
  2906.  
  2907.  
  2908.  
  2909.  
  2910.  
  2911.  
  2912.  
  2913. XTERNAL
  2914.  
  2915.  
  2916.           You can enter a field name at this time, or press the TAB 
  2917.           key, which displays each of the field names in the 
  2918.           database consecutively. When you find the field name you 
  2919.           want, press ENTER to go on to the next prompt. Note: when 
  2920.           typing the field name, it is not necessary to type the 
  2921.           entire name. CALC will find the first field name that 
  2922.           matches the characters you entered. Also, CALC ignores 
  2923.           upper and lower case, converting everything to upper case 
  2924.           before comparison. Now the next prompt:
  2925.  
  2926.                               Look for?
  2927.  
  2928.           Enter the character string to be searched for. For 
  2929.           example, if you are searching a customer file and you 
  2930.           specified "customer number" as the "field to search", 
  2931.           then enter the customer number here. CALC compares 
  2932.           for the length of the data entered; i.e. if you enter 
  2933.           ABC, CALC finds the record whose search field 
  2934.           starts with ABC. 
  2935.  
  2936.           The next prompt is: 
  2937.  
  2938.           If there is more than one record which matches search
  2939.           data, which one should be used? (1 to 999, or ALL.)
  2940.  
  2941.           Normally the response to this prompt is 1, which tells 
  2942.           CALC to read the first matching record it finds. The 
  2943.           1 has already been filled in as the default, so just 
  2944.           press ENTER. However, if there are multiple matches in 
  2945.           your file, and you want to bypass the first two records, 
  2946.           enter 3, and CALC skips the first two records. 
  2947.  
  2948.           Or the word ALL can be entered in response to this 
  2949.           prompt, causing all matching records to be read, and 
  2950.           numeric fields totalled. If the retrieved field (next 
  2951.           prompt) is a numeric field, the total of that field from 
  2952.           all matching records is put into the current cell of your 
  2953.           spreadsheet. See the examples below for more discussion 
  2954.           of the "ALL" option.
  2955.  
  2956.  
  2957.  
  2958. 138
  2959.  
  2960.  
  2961.  
  2962.  
  2963.  
  2964.  
  2965.  
  2966.  
  2967.  
  2968.  
  2969.  
  2970.  
  2971. -
  2972.  
  2973.  
  2974.  
  2975.  
  2976.  
  2977.  
  2978.  
  2979.                                                       XTERNAL
  2980.  
  2981.  
  2982.           The final prompt is:
  2983.  
  2984.                           Field to retrieve?
  2985.  
  2986.           This is the name of the database field whose contents are 
  2987.           to be placed in your spreadsheet's current cell. Just as 
  2988.           above, with the "field to search" prompt, you can use the 
  2989.           TAB and BACKTAB keys to rotate through the valid field 
  2990.           names. When you find the field name you want, press 
  2991.           ENTER to go on to the next prompt. Note: when typing the 
  2992.           field name, it is not necessary to type the entire name. 
  2993.           CALC finds the first field name that matches the 
  2994.           characters entered. Also, CALC ignores upper and 
  2995.           lower case, converting everything to upper case before 
  2996.           comparison. 
  2997.          
  2998.           If the retrieved field's name ends with a "#", the data 
  2999.           is placed in your spreadsheet cell as a value. Otherwise 
  3000.           it is placed in the cell as text. 
  3001.          
  3002.           If no record is found which matches the requested 
  3003.           search, a warning message is given, and the ERROR 
  3004.           condition is set for the cell. 
  3005.  
  3006.          
  3007. Remarks:  External references are not limited to just one 
  3008.           spreadsheet or database. Any number of external 
  3009.           spreadsheets and/or databases can be accessed from a 
  3010.           single spreadsheet. The speed of the accesses varies 
  3011.           depending on the number of different spreadsheets and 
  3012.           databases being accessed, and the sizes of those 
  3013.           spreadsheets and databases. 
  3014.          
  3015.           The fields entered in a /Xternal command are saved with 
  3016.           the cell contents, just as a formula is saved with its 
  3017.           cell. When the cell cursor is moved to a cell with an 
  3018.           external reference, the external reference parameters are 
  3019.           displayed beneath the cell contents. 
  3020.          
  3021.           To change one or more parameters in an external 
  3022.  
  3023.  
  3024.                                                                   139
  3025.  
  3026.  
  3027.  
  3028.  
  3029.  
  3030.  
  3031.  
  3032.  
  3033.  
  3034.  
  3035.  
  3036.  
  3037. -
  3038.  
  3039.  
  3040.  
  3041.  
  3042.  
  3043.  
  3044.  
  3045. XTERNAL
  3046.  
  3047.  
  3048.           reference, move the cell cursor to the cell to be 
  3049.           changed, and enter /X. The normal /X prompts are given, 
  3050.           but the parameter values are already filled in for you on 
  3051.           the command line. Just press ENTER until you come to the 
  3052.           parameter to be changed, then type the new value. 
  3053.          
  3054.           To delete an external reference, simply enter another 
  3055.           value in the cell, or use the /Blank command to clear the 
  3056.           cell's contents.
  3057.          
  3058.           Cells with external references can be referenced in 
  3059.           formulas and functions just like any other cells. 
  3060.           External references are saved with the cell's data at 
  3061.           /Save time, and reloaded at /Load time. One additional 
  3062.           step takes place at /Load time: each external reference 
  3063.           is re-resolved; i.e. the data is looked up again in the 
  3064.           referenced spreadsheet or database. If the data has 
  3065.           changed since the last /Save, the new data is 
  3066.           substituted. Of course, this means that a spreadsheet 
  3067.           with external references take longer to load. It also 
  3068.           means that the externally referenced files must be online 
  3069.           in order to load the spreadsheet.
  3070.        
  3071.  
  3072. Example:  EXAMPLE #1: Preparing a profit and loss statement using 
  3073.           CALC, we realize that the expense totals to be 
  3074.           displayed are already in another spreadsheet. They are 
  3075.           the total lines of the detail spreadsheet called 
  3076.           CHEKBOOK, and are in cells B65 through G65. Since 
  3077.           CHEKBOOK is updated every month, we can use external 
  3078.           references to pull the data into our monthly P & L, and 
  3079.           eliminate the need to re-key the data each month. 
  3080.           Starting with the first expense, wages and salaries, move 
  3081.           the cursor to C18 where the dollar amount is to be 
  3082.           displayed. If any extra formatting is to be done, such as 
  3083.           leading dollar signs, etc. it can be done now, or after 
  3084.           the data is retrieved. Now enter:
  3085.  
  3086.                           /X C CHEKBOOK B65
  3087.          
  3088.  
  3089.  
  3090. 140
  3091.  
  3092.  
  3093.  
  3094.  
  3095.  
  3096.  
  3097.  
  3098.  
  3099.  
  3100.  
  3101.  
  3102.  
  3103. -
  3104.  
  3105.  
  3106.  
  3107.  
  3108.  
  3109.  
  3110.  
  3111.                                                       XTERNAL
  3112.  
  3113.  
  3114.           CALC finds the spreadsheet called CHEKBOOK, and 
  3115.           retrieves the contents of cell B65. Since B65 contains a 
  3116.           dollar amount, that amount is put into cell C18 of our P&L 
  3117.           spreadsheet as a value, rather than text. To retrieve the 
  3118.           remaining expense amounts into cells C19 through C23, we 
  3119.           repeat the /X command above, referencing cells C65 through 
  3120.           G65. The command must be retyped for each cell. There is 
  3121.           no Replicate command for external references (not yet, 
  3122.           anyway). When finished, we can show the total expenses 
  3123.           either by retrieving them from CHEKBOOK using /X, or we 
  3124.           can simply total up the numbers in C18 through C23 using 
  3125.           the SUM(C18:C23) command. 
  3126.  
  3127.           EXAMPLE #2: Working on the same P & L described in 
  3128.           example 1, we now want to show the total sales for the 
  3129.           month, in two categories: retail sales and wholesale 
  3130.           sales. All the sales invoices for the month have been 
  3131.           entered into a File Express database called MTDSALES, with 
  3132.           invoice number, date, customer number and amount. The 
  3133.           first three letters of the invoice number are "RTL" for 
  3134.           retail sales and "WHL" for wholesale sales. Start by 
  3135.           moving the cell cursor to the cell where the retail sales 
  3136.           amount is to be displayed. Now enter /X and respond to 
  3137.           the prompts as shown: 
  3138.  
  3139.                   CALC or FILE:          F
  3140.                   Name of database:      MTDSALES
  3141.                   Field to search:       Invoice number
  3142.                   Look for:              RTL
  3143.                   Which one:             ALL
  3144.                   Field to retrieve:     Amount#
  3145.  
  3146.           Now we wait for a few seconds while CALC reads 
  3147.           the database. Since we specified ALL, it will read every
  3148.           record whose invoice number starts with RTL, and total up 
  3149.           the Amount# field. When the search is done, the sum of 
  3150.           Amount# from all the RTL records appears on our 
  3151.           spreadsheet in the current cell. To print the total 
  3152.           wholesale sales, move down one cell and enter the same 
  3153.           /X command as above, but substituting WHL for RTL. 
  3154.  
  3155.  
  3156.                                                                   141
  3157.  
  3158.  
  3159.  
  3160.  
  3161.  
  3162.  
  3163.  
  3164.  
  3165.  
  3166.  
  3167.  
  3168.  
  3169. -
  3170.  
  3171.  
  3172.  
  3173.  
  3174.  
  3175.  
  3176.  
  3177. ZAP
  3178.  
  3179.  
  3180.  
  3181.  
  3182.                           ZAP Command (/Z)
  3183.  
  3184.  
  3185. Purpose:  Clears the spreadsheet area and resets all the system 
  3186.           defaults. 
  3187.  
  3188.  
  3189. Prompts:  Enter /Z and you will be prompted:
  3190.  
  3191.                      Clear contents? (Y or N).
  3192.  
  3193.           To clear the current contents of every cell, and reset 
  3194.           all the system defaults, enter "Y". To leave the current 
  3195.           spreadsheet as is, reply "N" or ESCAPE. 
  3196.  
  3197.  
  3198. Remarks:  If the spreadsheet currently in memory has not been 
  3199.           saved, it will be lost. Use the Save Command (/S) to save 
  3200.           the spreadsheet before exiting. To prevent accidental 
  3201.           loss of data, CALC asks for confirmation (Clear 
  3202.           contents?) before clearing.
  3203.  
  3204.           An alternate method of clearing memory is to use the /Q 
  3205.           command to exit to the operating system, then restart 
  3206.           CALC. 
  3207.  
  3208.  
  3209. Example:  The spreadsheet currently on the screen has been saved on 
  3210.           disk. The spreadsheet area is to be cleared. Enter:
  3211.  
  3212.                                 /Z Y
  3213.  
  3214.           A message appears saying Clearing contents. Stand by... 
  3215.           and after a pause, a blank screen appears with the cursor 
  3216.           at A1 and the column widths reset to the default length. 
  3217.  
  3218.  
  3219.  
  3220.  
  3221.  
  3222. 142
  3223.  
  3224.  
  3225.  
  3226.  
  3227.  
  3228.  
  3229.  
  3230.  
  3231.  
  3232.  
  3233.  
  3234.  
  3235.