home *** CD-ROM | disk | FTP | other *** search
/ Between Heaven & Hell 2 / BetweenHeavenHell.cdr / 500 / 404 / calc3.doc < prev    next >
Text File  |  1986-12-03  |  69KB  |  2,509 lines

  1. -
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.                                                                 PRINCIPAL
  11.  
  12.  
  13.      ____________________________________________________________________
  14.  
  15.                               PRINCIPAL Function
  16.  
  17.  
  18.      Purpose:  Computes the principal amount for a given payment amount,
  19.                interest rate and number of periods. (See also PAYMENT,
  20.                RATE and PERIODS functions.)
  21.  
  22.           
  23.      Format:   PRINCIPAL(payment,rate,period)
  24.  
  25.                PRINCIPAL(88.85,.01,12)     Returns 1000
  26.  
  27.                PRINCIPAL(A1,.18/12,36)     If A1 is 36.16, returns 1000
  28.  
  29.                PRINCIPAL(B1,100,A1*2/A5)   Resolves the formula, then
  30.                                            computes the principal
  31.  
  32.  
  33.      Remarks:  PRINCIPAL(x,y,z) can be entered into a cell, or the
  34.                PRINCIPAL function can be used in a formula. This
  35.                function can also be spelled PRINCIPLE.
  36.                       
  37.                All three operands must be specified. The payment, rate
  38.                and periods need to be consistent; i.e. in the first
  39.                example above, the rate is a monthly rate, the payment
  40.                amount is monthly, and the periods are months.
  41.  
  42.                One note on amortizations: as the truth-in-lending laws
  43.                so vividly indicate, there are many ways to amortize. If
  44.                CALC comes up with a different answer than your bank,
  45.                it may be because of their compounding method, or because
  46.                of rounding. Generally, CALC's calculation method is
  47.                mathematically sound, and yields the same result as an
  48.                interest amortization table.
  49.  
  50.      Example:  A local used car dealer offers a time-payment plan. A
  51.                car requires no down payment, and has monthly payments of
  52.                180.77 for 36 months at 18% annual interest. Compute the
  53.  
  54.  
  55.                                                                       101
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. -
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.                                                                 PRINCIPAL
  77.  
  78.  
  79.                purchase price of the car. In any cell, enter:
  80.  
  81.                           PRINCIPAL(180.77,.18/12,36)
  82.  
  83.                The cell displays 5000 which is the principal amount, or
  84.                purchase price of the car. Note that the interest rate of
  85.                .18 was annual, so we used .18/12 for the monthly rate.
  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.  
  121.                                                                       102
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133. -
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.                                                                     PRINT
  143.  
  144.  
  145.      ____________________________________________________________________
  146.  
  147.                               PRINT Command (/P)
  148.  
  149.  
  150.      Purpose:  Prints a hard copy of the spreadsheet on the printer.
  151.  
  152.  
  153.      Prompts:  Enter /P and you will be prompted:
  154.            
  155.                Enter range to be printed (or ENTER for all).
  156.  
  157.                The word ALL appears on the entry line. To print the
  158.                complete spreadsheet, press ENTER. To print only part of
  159.                the spreadsheet, type the coordinates as a range (for
  160.                example: A1:G15), then press ENTER or comma. The next
  161.                prompt is:
  162.  
  163.                Enter page width (number of columns across printer).
  164.  
  165.                The number 80 will appear on the entry line. If the
  166.                printer is set up to accomodate an eighty-character
  167.                printout, just press ENTER. Otherwise, enter the width of
  168.                the printer page. The next prompt is:
  169.  
  170.                Enter page length (number of lines per page).
  171.  
  172.                The number 58 will appear on the entry line. If you are
  173.                printing on normal eleven-inch paper, at six lines per
  174.                inch, press ENTER. Otherwise, figure out how many lines
  175.                will print on a page and enter it. The next prompt is:
  176.            
  177.                D=dbl space, S=setup, P=pause, C=contents, M=mult copies
  178.                B=border, O=offset, T=top margin, H=headings, F=footings
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.                                                                       103
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199. -
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.                                                                     PRINT
  209.  
  210.  
  211.                If no special options are desired, press ENTER. Otherwise
  212.                enter one or more option characters:
  213.  
  214.                D - Double space the printout.
  215.                S - Prompt for printer setup codes. (Details below.)
  216.                P - Pause after printing each page.
  217.                C - Print contents and attributes of cells.
  218.                M - Print multiple copies of the report (default 1).
  219.                B - Display row and column borders on the printed copy.
  220.                O - Override default left margin width (default 7).
  221.                T - Override default top margin height (default 2).
  222.                H - Prompt for heading line range.
  223.                F - Prompt for footing line range.
  224.  
  225.                The last prompt from the Print command is:
  226.  
  227.                                Printer or Disk.
  228.  
  229.                Specify P to send the output directly to the printer. If
  230.                D is specified, you are prompted:
  231.  
  232.                               Enter the file name.
  233.  
  234.                Enter a valid MSDOS file name, and the printed output
  235.                will be written to a file by that name. You can print it
  236.                later with the MSDOS "COPY filename PRN:" command,
  237.                or access it with your word processor for further
  238.                editing.
  239.  
  240.  
  241.      Remarks:  CALC prints an output page only as wide as the
  242.                specified "page width". When the spreadsheet has been
  243.                completely printed for that width, CALC checks to
  244.                see if some of your spreadsheet was not printed. If so,
  245.                CALC makes a second pass, printing the right-hand
  246.                side of the spreadsheet. If it is extremely wide, then
  247.                CALC continues making passes through the spreadsheet
  248.                until it is all printed. These pages can then be attached
  249.                to produce a wide spreadsheet on a narrow printer.
  250.  
  251.  
  252.  
  253.                                                                       104
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265. -
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.                                                                     PRINT
  275.  
  276.  
  277.                When CALC asks for the "page width" (number of
  278.                columns across the printer), it is asking for a width
  279.                that:
  280.  
  281.                   1. your printer is physically capable of printing;
  282.                   2. won't run off the right edge of the paper; and
  283.                   3. takes character size into account.
  284.  
  285.                Since CALC has no way of determining any of these
  286.                three factors, it needs some help. If your printer is
  287.                capable of printing only 80 characters in 10 cpi mode,
  288.                and you specify a page width of 96, CALC sends
  289.                96 characters at a time to the printer. The effect is a
  290.                "double-spaced" report, with the data from the right side
  291.                of the report "wrapped around" onto a second line. If a
  292.                page width of 80 had been specified, CALC would print
  293.                the left 80 characters of the report, then skip to a new
  294.                page and print the rest of the characters. The two pages
  295.                can then be taped together as a wide report.
  296.  
  297.                PRINTER SETUP
  298.                There are hundreds of brands of printers, and most of
  299.                them have their own unique code structure for setting
  300.                options such as characters per inch, lines per inch,
  301.                double-wide, and so forth. The standard version of
  302.                CALC is configured for the IBM/Epson printer, because
  303.                more than 65% of the CALC users have an Epson or
  304.                compatible. The /Configure option supports three other
  305.                brands of printers, which account for another 20% of
  306.                CALC users. Generic support for other printers has
  307.                been provided in the .PRO configuration options of
  308.                CALC. The section titled Customizing CALC
  309.                gives more information. In addition, there is the "Setup"
  310.                option of the /Print command. If "S" was specified above,
  311.                the following prompt is given next:
  312.  
  313.                     Enter printer setup codes, then ENTER.
  314.            
  315.                For some printers, the setup codes have been built into
  316.                CALC's /Configure routines. The standard diskette
  317.  
  318.  
  319.                                                                       105
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331. -
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.                                                                     PRINT
  341.  
  342.  
  343.                comes configured for Epson (IBM) printers. The setup
  344.                prompt will have a second line saying:
  345.  
  346.                Epson printers: "A"=10 cpi, "B"=12 cpi, "C"=17 cpi.
  347.  
  348.                If your CALC has been configured for another printer,
  349.                that printer's name will appear instead of Epson. If the
  350.                named printer matches your printer, you can alternately
  351.                enter the letters A, B or C to set your printer spacing
  352.                to 10, 12 or 17 characters per inch, respectively.
  353.  
  354.                If CALC has not been configured for your printer, you
  355.                can still send setup codes to the printer. Just Press any
  356.                key (other than A, B or C) at this time, and its ASCII
  357.                value will be sent directly to the printer. For example,
  358.                if the sequence "ESC,M" sets your printer to twelve
  359.                characters per inch, press the Escape key, then the
  360.                capital M. When all the setup codes have been entered,
  361.                press ENTER.
  362.  
  363.                Some printer setup codes are special ASCII characters. If
  364.                you need to send an ASCII 15 to your printer, for
  365.                example, there are two ways to do this:
  366.  
  367.                1. Hold down CTRL and press O (the letter). CTRL-O at
  368.                   the keyboard generates ASCII 15. (O is the 15th letter
  369.                   of the alphabet. CTRL-A generates ASCII 1, etc.)
  370.  
  371.                2. Hold down the ALT key, and type the number you want
  372.                   sent on the numeric keypad. For example, to send an
  373.                   ASCII 15, hold down ALT, press the one then the five
  374.                   key, and let go of ALT. An ASCII 15 is sent. Be sure
  375.                   to type the number on the numeric keypad, and not on
  376.                   the numeric row across the top of the keyboard.
  377.  
  378.                There are two other methods for getting setup codes to
  379.                your printer. The easiest way is to just type the special
  380.                codes into a text string at the beginning of your
  381.                spreadsheet. Type a quotation mark, then type the codes,
  382.                using either of the methods above (Ctrl key or Alt key).
  383.  
  384.  
  385.                                                                       106
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397. -
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.                                                                     PRINT
  407.  
  408.  
  409.                Another method is the TRANSLATE PRINT x TO yyy
  410.                configuration option in the .PRO file. See the section
  411.                titled Customizing CALC for more information.
  412.  
  413.      Example:  EXAMPLE #1: The spreadsheet is only four columns wide,
  414.                and 99 lines long. No options are required. Enter:
  415.  
  416.                /P (ENTER) (ENTER) (ENTER) (ENTER) (ENTER) (ENTER)
  417.  
  418.                By pressing ENTER on all six prompts, you tell
  419.                CALC to use its defaults for all prompts:
  420.  
  421.                    . The entire spreadsheet is printed.
  422.  
  423.                    . The page width is 80 characters, which is adequate
  424.                      for this narrow spreadsheet.
  425.            
  426.                    . The page length default is 58 lines printed per
  427.                      page.
  428.  
  429.                    . Borders are not printed, because the B option was
  430.                      not specified.
  431.            
  432.                    . The printout is single spaced.
  433.  
  434.                    . There is a 7 character left margin (page offset).
  435.  
  436.                    . There is a two space top margin (two blank lines
  437.                      are printed at the top of each page).
  438.  
  439.                    . One copy of the spreadsheet is printed.
  440.  
  441.                    . No headings or footings are printed.
  442.  
  443.                    . The output goes directly to the printer.
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.                                                                       107
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463. -
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.                                                                     PRINT
  473.  
  474.  
  475.  
  476.                EXAMPLE #2: The spreadsheet is 230 characters wide. The
  477.                printer has wide paper in it, and with compressed print
  478.                can print 232 characters across. The report is to be
  479.                double-spaced. Enter:
  480.  
  481.                                /P 232,,DO (ENTER)
  482.  
  483.                Since you entered an option of "O", CALC prompts for
  484.                a page offset. Enter 2. Since the printer will only
  485.                handle 232 characters, and the spreadsheet is 230
  486.                characters wide, you can only afford a two character left
  487.                margin. If you didn't change the offset, the last five
  488.                characters of the spreadsheet would print on a second
  489.                page.
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.                                                                       108
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529. -
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.                                                                      QUIT
  539.  
  540.  
  541.      ____________________________________________________________________
  542.  
  543.                               QUIT Command (/Q)
  544.  
  545.  
  546.      Purpose:  Exits from CALC to the operating system.
  547.  
  548.  
  549.      Prompts:  If the spreadsheet currently in memory has not been
  550.                saved, it will be lost. Use the Save Command (/S) to save
  551.                the spreadsheet before exiting. To prevent accidental
  552.                loss of a spreadsheet, CALC asks for confirmation if
  553.                data has been altered in the spreadsheet area:
  554.  
  555.                The current spreadsheet was changed but not saved.
  556.                Enter Y to quit. Enter N to return to spreadsheet.
  557.                Enter S to save spreadsheet.
  558.  
  559.                If "S" is entered, control is passed to the /Save
  560.                command.
  561.  
  562.  
  563.      Remarks:  Normally CALC returns to DOS after /Q. However,
  564.                there is a .PRO file option called  ON EXIT RUN program
  565.                which invokes an .EXE file on exit from CALC. See
  566.                the section titled "Customizing CALC" for more
  567.                information.
  568.  
  569.  
  570.      Example:  You have saved the current spreadsheet and want to exit
  571.                so you can run another program. Enter:
  572.  
  573.                                      /Q
  574.  
  575.                Since you just saved the spreadsheet, and have made no
  576.                further changes on it, CALC ends. The screen is
  577.                cleared, and at the top of the screen is the DOS
  578.                prompt:
  579.  
  580.                                      A>
  581.  
  582.  
  583.                                                                       109
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595. -
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.                                                                    RANDOM
  605.  
  606.  
  607.      ____________________________________________________________________
  608.  
  609.                                RANDOM Function
  610.  
  611.      Purpose:  Returns a random number between zero and one.
  612.  
  613.            
  614.      Format:   RANDOM                 Returns a random number
  615.                                       between 0 and 1
  616.  
  617.  
  618.      Remarks:  This function is useful in some statistical applications
  619.                and in sequencing events randomly, such as in scheduling
  620.                sporting events.
  621.  
  622.                To compute a random number in the range 0 to 25, put 25
  623.                into A1, then enter the following formula in another
  624.                cell:
  625.  
  626.                              INT(RANDOM * (A1+1))
  627.  
  628.                To compute a random number between 0 and n (any positive
  629.                integer), enter n in A1 and use the formula above.
  630.  
  631.                      
  632.      Example:  EXAMPLE #1: Compute a random number between 1 and 52.
  633.                This number might identify the week in a year, or it
  634.                might identify a card in a deck of cards. Enter the
  635.                following formula in any cell:
  636.  
  637.                             INT(RANDOM * (51+1)) + 1
  638.  
  639.  
  640.                EXAMPLE #2: A spreadsheet contains a list of sporting
  641.                events, listed one per line in lines 5 to 50. We want to
  642.                randomly sort them. Start by entering:
  643.  
  644.                                RANDOM * 1000
  645.              
  646.                in cell F5, then replicate the formula from F5 to F6:F50.
  647.  
  648.  
  649.                                                                       110
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661. -
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.                                                                    RANDOM
  671.  
  672.  
  673.                Now use the /Arrange command to sort F5:F50. It doesn't
  674.                matter if the sort is ascending or descending, and no
  675.                options are required, so just type:
  676.  
  677.                       /A C F5:F50 (ENTER) (ENTER)
  678.  
  679.                and the lines are sorted in a random sequence.
  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.  
  715.                                                                       111
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727. -
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.                                                                      RATE
  737.  
  738.  
  739.      ____________________________________________________________________
  740.  
  741.                                 RATE Function
  742.  
  743.      Purpose:  Computes an interest rate for a given principal amount,
  744.                payment and number of periods. (See also PRINCIPAL,
  745.                PAYMENT and PERIODS functions.)
  746.            
  747.      Format:   RATE(principal,payment,term)
  748.  
  749.                RATE(1000,88.85,12)         Returns .01 (1% rate)
  750.  
  751.                RATE(A1,36.16,36) * 12      If A1 contains 1000, returns
  752.                                            .18 (18% rate)
  753.  
  754.                RATE(B1,100,A1*2/A5)                                           Resolves the formula, then
  755.                                            computes the rate
  756.  
  757.      Remarks:  RATE(x,y,z) can be entered into a cell, or the RATE
  758.                function can be used in a formula. INTEREST is an
  759.                alternate name for the RATE function.
  760.                                            
  761.                All three operands must be specified. The payment operand
  762.                is the payment per period. The period length needs to be
  763.                consistent; i.e. in the first example above, the term is
  764.                twelve months, so the payment is a monthly payment, and
  765.                the interest rate returned is the rate per month,
  766.                compounded monthly.
  767.  
  768.                One note on amortizations: as the truth-in-lending laws
  769.                so vividly indicate, there are many ways to compute
  770.                interest. If CALC comes up with a different answer
  771.                than your bank, it may be because of their compounding
  772.                method, or because of rounding. Generally, CALC's
  773.                calculation method is mathematically sound, and yields
  774.                the same result as an interest amortization table.
  775.  
  776.      Example:  A local used car dealer offers a time-payment plan. A
  777.                $5,000 car requires no down payment, and has monthly
  778.                payments of $180.77 per month for 36 months. Compute
  779.  
  780.  
  781.                                                                       112
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793. -
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.                                                                      RATE
  803.  
  804.  
  805.                the effective interest rate. In any cell, enter:
  806.  
  807.                           RATE(5000,180.77,36) * 12
  808.  
  809.                The cell displays .18, indicating the interest rate is 18
  810.                percent. Formatting the cell for three decimal places
  811.                shows the number as .180, so it is exactly 18%.
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.                                                                       113
  848.  
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859. -
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.                                                                 REPLICATE
  869.  
  870.  
  871.      ____________________________________________________________________
  872.  
  873.                             REPLICATE Command (/R)
  874.  
  875.  
  876.      Purpose:  Copies data from a cell or range to another cell, range
  877.                or block, and optionally adjusts the cell coordinates in
  878.                formulas. The format attributes such as decimals, commas,
  879.                etc. are copied along with the data. This powerful
  880.                command allows cells to be replicated over and over, with
  881.                formulas adjusted, saving considerable data entry.
  882.  
  883.  
  884.      Prompts:  Enter /R and you will be prompted:
  885.  
  886.                              Enter the "from" range.
  887.  
  888.                Enter a single cell or a range of cells (example: A1:G1).
  889.                If the "from" cell is the current cell (where the cell
  890.                cursor is currently), just press ENTER and the current
  891.                cell  is used. The next prompt is:
  892.  
  893.                               Enter the "to" range.
  894.  
  895.                Once again, enter a single cell or a range of cells. This
  896.                range specifies the receiving field. If the "to" cell is
  897.                the current cell, just press ENTER.
  898.  
  899.                If your ranges are valid, the data in the "from" range
  900.                is now copied to the "to" range. During the copying
  901.                operation if a formula is encountered in the "from"
  902.                range, a message is given for each of the variables in
  903.                the formula. For example:
  904.  
  905.                Replicating cell A5. Adjust A3  Y or N? (or A for all)
  906.  
  907.                This sample message says that in the "from" cell A5 it
  908.                found a formula. That formula contained a reference to
  909.                A3. If you reply Y to this message, each replication is
  910.                adjusted so A3 becomes A4, then A5, then A6, etc. If you
  911.  
  912.  
  913.                                                                       114
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925. -
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.                                                                 REPLICATE
  935.  
  936.  
  937.                reply N to this message, all replications refer to A3,
  938.                unchanged. See the examples below for more information.
  939.  
  940.  
  941.      Remarks:  A single cell may be replicated to a group of contiguous
  942.                cells, either across a row or down a column. Specify the
  943.                single cell as the "from" cell, then specify the range of
  944.                "to" cells, either across a row or down a column.
  945.  
  946.                A group of contiguous cells may be replicated to another
  947.                group of cells. If the "from" group are all in a row,
  948.                then the "to" group must either be all in a row, or they
  949.                must be a "block" of cells. To illustrate the latter
  950.                case, consider this example:
  951.  
  952.                              A       B       C       D       E
  953.                      1             Qtr 1   Qtr 2   Qtr 3   Qtr 4
  954.                      2                                         
  955.                      3  Sales     (from)    (to)    (to)    (to)
  956.                      4  CGS       (from)    (to)    (to)    (to)
  957.                      5  Gross     (from)    (to)    (to)    (to)
  958.  
  959.                Values or formulas have been entered into column B for
  960.                the first quarter, and now you want to replicate those
  961.                formulas to the next three quarters. To accomplish this,
  962.                enter:
  963.            
  964.                               /R B3:B5,C3:E5 (ENTER)
  965.            
  966.                The "from" range, B3:B5 is replicated to each of the
  967.                columns C, D and E. In this example each of the values in
  968.                B3 through B5 are copied to the three adjacent columns.
  969.                If there are any formulas in B3:B5, CALC asks
  970.                for adjustment (see example below).
  971.  
  972.                The replicate command may be used to copy values,
  973.                formulas or text without adjustment. Just reply "N" to
  974.                any "adjust" messages.
  975.  
  976.  
  977.  
  978.  
  979.                                                                       115
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991. -
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.                                                                 REPLICATE
  1001.  
  1002.  
  1003.      Example:  EXAMPLE #1: Referring to the example above in the
  1004.                Remarks section, let's look at the contents of each cell.
  1005.                Suppose the contents prior to replicating are:
  1006.  
  1007.                              A       B       C       D       E
  1008.                      1             Qtr 1   Qtr 2   Qtr 3   Qtr 4
  1009.                      2                                         
  1010.                      3  Sales     250000
  1011.                      4  CGS        B3*.7
  1012.                      5  Gross      B3-B4
  1013.  
  1014.                Performing the replicate command discussed earlier:
  1015.  
  1016.                              /R B3:B5,C3:E5 (ENTER)
  1017.  
  1018.                causes the contents of B3, B4 and B5 to be copied to
  1019.                the next three columns. But in the process of copying,
  1020.                CALC issues three messages:
  1021.  
  1022.                Replicating cell B4. Adjust B3  Y or N? (or A for all)
  1023.                Replicating cell B5. Adjust B3  Y or N? (or A for all)
  1024.                Replicating cell B5. Adjust B4  Y or N? (or A for all)
  1025.  
  1026.                In this example, reply "Y" to all three of the messages.
  1027.                (Or reply "A" to the first message, and the other two
  1028.                messages will not be given.) The result is:
  1029.  
  1030.                              A       B       C       D       E
  1031.                      1             Qtr 1   Qtr 2   Qtr 3   Qtr 4
  1032.                      2                                         
  1033.                      3  Sales     250000  250000  250000  250000
  1034.                      4  CGS        B3*.7   C3*.7   D3*.7   E3*.7
  1035.                      5  Gross      B3-B4   C3-C4   D3-D4   E3-E4
  1036.  
  1037.  
  1038.                Without the adjustment, the formulas in rows 4 and 5
  1039.                would still be pointing at column B. By adjusting, they
  1040.                now point to their respective columns.
  1041.  
  1042.  
  1043.  
  1044.  
  1045.                                                                       116
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057. -
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.                                                                 REPLICATE
  1067.  
  1068.  
  1069.                EXAMPLE #2: At the beginning of this manual in the
  1070.                section titled "A Brief Tutorial" there was an exercise
  1071.                which computed interest on a savings account for three
  1072.                years. Now let's use the Replicate Command to carry the
  1073.                computation out for twenty years. The original
  1074.                spreadsheet looked like this:
  1075.  
  1076.                           A          B          C          D   
  1077.                    1
  1078.                    2            Compute Annual Interest
  1079.                    3
  1080.                    4            Rate:             5.50
  1081.                    5
  1082.                    6            Year         Balance   Interest
  1083.                    7            1983          5,000.00     275.00
  1084.                    8            1984          5,275.00     290.13
  1085.                    9            1985          5,565.13     306.08
  1086.                    10                                          
  1087.                    11           Totals        5,871.21     871.21
  1088.  
  1089.                This time, rather than type in all the data for every
  1090.                year, let's set up the first and second detail lines:
  1091.  
  1092.                          B7   1983  (A value instead of text.)
  1093.                          C7   5000
  1094.                          D7   C7*C4/100
  1095.                          B8   B7+1  (A formula instead of text.)
  1096.                          C8   C7+D7
  1097.                          D8   C8*C4/100
  1098.  
  1099.                Notice that the year number is set up as a value instead
  1100.                of text. This allows it to be incremented by one for the
  1101.                next twenty years, rather than typing in the year numbers
  1102.                twenty times. Of course the years will be right justified
  1103.                and will contain commas and decimals, so use the /F
  1104.                command to format column B as follows:
  1105.  
  1106.                          /F B1:B256,J,L    (left justify)
  1107.                          /F B1:B256,D,0    (no decimals)
  1108.                          /F B1:B256,C,N    (no commas)
  1109.  
  1110.  
  1111.                                                                       117
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123. -
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.                                                                 REPLICATE
  1133.  
  1134.  
  1135.  
  1136.                Now replicate row 8. Twenty years will go all the way
  1137.                down to line 26. The command looks like this:
  1138.  
  1139.                                /R B8:D8,B9:D26
  1140.  
  1141.                This Replicate Command takes a little longer, because of
  1142.                its size. During the Replicate there are five "adjust"
  1143.                messages:
  1144.  
  1145.                Replicating cell B8. Adjust B7  Y or N? (or A for all)
  1146.                Replicating cell C8. Adjust C7  Y or N? (or A for all)
  1147.                Replicating cell C8. Adjust D7  Y or N? (or A for all)
  1148.                Replicating cell D8. Adjust C8  Y or N? (or A for all)
  1149.                Replicating cell D8. Adjust C4  Y or N? (or A for all)
  1150.  
  1151.                Here is a case where adjustment is required on all but
  1152.                one of the fields: the last one. If you responded "A" for
  1153.                all, or "Y" to all these messages, you would get some
  1154.                strange results. C4 is the interest rate field, which is
  1155.                a fixed field at the top of the spreadsheet. The interest
  1156.                rate is going to stay in C4 forever. So you must respond
  1157.                "N" to the last "adjust" message, or the Replicate
  1158.                command will use a different (and unpredictable) interest
  1159.                for every year: C4, C5, C6, C7, etc.
  1160.  
  1161.                So give it four Y's and an N. Now the replicate is
  1162.                complete. In the tutorial there was a "Totals" line. So,
  1163.                at B28 enter the text "Totals", at C28 enter the formula
  1164.                C26+D26, and at D28 enter the formula SUM(D7:D26). The
  1165.                spreadsheet recalculates and the interest for 20 years
  1166.                is displayed. 
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.                                                                       118
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189. -
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.                                                                     ROUND
  1199.  
  1200.  
  1201.      ____________________________________________________________________
  1202.  
  1203.                                 ROUND Function
  1204.  
  1205.  
  1206.      Purpose:  Rounds a formula or value to a specified number of
  1207.                decimal places.
  1208.  
  1209.  
  1210.      Format:   ROUND(1.1234,2)       Returns 1.12
  1211.            
  1212.                ROUND(A1,2)           If A1 = 1.125, returns 1.13
  1213.            
  1214.                ROUND(A1*2/B5,A6)     Resolves formula, then rounds its
  1215.                                      result
  1216.  
  1217.            
  1218.      Remarks:  Rounding is automatically done by CALC, when
  1219.                displaying a number in a cell. A more common means of
  1220.                rounding is to use /Format and simply change the number
  1221.                of decimals displayed on the screen.
  1222.  
  1223.                However, there are occasional computations which require
  1224.                rounding to be performed in-line. Or if your CALC
  1225.                has been customized to default to floating decimals, the
  1226.                ROUND function is useful for controlling the maximum
  1227.                number of decimals displayed.
  1228.              
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.                                                                       119
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255. -
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.                                                                      SAVE
  1265.  
  1266.  
  1267.      ____________________________________________________________________
  1268.  
  1269.                               SAVE Command (/S)
  1270.  
  1271.  
  1272.      Purpose:  Saves a spreadsheet file on disk so it can be retrieved
  1273.                later for altering or printing. Files are usually in
  1274.                CALC spreadsheet format, but /Save will also write DIF
  1275.                format files and comma-delimited ASCII (Mail-merge)
  1276.                files.
  1277.  
  1278.  
  1279.      Prompts:  Enter /S. The message  Retrieving program. Stand by . . .
  1280.                appears for a moment, as the Load/Save program is brought
  1281.                into computer memory. Then the prompt appears:
  1282.  
  1283.                Enter the file name. (Enter A:, B:, etc. for directory.)
  1284.  
  1285.                At this point, you have two choices: display a disk
  1286.                directory or save the spreadsheet file. If you press
  1287.                ENTER, the directory of the currently logged disk drive
  1288.                is displayed. By entering A:, B:, etc. you can display
  1289.                disk directories on other drives.
  1290.  
  1291.                If you enter a file name instead, CALC will save the
  1292.                currently displayed spreadsheet onto disk, giving it that
  1293.                name. The file name can be any valid MSDOS file name;
  1294.                i.e. eight characters or less, optional extension,
  1295.                optional drive designation.
  1296.  
  1297.                If the file name has an extension of .DIF, the file is
  1298.                saved in DIF (Data Interchange Format) format.
  1299.  
  1300.                If the file name has an extension of .WS, the file is
  1301.                saved in comma-delimited ASCII format, sometimes
  1302.                called Mail-merge format. Each cell across the specified
  1303.                cell range is written as either a comma (if it is empty),
  1304.                a number followed by a comma (if it is a value or
  1305.                formula), or a text string enclosed in quotation marks
  1306.                (if it is text). At the end of each line, a carriage
  1307.  
  1308.  
  1309.                                                                       120
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321. -
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330.                                                                      SAVE
  1331.  
  1332.  
  1333.                return/line feed is written. Quotation marks are blanked
  1334.                in text fields. This is a standard technique for saving
  1335.                sequential data.
  1336.  
  1337.                Note that neither DIF nor WS format have a means of
  1338.                handling formulas; they are strictly text and value
  1339.                oriented. So if you save a spreadsheet in DIF or WS
  1340.                format, it is a good idea to keep a backup copy of the
  1341.                spreadsheet in CALC spreadsheet format, so formulas
  1342.                and formatting options are saved.
  1343.  
  1344.                Some examples of valid file names are:
  1345.  
  1346.                               LOAN1
  1347.                               B:WORKSHT5.OLD
  1348.                               X
  1349.                               A:HOMEWRK.A
  1350.                               ADDRESS.WS
  1351.                               TEST.DIF
  1352.  
  1353.                After entering the file name, press ENTER. The file is
  1354.                opened. If a file with that name already exists on the
  1355.                disk, you are prompted:
  1356.  
  1357.                       File exists. Overwrite or Backup?
  1358.  
  1359.                If the file with the same name can be erased, and this
  1360.                one written over it, reply "O". If you want to save the
  1361.                old file as a backup, reply "B" and it is renamed with an
  1362.                extension of .BAK, then the current file will be saved.
  1363.                To enter a different file name, press BACKSPACE and
  1364.                CALC prompts you for a different name.
  1365.  
  1366.                If the file being saved is a DIF or WS file, two extra
  1367.                prompts are given. The first is:
  1368.  
  1369.                    Enter the cell range to be saved (or ALL).
  1370.  
  1371.                The default is ALL, but a block of cells can be specified
  1372.                instead. To confine the data saved to three columns wide
  1373.  
  1374.  
  1375.                                                                       121
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387. -
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.                                                                      SAVE
  1397.  
  1398.  
  1399.                and fifty records long, starting at C11, enter the range
  1400.                C11:E60.
  1401.  
  1402.                The second prompt asks:
  1403.  
  1404.                  Enter R to save by rows, C to save by columns.
  1405.  
  1406.                The default is R, since this processes one line at a
  1407.                time, moving left to right across the columns, which is
  1408.                the most common method. If you specify C, the file is
  1409.                written one column at a time, moving down the lines,
  1410.                effectively rotating it a quarter turn.
  1411.  
  1412.  
  1413.                As the file is being saved, the cursor coordinate in the
  1414.                lower left corner of the screen displays the progress. A
  1415.                message appears saying  Saving file; stand by . . .  .
  1416.                When this message goes away, the save is completed. The
  1417.                contents, value and attributes of each cell are saved, as
  1418.                well as the column widths, current cell cursor position,
  1419.                current settings of the global options, and current
  1420.                settings of the print options.
  1421.  
  1422.                If your computer has only one diskette drive, do not
  1423.                attempt to /Save or /Load to drive B:. CALC requires
  1424.                that the program diskette remain in the drive at all
  1425.                times. The message file and the file overlay program are
  1426.                both on drive A:, and are needed continually during the
  1427.                loading process. If your system has only one drive and no
  1428.                hard disk, you will need to save your files directly onto
  1429.                your CALC working diskette in drive A:.
  1430.  
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.                                                                       122
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453. -
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.  
  1462.                                                                      SAVE
  1463.  
  1464.  
  1465.      Example:  A spreadsheet has been completed and printed. It is to be
  1466.                saved on disk for future reference. It is to be called
  1467.                "PAYABLES". Type:
  1468.  
  1469.                               /S PAYABLES (ENTER)
  1470.  
  1471.                A month ago a spreadsheet with the same name was saved
  1472.                on this disk. The message:  File Exists. Overwrite or
  1473.                Backup?  appears. Since the new spreadsheet is an
  1474.                updated version of old PAYABLES file, reply  B . Last
  1475.                month's PAYABLES file is renamed PAYABLES.BAK,
  1476.                and the new spreadsheet is saved with the name
  1477.                PAYABLES.
  1478.  
  1479.  
  1480.  
  1481.  
  1482.  
  1483.  
  1484.  
  1485.  
  1486.  
  1487.  
  1488.  
  1489.  
  1490.  
  1491.  
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497.  
  1498.  
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.                                                                       123
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519. -
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528.                                                                       SGN
  1529.  
  1530.  
  1531.      ____________________________________________________________________
  1532.  
  1533.                                  SGN Function
  1534.  
  1535.  
  1536.      Purpose:  Determines the sign of a number, and returns 1 if the
  1537.                number is positive, 0 if the number is zero, or -1 if the
  1538.                number is negative. The value is returned to the current
  1539.                cell or formula.
  1540.  
  1541.  
  1542.      Format:   SGN(-35)            Returns -1.
  1543.            
  1544.                SGN(A1)             If A1 = 35,  then SGN(A1) =  1
  1545.                                    If A1 = 0,   then SGN(A1) =  0
  1546.                                    If A1 = -35, then SGN(A1) = -1
  1547.            
  1548.                SGN(A1*2/B5)        Resolves formula, then determines
  1549.                                    the sign of the result.
  1550.  
  1551.            
  1552.      Remarks:  SGN(x) can be entered into a cell, and used as the cell
  1553.                value; or the SGN function can be used in a formula,
  1554.                and/or may have a formula as its argument.
  1555.              
  1556.  
  1557.      Example:  A spreadsheet lists sales figures in column A. Then in
  1558.                column B it assigns a value of 1 if the sales figure to
  1559.                the left is below average, 2 if the figure equals the
  1560.                average, and 3 if the figure is above the average. Enter
  1561.                this formula into cell B1:
  1562.            
  1563.                             SGN(A1-AVERAGE(A1:A20))+2
  1564.  
  1565.                Use the Replicate command to copy the formula to cells
  1566.                B1 through B20.
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.                                                                       124
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585. -
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.                                                                       SIN
  1595.  
  1596.  
  1597.      ____________________________________________________________________
  1598.  
  1599.                                  SIN Function
  1600.  
  1601.  
  1602.      Purpose:  Computes the trigonometric sine of a cell or formula and
  1603.                returns the value to the current cell or formula.
  1604.            
  1605.            
  1606.      Format:   SIN(1.57079)        Returns 1
  1607.            
  1608.                SIN(A1)             If A1 = 1.57079, returns 1
  1609.            
  1610.                SIN(A1*2/B5)        Resolves formula, then computes sine
  1611.  
  1612.  
  1613.      Remarks:  SIN(x) can be entered into a cell, causing the sine of a
  1614.                number to be computed, and used as the cell value. Or the
  1615.                SIN function can be used in a formula, and/or may have a
  1616.                formula as its argument.
  1617.              
  1618.  
  1619.      Example:  Set up a simple spreadsheet which allows a value in
  1620.                radians to be entered, and returns the sine:
  1621.  
  1622.                               A1:  Radians:
  1623.                               A2:  Sine:
  1624.                               B1:  1.57079
  1625.                               B2:  SIN(B1)
  1626.  
  1627.                When a value is typed into B1, the sine is displayed in
  1628.                B2. Enter 1.57079 in B1, and 1 is returned in B2. Now
  1629.                change the spreadsheet so degrees can be entered instead
  1630.                of radians:
  1631.  
  1632.                               A1:  Degrees:
  1633.                               A2:  Sine:
  1634.                               B1:  90
  1635.                               B2:  SIN(B1*3.14159/180)
  1636.  
  1637.  
  1638.  
  1639.                                                                       125
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651. -
  1652.  
  1653.  
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.  
  1660.                                                                       SQR
  1661.  
  1662.  
  1663.      ____________________________________________________________________
  1664.  
  1665.                                  SQR Function
  1666.  
  1667.  
  1668.      Purpose:  Computes the square root of a value, cell or formula and
  1669.                returns the result to the current cell or formula.
  1670.  
  1671.  
  1672.      Format:   SQR(25)          Returns 5
  1673.            
  1674.                SQR(A1)          If A1 = 25, returns 5
  1675.            
  1676.                SQR(A1*2/B5)     Resolves formula, then computes
  1677.                                 the square root
  1678.            
  1679.            
  1680.      Remarks:  SQR(x) can be entered into a cell, causing the square
  1681.                root of a number to be computed, and used as the cell
  1682.                value. Or the SQR function can be used in a formula,
  1683.                and/or may have a formula as its argument.
  1684.              
  1685.  
  1686.      Example:  Set up a spreadsheet that shows the square roots of all
  1687.                numbers from 1 to 100. Start by entering:
  1688.  
  1689.                                  A1:  1
  1690.                                  A2:  A1+1
  1691.                                  B1:  SQR(A1)
  1692.                                  B2:  SQR(A2)
  1693.  
  1694.                So far we have the square roots of 1 and 2. To carry
  1695.                the table out to 100, enter:
  1696.  
  1697.                               /R A2:B2 A3:B100
  1698.                       
  1699.                When asked to adjust A1 and A2, reply Y to both. When
  1700.                replication and calcluation are done, the spreadsheet
  1701.                contains the numbers 1 to 100 in column A, and the square
  1702.                roots of 1 to 100 in column B.
  1703.  
  1704.  
  1705.                                                                       126
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717. -
  1718.  
  1719.  
  1720.  
  1721.  
  1722.  
  1723.  
  1724.  
  1725.  
  1726.                                                                     STDEV
  1727.  
  1728.  
  1729.      ____________________________________________________________________
  1730.  
  1731.                                 STDEV Function
  1732.  
  1733.  
  1734.      Purpose:  Computes the standard deviation of a range of numbers.
  1735.  
  1736.  
  1737.      Format:   STDEV(A1:A20)       Computes standard deviation of a
  1738.                                    column of numbers
  1739.  
  1740.                STDEV(A1:E1)        Computes standard deviation of a
  1741.                                    row of numbers
  1742.  
  1743.                STDEV(A1:D20)       Computes standard deviation of a
  1744.                                    block of numbers
  1745.  
  1746.            
  1747.      Remarks:  STDEV(m:n) can be entered into a cell, returning the
  1748.                standard deviation of the specified range, and used as
  1749.                the cell value. Or the STDEV function can be used in a
  1750.                formula.
  1751.              
  1752.                The coordinate range specified in a STDEV function may
  1753.                be down a column, such as STDEV(A1:A20), it may be
  1754.                across a row, such as STDEV(A1:E1), or it may be a block
  1755.                of cells (designated by the upper-left and lower-right
  1756.                coordinates), such as STDEV(A1:D20).
  1757.  
  1758.  
  1759.      Example:  Column B has a string of numbers from B7 to B26 of which
  1760.                we want to compute the standard deviation. The result is
  1761.                to be placed in B27. At B27 enter:
  1762.  
  1763.                                   STDEV(B7:B26)
  1764.  
  1765.                After recalculation, B27 contains the standard deviation
  1766.                of the range.
  1767.    
  1768.  
  1769.  
  1770.  
  1771.                                                                       127
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783. -
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.                                                                       SUM
  1793.  
  1794.  
  1795.      ____________________________________________________________________
  1796.  
  1797.                                  SUM Function
  1798.  
  1799.  
  1800.      Purpose:  Sums a range of numbers and returns the result to the
  1801.                current cell or formula.
  1802.  
  1803.      Format:   SUM(A1:A20)      Sums a column of numbers
  1804.  
  1805.                SUM(A1:E1)       Sums a row of numbers
  1806.  
  1807.                SUM(A1:D20)      Sums a block of numbers
  1808.  
  1809.      Remarks:  SUM(m:n) can be entered into a cell, causing the
  1810.                specified range to be added up, and used as the cell
  1811.                value. Or the SUM function can be used in a formula.
  1812.              
  1813.                The coordinate range specified in a SUM function may be
  1814.                down a column, such as SUM(A1:A20), it may be across a
  1815.                row, such as SUM(A1:E1), or it may be a block of cells
  1816.                (designated by the upper-left and lower-right
  1817.                coordinates), such as SUM(A1:D20).
  1818.  
  1819.      Example:  EXAMPLE #1: Column B has a string of numbers from B7
  1820.                to B26 which are to be added up. The result is to be
  1821.                placed in B27. At B27 enter:
  1822.  
  1823.                                   SUM(B7:B26)
  1824.  
  1825.                After recalculation, B27 contains the sum.
  1826.  
  1827.    
  1828.                EXAMPLE #2: A spreadsheet has a block of expense
  1829.                dollar amounts, running from C8 to J15. These are to be
  1830.                subtracted from the gross profit figure in C6, and the
  1831.                result is to be printed in C17. Move the cell cursor to
  1832.                C17 and enter:
  1833.            
  1834.                                  C6-SUM(C8:J15)
  1835.  
  1836.  
  1837.                                                                       128
  1838.  
  1839.  
  1840.  
  1841.  
  1842.  
  1843.  
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849. -
  1850.  
  1851.  
  1852.  
  1853.  
  1854.  
  1855.  
  1856.  
  1857.  
  1858.                                                                       TAN
  1859.  
  1860.  
  1861.      ____________________________________________________________________
  1862.  
  1863.                                  TAN Function
  1864.  
  1865.  
  1866.      Purpose:  Computes the trigonometric tangent of a value, cell or
  1867.                formula and returns the result to the current cell or
  1868.                formula.
  1869.  
  1870.  
  1871.      Format:   TAN(.7854)       Returns 1
  1872.            
  1873.                TAN(A1)          If A1 = .7854, returns 1
  1874.            
  1875.                TAN(A1*2/B5)     Resolves formula, then computes tangent
  1876.            
  1877.            
  1878.      Remarks:  TAN(x) can be entered into a cell, causing the tangent of
  1879.                a number to be computed, and used as the cell value. Or
  1880.                the TAN function can be used in a formula, and/or may
  1881.                have a formula as its argument.
  1882.              
  1883.  
  1884.      Example:  Set up a simple spreadsheet which allows a value in
  1885.                radians to be entered, and returns the tangent:
  1886.  
  1887.                               A1:  Radians:
  1888.                               A2:  Tangent:
  1889.                               B1:  .7854
  1890.                               B2:  TAN(B1)
  1891.  
  1892.                When a value is typed into B1, the tangent is displayed
  1893.                in B2. Enter .7854 in B1, and 1 is returned in B2. Now
  1894.                change the spreadsheet so degrees can be entered instead
  1895.                of radians:
  1896.  
  1897.                               A1:  Degrees:
  1898.                               A2:  Tangent:
  1899.                               B1:  45
  1900.                               B2:  TAN(B1*3.14159/180)
  1901.  
  1902.  
  1903.                                                                       129
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915. -
  1916.  
  1917.  
  1918.  
  1919.  
  1920.  
  1921.  
  1922.  
  1923.  
  1924.                                                                     TITLE
  1925.  
  1926.  
  1927.      ____________________________________________________________________
  1928.  
  1929.                               TITLE Command (/T)
  1930.  
  1931.  
  1932.      Purpose:  Locks spreadsheet titles along the top of the screen
  1933.                and/or along the left side, so they remain in view.
  1934.            
  1935.  
  1936.      Prompts:  Begin by moving the cell cursor to the line just below
  1937.                and/or the column to the right of the titles to be
  1938.                locked; i.e. the first "unlocked" cell. Then enter /T and
  1939.                you are prompted:
  1940.  
  1941.                       Horizontal, Vertical, Both or None.
  1942.  
  1943.                To lock one or more title lines at the top of the screen,
  1944.                enter "H". To lock one or more columns along the left
  1945.                edge of the screen, enter "V". To lock titles both
  1946.                vertically and horizontally, enter "B".
  1947.  
  1948.  
  1949.      Remarks:  Title locking may be turned off with the /TN command,
  1950.                or it may be turned off by using the = (Goto) option to
  1951.                jump to a cell above, or left of, the locked titles.
  1952.  
  1953.  
  1954.      Example:  The following spreadsheet fills up the screen and
  1955.                overflows both to the right and the bottom:
  1956.  
  1957.                       A         B         C         D         E 
  1958.                 1             Jan 85    Feb 85    Mar 85    Apr 85
  1959.                 2 Oregon         540
  1960.                 3 Florida                  441
  1961.                 4 New York                                     662
  1962.                 5 Illinois       293
  1963.  
  1964.                Whenever we scroll downward off the bottom of the screen,
  1965.                the month names on line 1 disappear. Scrolling to the
  1966.                right causes the state names to disappear. To lock both
  1967.  
  1968.  
  1969.                                                                       130
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981. -
  1982.  
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.  
  1990.                                                                     TITLE
  1991.  
  1992.  
  1993.                the months and states so they always remain on the
  1994.                screen, move the cell cursor to B2, enter  /T B
  1995.                (/Title,Both). To lock only the months, move the cell
  1996.                cursor anywhere on line 2 and enter  /T H
  1997.                (/Title,Horizontal). To lock only the state names, move
  1998.                the cell cursor anywhere in column B and enter  /T V
  1999.                (/Title,Vertical).
  2000.  
  2001.  
  2002.  
  2003.  
  2004.  
  2005.  
  2006.  
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018.  
  2019.  
  2020.  
  2021.  
  2022.  
  2023.  
  2024.  
  2025.  
  2026.  
  2027.  
  2028.  
  2029.  
  2030.  
  2031.  
  2032.  
  2033.  
  2034.  
  2035.                                                                       131
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043.  
  2044.  
  2045.  
  2046.  
  2047. -
  2048.  
  2049.  
  2050.  
  2051.  
  2052.  
  2053.  
  2054.  
  2055.  
  2056.                                                                   XTERNAL
  2057.  
  2058.  
  2059.      ____________________________________________________________________
  2060.  
  2061.                              XTERNAL Command (/X)
  2062.  
  2063.  
  2064.      Purpose:  Reads data from another CALC spreadsheet, or from a
  2065.                File Express or PC-FILE database, and places the data into
  2066.                the current cell.
  2067.  
  2068.  
  2069.      Prompts:  Position the cell cursor on the cell which will contain
  2070.                the data, then enter /X. You are prompted:
  2071.  
  2072.                Enter C to get data from a spreadsheet.
  2073.                Enter F to get data from a database.
  2074.  
  2075.                The Xternal command can reach into a spreadsheet file, or
  2076.                a database and extract data. Enter C or F to indicate the
  2077.                type of file. Subsequent prompts are specific to either
  2078.                spreadsheets or databases.
  2079.  
  2080.  
  2081.                CALC Spreadsheet
  2082.                If you replied "C" to the previous prompt, the next
  2083.                prompt is:
  2084.  
  2085.                Enter the name of the CALC spreadsheet to be read.
  2086.  
  2087.                If the spreadsheet is on a disk other than the default
  2088.                drive, its name may be prefixed by the drive letter and a
  2089.                colon (for example, A:WORK). If the file cannot be found,
  2090.                a message is given. Otherwise, the next prompt appears:
  2091.            
  2092.                          Enter the cell to be read.
  2093.            
  2094.                Any cell coordinate from A1 to BL256 is valid. After
  2095.                pressing ENTER, the message "Stand by. Search in
  2096.                progress." is given, and CALC searches the file for
  2097.                the specified cell. When the cell is found, its data is
  2098.                placed in the current cell of your spreadsheet. If the
  2099.  
  2100.  
  2101.                                                                       132
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113. -
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.                                                                   XTERNAL
  2123.  
  2124.  
  2125.                data is text, it appears as text in your spreadsheet.
  2126.                If it is a value or formula, it appears as a value in
  2127.                your spreadsheet. Format items, such as decimal places,
  2128.                justification, etc. are not copied. The data can be
  2129.                formatted as desired using the /Format command.
  2130.  
  2131.                If the requested cell has no data, a warning message is
  2132.                given. The  ERROR  designation is placed in the current
  2133.                cell, and the cell's contents are the words  NO DATA .
  2134.  
  2135.                The Xternal command only goes one level deep in its
  2136.                search for data. In other words, if the requested cell is
  2137.                also an external reference to a third spreadsheet,
  2138.                CALC does not access the third spreadsheet. It
  2139.                extracts the value of the specified cell as of the last
  2140.                time it was saved.
  2141.  
  2142.                As an example, a spreadsheet called STATE references
  2143.                cells in another spreadsheet called COUNTY, using the
  2144.                Xternal command. But COUNTY also references a spread-
  2145.                sheet called CITY. If the figures in CITY are changed, it
  2146.                is necessary to /Load and then /Save COUNTY to update its
  2147.                values. Then the spreadsheet called STATE can be loaded,
  2148.                and will have the most recent values.
  2149.            
  2150.            
  2151.                Database
  2152.                If you replied  F  to the first prompt, the next prompt is:
  2153.  
  2154.                Enter the name of the database to be accessed.
  2155.  
  2156.                If the database is on a disk other than the default
  2157.                drive, its name may be prefixed by the drive letter and a
  2158.                colon (for example, A:CUST). If the database cannot be
  2159.                found, a message is given. Otherwise, the next prompt
  2160.                appears:
  2161.  
  2162.                Field to search?
  2163.                (Enter field name, or press TAB/BACKTAB to rotate
  2164.                through the field names.)
  2165.  
  2166.  
  2167.                                                                       133
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179. -
  2180.  
  2181.  
  2182.  
  2183.  
  2184.  
  2185.  
  2186.  
  2187.  
  2188.                                                                   XTERNAL
  2189.  
  2190.  
  2191.  
  2192.                You can enter a field name at this time, or press the TAB
  2193.                key, which displays each of the field names in the
  2194.                database consecutively. When you find the field name you
  2195.                want, press ENTER to go on to the next prompt. Note: when
  2196.                typing the field name, it is not necessary to type the
  2197.                entire name. CALC will find the first field name that
  2198.                matches the characters you entered. Also, CALC ignores
  2199.                upper and lower case, converting everything to upper case
  2200.                before comparison. Now the next prompt:
  2201.                                    Look for?
  2202.  
  2203.                Enter the character string to be searched for. For
  2204.                example, if you are searching a customer file and you
  2205.                specified "customer number" as the "field to search",
  2206.                then enter the customer number here. CALC compares
  2207.                for the length of the data entered; i.e. if you enter
  2208.                ABC, CALC finds the record whose search field
  2209.                starts with ABC.
  2210.  
  2211.                The next prompt is:
  2212.  
  2213.                If there is more than one record which matches search
  2214.                data, which one should be used? (1 to 999, or ALL.)
  2215.  
  2216.                Normally the response to this prompt is 1, which tells
  2217.                CALC to read the first matching record it finds. The
  2218.                1 has already been filled in as the default, so just
  2219.                press ENTER. However, if there are multiple matches in
  2220.                your file, and you want to bypass the first two records,
  2221.                enter 3, and CALC skips the first two records.
  2222.  
  2223.                Or the word ALL can be entered in response to this
  2224.                prompt, causing all matching records to be read, and
  2225.                numeric fields totalled. If the retrieved field (next
  2226.                prompt) is a numeric field, the total of that field from
  2227.                all matching records is put into the current cell of your
  2228.                spreadsheet. See the examples below for more discussion
  2229.                of the "ALL" option.
  2230.  
  2231.  
  2232.  
  2233.                                                                       134
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240.  
  2241.  
  2242.  
  2243.  
  2244.  
  2245. -
  2246.  
  2247.  
  2248.  
  2249.  
  2250.  
  2251.  
  2252.  
  2253.  
  2254.                                                                   XTERNAL
  2255.  
  2256.  
  2257.                The final prompt is:
  2258.  
  2259.                                Field to retrieve?
  2260.  
  2261.                This is the name of the database field whose contents are
  2262.                to be placed in your spreadsheet's current cell. Just as
  2263.                above, with the "field to search" prompt, you can use the
  2264.                TAB and BACKTAB keys to rotate through the valid field
  2265.                names. When you find the field name you want, press
  2266.                ENTER to go on to the next prompt. Note: when typing the
  2267.                field name, it is not necessary to type the entire name.
  2268.                CALC finds the first field name that matches the
  2269.                characters entered. Also, CALC ignores upper and
  2270.                lower case, converting everything to upper case before
  2271.                comparison.
  2272.            
  2273.                If the retrieved field's name ends with a "#", the data
  2274.                is placed in your spreadsheet cell as a value. Otherwise
  2275.                it is placed in the cell as text.
  2276.            
  2277.                If no record is found which matches the requested
  2278.                search, a warning message is given, and the  ERROR
  2279.                condition is set for the cell.
  2280.  
  2281.            
  2282.      Remarks:  External references are not limited to just one
  2283.                spreadsheet or database. Any number of external
  2284.                spreadsheets and/or databases can be accessed from a
  2285.                single spreadsheet. The speed of the accesses varies
  2286.                depending on the number of different spreadsheets and
  2287.                databases being accessed, and the sizes of those
  2288.                spreadsheets and databases.
  2289.            
  2290.                The fields entered in a /Xternal command are saved with
  2291.                the cell contents, just as a formula is saved with its
  2292.                cell. When the cell cursor is moved to a cell with an
  2293.                external reference, the external reference parameters are
  2294.                displayed beneath the cell contents.
  2295.            
  2296.                To change one or more parameters in an external
  2297.  
  2298.  
  2299.                                                                       135
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311. -
  2312.  
  2313.  
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319.  
  2320.                                                                   XTERNAL
  2321.  
  2322.  
  2323.                reference, move the cell cursor to the cell to be
  2324.                changed, and enter /X. The normal /X prompts are given,
  2325.                but the parameter values are already filled in for you on
  2326.                the command line. Just press ENTER until you come to the
  2327.                parameter to be changed, then type the new value.
  2328.            
  2329.                To delete an external reference, simply enter another
  2330.                value in the cell, or use the /Blank command to clear the
  2331.                cell's contents.
  2332.            
  2333.                Cells with external references can be referenced in
  2334.                formulas and functions just like any other cells.
  2335.                External references are saved with the cell's data at
  2336.                /Save time, and reloaded at /Load time. One additional
  2337.                step takes place at /Load time: each external reference
  2338.                is re-resolved; i.e. the data is looked up again in the
  2339.                referenced spreadsheet or database. If the data has
  2340.                changed since the last /Save, the new data is
  2341.                substituted. Of course, this means that a spreadsheet
  2342.                with external references take longer to load. It also
  2343.                means that the externally referenced files must be online
  2344.                in order to load the spreadsheet.
  2345.          
  2346.  
  2347.      Example:  EXAMPLE #1: Preparing a profit and loss statement using
  2348.                CALC, we realize that the expense totals to be
  2349.                displayed are already in another spreadsheet. They are
  2350.                the total lines of the detail spreadsheet called
  2351.                CHEKBOOK, and are in cells B65 through G65. Since
  2352.                CHEKBOOK is updated every month, we can use external
  2353.                references to pull the data into our monthly P & L, and
  2354.                eliminate the need to re-key the data each month.
  2355.                Starting with the first expense, wages and salaries, move
  2356.                the cursor to C18 where the dollar amount is to be
  2357.                displayed. If any extra formatting is to be done, such as
  2358.                leading dollar signs, etc. it can be done now, or after
  2359.                the data is retrieved. Now enter:
  2360.  
  2361.                                /X C CHEKBOOK B65
  2362.            
  2363.  
  2364.  
  2365.                                                                       136
  2366.  
  2367.  
  2368.  
  2369.  
  2370.  
  2371.  
  2372.  
  2373.  
  2374.  
  2375.  
  2376.  
  2377. -
  2378.  
  2379.  
  2380.  
  2381.  
  2382.  
  2383.  
  2384.  
  2385.  
  2386.                                                                   XTERNAL
  2387.  
  2388.  
  2389.                CALC finds the spreadsheet called CHEKBOOK, and
  2390.                retrieves the contents of cell B65. Since B65 contains a
  2391.                dollar amount, that amount is put into cell C18 of our P&L
  2392.                spreadsheet as a value, rather than text. To retrieve the
  2393.                remaining expense amounts into cells C19 through C23, we
  2394.                repeat the /X command above, referencing cells C65 through
  2395.                G65. The command must be retyped for each cell. There is
  2396.                no Replicate command for external references (not yet,
  2397.                anyway). When finished, we can show the total expenses
  2398.                either by retrieving them from CHEKBOOK using /X, or we
  2399.                can simply total up the numbers in C18 through C23 using
  2400.                the SUM(C18:C23) command.
  2401.  
  2402.                EXAMPLE #2: Working on the same P & L described in
  2403.                example 1, we now want to show the total sales for the
  2404.                month, in two categories: retail sales and wholesale
  2405.                sales. All the sales invoices for the month have been
  2406.                entered into a File Express database called MTDSALES, with
  2407.                invoice number, date, customer number and amount. The
  2408.                first three letters of the invoice number are "RTL" for
  2409.                retail sales and "WHL" for wholesale sales. Start by
  2410.                moving the cell cursor to the cell where the retail sales
  2411.                amount is to be displayed. Now enter /X and respond to
  2412.                the prompts as shown:
  2413.  
  2414.                        CALC or FILE:          F
  2415.                        Name of database:      MTDSALES
  2416.                        Field to search:       Invoice number
  2417.                        Look for:              RTL
  2418.                        Which one:             ALL
  2419.                        Field to retrieve:     Amount#
  2420.  
  2421.                Now we wait for a few seconds while CALC reads
  2422.                the database. Since we specified ALL, it will read every
  2423.                record whose invoice number starts with RTL, and total up
  2424.                the Amount# field. When the search is done, the sum of
  2425.                Amount# from all the RTL records appears on our
  2426.                spreadsheet in the current cell. To print the total
  2427.                wholesale sales, move down one cell and enter the same
  2428.                /X command as above, but substituting WHL for RTL.
  2429.  
  2430.  
  2431.                                                                       137
  2432.  
  2433.  
  2434.  
  2435.  
  2436.  
  2437.  
  2438.  
  2439.  
  2440.  
  2441.  
  2442.  
  2443. -
  2444.  
  2445.  
  2446.  
  2447.  
  2448.  
  2449.  
  2450.  
  2451.  
  2452.                                                                       ZAP
  2453.  
  2454.  
  2455.      ____________________________________________________________________
  2456.  
  2457.                                ZAP Command (/Z)
  2458.  
  2459.  
  2460.      Purpose:  Clears the spreadsheet area and resets all the system
  2461.                defaults.
  2462.  
  2463.  
  2464.      Prompts:  Enter /Z and you will be prompted:
  2465.  
  2466.                           Clear contents? (Y or N).
  2467.  
  2468.                To clear the current contents of every cell, and reset
  2469.                all the system defaults, enter "Y". To leave the current
  2470.                spreadsheet as is, reply "N" or ESCAPE.
  2471.  
  2472.  
  2473.      Remarks:  If the spreadsheet currently in memory has not been
  2474.                saved, it will be lost. Use the Save Command (/S) to save
  2475.                the spreadsheet before exiting. To prevent accidental
  2476.                loss of data, CALC asks for confirmation (Clear
  2477.                contents?) before clearing.
  2478.  
  2479.                An alternate method of clearing memory is to use the /Q
  2480.                command to exit to the operating system, then restart
  2481.                CALC.
  2482.  
  2483.  
  2484.      Example:  The spreadsheet currently on the screen has been saved on
  2485.                disk. The spreadsheet area is to be cleared. Enter:
  2486.  
  2487.                                      /Z Y
  2488.  
  2489.                A message appears saying  Clearing contents. Stand by...
  2490.                and after a pause, a blank screen appears with the cursor
  2491.                at A1 and the column widths reset to the default length.
  2492.  
  2493.  
  2494.  
  2495.  
  2496.  
  2497.                                                                       138
  2498.  
  2499.  
  2500.  
  2501.  
  2502.  
  2503.  
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509.