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

  1. -
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.                                                                       FIX
  11.  
  12.  
  13.      ____________________________________________________________________
  14.  
  15.                                  FIX Function
  16.  
  17.  
  18.      Purpose:  Converts a number or formula to an integer, and returns
  19.                the resulting value to the current cell or formula. Does
  20.                not return the next lower number when negative, as does
  21.                the INT function.
  22.  
  23.  
  24.      Format:   FIX(-2.5)           Returns -2 
  25.  
  26.                FIX(A1)             If A1 contains -2.5, returns -2.
  27.  
  28.                FIX(A1*2/A5)        Resolves the formula, then returns the
  29.                                    fixed decimal portion of the result
  30.  
  31.  
  32.      Remarks:  FIX(x) can be entered into a cell, or the FIX function
  33.                can be used in a formula.
  34.                
  35.                All digits to the right of the decimal are removed, and
  36.                the ones to the left of the decimal become the returned
  37.                value. This differs from the INT function, which returns
  38.                the next lower negative number.
  39.  
  40.  
  41.      Example:  Enter the following formulas into the specified cells.
  42.                The resulting values are shown:
  43.  
  44.                         Cell        Formula         Result
  45.                          A1:       FIX(23.999)         23 
  46.                          A2:       FIX(-1.567)         -1
  47.                          A3:       INT(23.999)         23
  48.                          A4:       INT(-1.567)         -2
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.                                                                        51
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. -
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.                                                                    FORMAT
  77.  
  78.  
  79.      ____________________________________________________________________
  80.  
  81.                              FORMAT Command (/F)
  82.  
  83.  
  84.      Purpose:  Sets the formatting options for a cell, a range of cells
  85.                or the entire spreadsheet.
  86.  
  87.  
  88.      Prompts:  Enter /F and you will be prompted:
  89.  
  90.                        Enter range to be formatted (or ALL).
  91.  
  92.                Enter a single cell, a range of cells (which may be a
  93.                block), or ALL. To format only the current cell, press
  94.                ENTER or comma. The next prompt is:
  95.  
  96.                Decimals  Width      Justify  Commas     $     (     %
  97.                Protect   Unprotect  Hide     Bargraph   Zero-blank
  98.      
  99.                Enter D, W, J, C, $, (, %, P, U, H, B or Z to indicate
  100.                which type of formatting you want to do. The next prompt
  101.                depends on which option you select:
  102.  
  103.                Decimals
  104.                Number of decimal places (0 to 12), Floating, Scientific.
  105.                The number of places to the right of the decimal can be
  106.                changed using this command. This number of decimals is
  107.                used on the screen display, on printed output, and in
  108.                computations.
  109.  
  110.                "Floating" works like the F setting on a calculator. All
  111.                significant decimals to the right of the decimal are used
  112.                in computations. If the column is wide enough, all
  113.                significant decimals are displayed and printed. If the
  114.                column is not wide enough, CALC drops enough decimals
  115.                on the right so the number fits in the column. For
  116.                example, if the formula 2000/3 is entered in a column
  117.                that is ten characters wide, the number 666.666667 is
  118.                displayed. If the column is narrowed to five characters,
  119.  
  120.  
  121.                                                                        52
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133. -
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.                                                                    FORMAT
  143.  
  144.  
  145.                the number 666.7 is displayed. Reducing the column width
  146.                to four or three characters displays the number as 667
  147.                (with no decimal point). If the column width is narrowed
  148.                to two, the << symbols print, indicating the number will
  149.                not fit in the cell.
  150.  
  151.                "Scientific" format displays the number in exponential
  152.                form, similar to scientific notation. The mantissa and
  153.                exponent are separated by the letter E. For example,
  154.                3E-5 is the same as .00003 and -3E+10 is the same as
  155.                -30,000,000,000.
  156.  
  157.                Width
  158.                Enter column width (0 to 75).
  159.                The width of a column or range of columns can be changed
  160.                using this command. A column width of zero causes the
  161.                column to be "hidden", allowing data to be stored without
  162.                being seen.
  163.  
  164.                Justify
  165.                Right-justify, Left-justify or Center.
  166.                Specify "L" to have numbers shifted to the left side of
  167.                the column. Specify "R" to have text shifted to the right
  168.                side of the column. "C" centers the cell's contents.
  169.                CALC defaults to right-justify for numbers and left-
  170.                justify for text unless overridden by this command.
  171.  
  172.                Commas
  173.                Commas between thousands (Y or N).
  174.                To have 12345.00 print as 12,345.00 specify "Y" to this
  175.                prompt. To remove the commas from a number, specify
  176.                "N". For example, if the number is a year such as 1985
  177.                you would not want it to print as 1,985.
  178.  
  179.                $
  180.                Print leading dollar sign ($) on numbers (Y or N).
  181.                If you specify Y, a dollar sign will be printed
  182.                immediately to the left of the most significant digit.
  183.  
  184.  
  185.  
  186.  
  187.                                                                        53
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199. -
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.                                                                    FORMAT
  209.  
  210.  
  211.                (
  212.                Enclose negative numbers in parentheses (Y or N).
  213.                If Y is specified, a negative number will have
  214.                parentheses around it, rather than a minus sign. To
  215.                switch back to minus sign, specify N. Note: When this
  216.                format option is specified, positive numbers have one
  217.                blank space to the right. This is necessary so a column
  218.                of positive and negative numbers line up properly.
  219.  
  220.                %
  221.                Print a percent sign (%) to the right of numbers (Y or N).
  222.                If Y is specified, a percent sign is printed on the right
  223.                of the number. This option does not affect computation.
  224.  
  225.                Protect
  226.                F = protect formulas, V = protect values, T = protect text,
  227.                N = protect non-blank cells, A = protect all cells in range
  228.                When a cell is protected, nothing can be entered into it.
  229.                This keeps formulas and headings from accidentally being
  230.                destroyed by overtyping. When a cell is protected, the
  231.                word PROTECTED appears on the message line when the
  232.                cursor moves to that cell. Also, if you have configured
  233.                CALC accordingly, protected fields can be displayed
  234.                in a different color than the display area (or in inverse
  235.                video on a monochrome monitor). Once a cell is protected,
  236.                it can be unprotected using the Unprotect format option,
  237.                discussed next.
  238.  
  239.                From the message, you can see there are several options
  240.                for protecting ranges of cells. The Protect Option has no
  241.                global setting. All cells are unprotected at startup, and
  242.                if you protect ALL, every cell in the spreadsheet is
  243.                individually protected.
  244.  
  245.                Unprotect
  246.                F=unprotect formulas, V=unprotect values, T=unprotect text,
  247.                N=unprotect non-blank cells, A=unprotect all cells in range
  248.                When a cell has been protected, nothing can be entered
  249.                into it. To remove the protection so the cell's contents
  250.                can be changed, use the Unprotect option.
  251.  
  252.  
  253.                                                                        54
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265. -
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.                                                                    FORMAT
  275.  
  276.  
  277.                From the message, you can see there are several options
  278.                for unprotecting ranges of cells. The Unprotect Option
  279.                has no global setting. All cells are unprotected at
  280.                startup.
  281.  
  282.                Hide
  283.                P=hide cells on printer only, S=hide cells on screen only,
  284.                B=hide cells on printer and screen, N=Don't hide cells.
  285.                A hidden cell is one which has something in it, but its
  286.                contents are not displayed on reports and/or the screen.
  287.                Sometimes it is useful to hide some cells such as those
  288.                containing lookup tables. Sometimes there is confidential
  289.                data used in calculations which should not be included on
  290.                hard copy reports. Once a cell is hidden, you can still
  291.                see its contents by either moving the cursor to the cell
  292.                and looking at the message line, or by using the /GF
  293.                command to display formulas on the screen. /GF ignores
  294.                the hidden cell flag.
  295.  
  296.                There are several options for hiding/unhiding ranges of
  297.                cells. The Hide Option has no global setting. All cells
  298.                are unhidden at startup.
  299.  
  300.                Bargraph
  301.                Print numbers in bar graph format 1, 2 or 3 (N=no graph).
  302.                If a cell contains a value or formula, the result will be
  303.                displayed as a string of bar graph characters. By
  304.                entering a 1, 2 or 3, up to three different bar graph
  305.                patterns/colors can be displayed.
  306.  
  307.                If the bar graph exceeds the width of the cell, the last
  308.                character displays a > character, indicating the bar
  309.                continues beyond the column. If the bar graph is in a
  310.                right-justified cell, the bar graph is right-justified,
  311.                and the > sign becomes a < sign on the left.
  312.  
  313.                When a bar graph cell is printed, one of three characters
  314.                is printed. CALC's default characters for printed bar
  315.                graphs are  ****, ////  and  ]]]] , which are not nearly as
  316.                attractive as the patterns on the screen. If your printer
  317.  
  318.  
  319.                                                                        55
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331. -
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.                                                                    FORMAT
  341.  
  342.  
  343.                has a graphics character set, it is possible to configure
  344.                CALC to print the same patterns as appear on the
  345.                screen, or others if you prefer. See the section titled
  346.                Customizing CALC for information on changing printed
  347.                bar graph characters, screen bar graph characters and
  348.                screen bar graph colors.
  349.  
  350.                Zero-blank
  351.                Display zeros as blanks (spaces) (Y or N).
  352.                If this option has been set for a cell, and the cell
  353.                contains a value or formula which resolves to zero, the
  354.                cell will appear empty. At startup, the default is to
  355.                display zeros (0, .0, .00, etc.) in all cells. CALC
  356.                has always had a global option to not display zeros. The
  357.                /G,Z command still exists, and is effectively the same as
  358.                /F,ALL,Z.
  359.  
  360.      Remarks:  Each of the formatting options which have responses of
  361.                "Y" or "N" will also accept a response of ENTER. If you
  362.                press the ENTER key instead of Y or N, the formatting
  363.                options for the specified cell(s) clear the format
  364.                option, so the cell's format reverts to the default
  365.                (global) setting.
  366.  
  367.                After responding to one of the formatting options,
  368.                CALC repeats the prior prompt, allowing you to specify
  369.                more than one formatting option for a cell or range.
  370.  
  371.                A cell can be formatted before it has data put in it, and
  372.                the format options take effect as soon as data is put in
  373.                it. However, empty cells' formats are not saved when a
  374.                spreadsheet is /Saved.
  375.  
  376.                When individual cells are formatted, two characters of
  377.                memory are used per cell. But when ALL is specified, a
  378.                "global default" code is changed in CALC. Specifying
  379.                ALL uses none of the spreadsheet memory. Specifying a
  380.                range of cells causes two bytes of memory to be used for
  381.  
  382.  
  383.  
  384.  
  385.                                                                        56
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397. -
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.                                                                    FORMAT
  407.  
  408.  
  409.                every cell in the range. So for example, this statement:
  410.                              
  411.                                  /F A1:Z99,D,3
  412.  
  413.                uses 5K of memory, while this statement:
  414.  
  415.                                    /F ALL,D,3
  416.  
  417.                uses no memory at all. So on large spreadsheets it is a
  418.                good idea to determine the most common default values
  419.                first, and set them with the "ALL" global format option. 
  420.                Then the cells that vary from the default can be changed
  421.                individually. This not only saves memory, it usually
  422.                saves typing as well.
  423.  
  424.                The global format defaults are as follows: 
  425.  
  426.                        Decimals:    2
  427.                        Width:       11 (all columns)
  428.                        Justify:     Left for text, Right for numbers
  429.                        Commas:      Yes
  430.                        Protected:   No
  431.                        Bargraph:    No
  432.                        Hidden:      No
  433.                        Zero-blank:  No
  434.                        $, (, %:     No
  435.                       
  436.                These global defaults can be permanently changed by
  437.                specifying ALL, then using the /Configure,Save command
  438.                to permanently save them in CALC.PRO. See the section
  439.                titled Customizing CALC for more information.
  440.  
  441.      Example:  EXAMPLE #1: A series of year numbers have been entered
  442.                into column B, starting with 1983. The problem is that
  443.                the standard defaults cause the years to print as
  444.                1,983.00 instead of 1983. Use the /F command first to
  445.                turn off the decimals, then to turn off the commas:
  446.  
  447.                       First enter:   /F B1:B50,D,0
  448.                       then enter:              C,N
  449.  
  450.  
  451.                                                                        57
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463. -
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.                                                                    FORMAT
  473.  
  474.  
  475.                The years will now print as four-digit numbers without
  476.                commas and decimals. To also left-justify the years, and
  477.                their heading which is a text field: "Years", within
  478.                column B, enter:
  479.  
  480.                                  /F B1:B50,J,L
  481.  
  482.  
  483.                EXAMPLE #2: We want to prepare a spreadsheet to produce
  484.                the following report:
  485.  
  486.                        Period   ------- Sales -------
  487.                          1/85   $50,000  *****
  488.                          2/85   $59,000  ******
  489.                          3/85   $42,400  ****
  490.                          4/85   $92,800  *********
  491.                          5/85  $121,000  ************
  492.  
  493.                Begin by entering the numbers and text. This is what they
  494.                look like before formatting:
  495.  
  496.                        A         B         C         D         E    
  497.                 1 Period                         ------- Sales -------
  498.                 2      1.00 /              85.00  50,000.00       5.00
  499.                 3      2.00 /              85.00  59,000.00       6.00
  500.                 4      3.00 /              85.00  42,400.00       4.00
  501.                 5      4.00 /              85.00  92,800.00       9.00
  502.                 6      5.00 /              85.00 121,000.00      12.00
  503.  
  504.                Note that we could have entered the month/year as text
  505.                fields. But by making them numeric we can use the
  506.                Replicate command to enter them, saving considerable
  507.                typing on large spreadsheets. (See /Replicate for an
  508.                example of how to use it on columns A and B above.) To
  509.                get the formatting right on the spreadsheet above, start
  510.                by specifying a global default of no decimals:
  511.  
  512.                               /F ALL D 0 (ENTER)
  513.  
  514.  
  515.  
  516.  
  517.                                                                        58
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529. -
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.                                                                    FORMAT
  539.  
  540.  
  541.                Next, change the column widths. Columns A and C need to
  542.                be two characters wide. Column B needs to be one
  543.                character wide. Column D, no change, and column E should
  544.                be wide enough to handle a lengthy graph, say forty
  545.                characters:
  546.  
  547.                         /F A1:C20 W 2 (ENTER) (ENTER)
  548.                         /F B1:B20 W 1 (ENTER) (ENTER)
  549.                         /F E1:E20 W 40 (ENTER)
  550.  
  551.                Next specify Bargraph format for column E. Notice that
  552.                you didn't hit ENTER twice on the previous command, so
  553.                you need not retype /F E1:E20. Just type:
  554.  
  555.                            B 1 Y (ENTER) (ENTER)
  556.  
  557.                And finally, put floating dollar signs on column D:
  558.  
  559.                         /F D1:D20 $ Y (ENTER) (ENTER)
  560.  
  561.                On the screen, the bargraphs do not appear as asterisks;
  562.                they are shaded bars. When printed, they will appear as
  563.                asterisks. If your printer has graphic characters, it is
  564.                possible to print special characters like the ones on the
  565.                screen. See the section titled Customizing CALC
  566.                for more information.
  567.  
  568.                One suggestion on the graphic display in column E: use
  569.                formulas based on column D. For example, in cell E2,
  570.                instead of entering "5", enter "D2/10000". In that way,
  571.                if column D's figures are changed, the graphs are
  572.                immediately updated. Also, it makes the graph column easy
  573.                to replicate.
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.                                                                        59
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595. -
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.                                                                    GLOBAL
  605.  
  606.  
  607.      ____________________________________________________________________
  608.  
  609.                              GLOBAL Command (/G)
  610.  
  611.  
  612.      Purpose:  Sets various system options of CALC, including border
  613.                display, row/column calculation sequence, automatic
  614.                recalculation, and printing zeros as blanks.
  615.  
  616.  
  617.      Prompts:  Enter /G and you will be prompted:
  618.  
  619.                         Border, Row, Column, Manual, Auto,
  620.                         Formula, Zero-blank, Smart-cursor
  621.  
  622.                To select a global option, enter the first letter of the
  623.                option. It is not necessary to press ENTER.
  624.  
  625.  
  626.      Remarks:
  627.                Border
  628.                The BORDER option turns the screen borders on and off.
  629.                If your screen has borders on the top and left edge, use
  630.                this option to turn them off. To turn them back on, use
  631.                this option a second time. Note: this option has no
  632.                effect on printed reports. There is a special option in
  633.                the /P command for printing borders.
  634.  
  635.                Row and Column
  636.                The ROW and COLUMN options indicate whether calculation
  637.                should proceed row-by-row, or column-by-column. Each time
  638.                a calculation is done, you can watch the cursor "ripple"
  639.                down the screen, recalculating each of the formulas in
  640.                your spreadsheet. In many cases, a formula will refer to
  641.                a cell that contains another formula. When this happens,
  642.                the formulas must be evaluated in the proper sequence, or
  643.                you will not get the answer you were expecting. Most
  644.                spreadsheets are designed for row-by-row calculation, so
  645.                ROW is the default at startup time. If you design a
  646.                spreadsheet that requires calculation to be done down the
  647.  
  648.  
  649.                                                                        60
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661. -
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.                                                                    GLOBAL
  671.  
  672.  
  673.                columns instead of across the rows, specify the COLUMN
  674.                option.
  675.  
  676.                If your spreadsheet has forward references (references to
  677.                formulas which have not been recalculated yet), and
  678.                neither ROW or COLUMN will work properly, you may
  679.                need to use iterative calculation. See the ITERATIONS
  680.                option in the section titled "Customizing CALC"
  681.                for more information.
  682.  
  683.                Warning: Be careful to not create spreadsheets with
  684.                "circular references": two formulas refer to each other,
  685.                or "A" refers to "B" refers to "C" refers to "A". When
  686.                you suspect a circular reference, press ! to recalculate.
  687.                If one or more of the numbers on your spreadsheet keep
  688.                changing each time you recalculate, your spreadsheet
  689.                probably has a circular reference, and may need to be
  690.                restructured to eliminate the problem.
  691.  
  692.                Manual and Auto
  693.                The MANUAL and AUTO options tell CALC whether
  694.                to automatically recalculate each time a number or
  695.                formula is entered, or whether to wait and not calculate
  696.                until the ! is pressed. At startup, the AUTO option is
  697.                set. As numbers and formulas are entered, the message
  698.                "CALCULATING" will appear, and the cursor will "ripple"
  699.                down the screen each time before the next field can be
  700.                entered. As the spreadsheet gets larger, this pause can
  701.                become annoying. To turn off automatic recalculation,
  702.                select the MANUAL option.
  703.  
  704.                Formula
  705.                The FORMULA option tells CALC to display cells'
  706.                contents on the screen instead of the cells' values. For
  707.                example, if cell A5 contains A1+A1 and displays 12.34
  708.                on the screen, /GF causes A1+A1 to be displayed on the
  709.                screen, in the cell. Typing /GF a second time returns the
  710.                display to its normal mode.
  711.  
  712.  
  713.  
  714.  
  715.                                                                        61
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727. -
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.                                                                    GLOBAL
  737.  
  738.  
  739.                In Formula mode, text is displayed left-justified in its
  740.                cell, with a leading quotation mark. Values and formulas
  741.                are displayed exactly as they were entered. Any text,
  742.                formulas or values which do not fit in the column overlap
  743.                into adjacent empty columns on the right.
  744.  
  745.                In Formula mode, Protected fields have a leading "P" on
  746.                the left in inverse video. Hidden fields' contents are
  747.                not hidden in Formula mode.
  748.  
  749.                Zero-Blank
  750.                The ZERO-BLANK option tells CALC to display all
  751.                cells whose contents are zero as blank cells. At startup,
  752.                the default is to display zeros (0, .0, .00, etc.) in the
  753.                cell. Select this option to display them as blanks. To
  754.                restore the original default of displaying zeros as 0,
  755.                .0, etc. use /Global, Zero-blank a second time. See also
  756.                /Format, Zero-blank.
  757.  
  758.                Cursor
  759.                The Smart-cursor option changes the way the ENTER key
  760.                works. If the Smart Cursor has been turned on,
  761.                CALC "remembers" the direction the arrow key moved
  762.                previously. When the ENTER key is pressed, the cell
  763.                cursor automatically moves in the remembered direction.
  764.  
  765.                When the Smart Cursor is turned on, an arrow appears in
  766.                the lower left corner of the screen, indicating the
  767.                direction the cursor will move next. When ENTER is
  768.                pressed, the cell cursor moves in that direction.
  769.  
  770.                Accountants and others who are accustomed to ten-key
  771.                entry of columns of numbers will find Smart Cursor
  772.                especially useful. To enter a column of numbers with
  773.                Smart Cursor, enter the first number and move the cursor
  774.                downward. Then type  /GS  to turn on the Smart Cursor.
  775.                A tiny down-arrow appears in the lower-left corner of the
  776.                screen. Put your ten-key pad in numeric lock, enter the
  777.                next number on it ten-key style, and then press the ENTER
  778.                key with your forefinger. The number is entered and the
  779.  
  780.  
  781.                                                                        62
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793. -
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.                                                                    GLOBAL
  803.  
  804.  
  805.                cursor automatically advances downward. For experienced
  806.                ten-key operators, this is a very fast way to enter
  807.                numbers.
  808.  
  809.  
  810.      Example:  A spreadsheet is getting large, and every time a number
  811.                is typed in, a recalculation is done which takes several
  812.                seconds to complete. Turn off automatic recalculation
  813.                with this command:
  814.  
  815.                                      /G M
  816.  
  817.                Later when recalculation is desired, you can type ! to
  818.                force recalculation. If you get to the point of fine-          
  819.                tuning the spreadsheet and would like to have
  820.                recalculation turned back on, enter:
  821.  
  822.                                      /G A
  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.                                                                        63
  848.  
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859. -
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.                                                                        IF
  869.  
  870.  
  871.      ____________________________________________________________________
  872.  
  873.                                  IF Function
  874.  
  875.  
  876.      Purpose:  Evaluates an expression as true or false, and returns the
  877.                "then" argument if true, or the "else" argument if false.
  878.  
  879.  
  880.      Format:   IF(A1=5,1,0)        If A1 contains a 5, a 1 is returned.
  881.                                    Otherwise a 0 is returned.
  882.  
  883.                IF(A1>B5,D3,99)     If the number in A1 is greater than
  884.                                    the number in B5, the contents of D3
  885.                                    are returned. Otherwise the number
  886.                                    99 is returned.
  887.  
  888.                Alternate form:
  889.  
  890.                IF A1=5 THEN 1 ELSE 0  (Same as first example above)
  891.  
  892.                IF A1 > B5 THEN D3 ELSE 99 (Same as second example)
  893.  
  894.  
  895.             
  896.      Remarks:  The three operands of the IF function can best be
  897.                described as follows:
  898.  
  899.                     IF(this expression is true,then return this
  900.                        expression,otherwise return this expression)
  901.  
  902.                If the first operand contains two expressions separated
  903.                by a relational operator, the expressions are resolved,
  904.                then compared. If the resulting comparison is true, the
  905.                second operand is used. If the comparison is false, the
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913.                                                                        64
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925. -
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.                                                                        IF
  935.  
  936.  
  937.                third operand is used. Valid relational operators are:
  938.  
  939.                Operator       Meaning                  Example
  940.  
  941.                   =          Equal                    A1 = 0
  942.                <> or ><      Not equal                A1 <> B1
  943.                   <          Less than                A1 < B1+3
  944.                   >          Greater than             A1 > .0987
  945.                <= or =<      Less than or equal to    .987 <= A1
  946.                >= or =>      Greater than or          B1*3 >= 5-A1
  947.                              equal to
  948.  
  949.  
  950.                If the first operand contains no relational operator, it
  951.                is resolved and compared to zero. If it is not zero, the
  952.                second operand is used. If it is zero, the third operand
  953.                is used. For example, enter IF(5,3,2) in a cell, and the
  954.                number 3 will appear, since 5 is non-zero.
  955.  
  956.                Multiple comparisons may be done in the first operand,
  957.                using Boolean (logical) operators. For example, if a
  958.                number being tested can be either 1 or 2, the IF function
  959.                could be written like this:
  960.  
  961.                        IF A1=1 OR A1=2 THEN ... ELSE ...
  962.  
  963.  
  964.                The second and third operands of the IF function may be
  965.                any valid value, cell reference or formula. They may not
  966.                be text. However, text may be displayed by putting it in
  967.                another cell and referring to that cell in an IF operand.
  968.                For example, if A5 contains the text "Out of stock", and
  969.                at A8 we entered IF(1=1,A5) then cell A8 would display
  970.                the text "Out of stock". Another example of this feature
  971.                is shown below, in the example section.
  972.  
  973.                There is an alternate form of the IF function which some
  974.                people find easier to read. The parentheses are optional,
  975.                and the words THEN and ELSE can be used instead of
  976.                commas. THEN and ELSE must have at least one space to
  977.  
  978.  
  979.                                                                        65
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991. -
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.                                                                        IF
  1001.  
  1002.  
  1003.                the left and right. Spaces can be used freely in any of
  1004.                the operands, except that cell references cannot have
  1005.                spaces in them; i.e. A11 can't be A 11. For example:
  1006.  
  1007.                            IF A1 = 5 THEN 1 ELSE 0
  1008.                            IF A1 > B5 THEN D3
  1009.  
  1010.                The IF function may be used in formulas. For example,
  1011.                this is a valid expression:
  1012.  
  1013.                                1000+A1*IF(B1,C1,0)
  1014.  
  1015.                The IF function may also be nested. For example, this is
  1016.                a valid expression:
  1017.  
  1018.                             IF(A1>0,B5,IF(A1=0,B6,B7))
  1019.  
  1020.                The expression tests A1 to see if it is greater than
  1021.                zero. If it is, the contents of B5 are returned. But if
  1022.                the number in A1 is not greater than zero, another test
  1023.                is done. Is it equal to zero? If so, return B6, otherwise
  1024.                return B7.
  1025.  
  1026.                An IF statement may be nested in the second and third
  1027.                operands, but may not appear in the first operand of
  1028.                another IF statement. The nesting of IF statements can be
  1029.                as many levels as you want, but the real restriction is
  1030.                the size of the formula that can be entered (currently 74
  1031.                characters). By breaking them up into multiple cells that
  1032.                refer to one another, very complex relational expressions
  1033.                can be generated. Keep in mind, however, that evaluating
  1034.                complex expressions can slow down recalculation
  1035.                considerably.
  1036.  
  1037.  
  1038.      Example:  EXAMPLE #1: A salesman's commission is 12% of gross
  1039.                sales, but the salesman is always guaranteed to make at
  1040.                least a minimum of $1500. Gross sales are in cell B5.
  1041.                Compute his commission in C5, using the IF function. Move
  1042.  
  1043.  
  1044.  
  1045.                                                                        66
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057. -
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.                                                                        IF
  1067.  
  1068.  
  1069.                the cursor to C5, and enter:
  1070.  
  1071.                          IF(B5*.12>1500,B5*.12,1500)
  1072.  
  1073.                If gross sales times .12 are greater than $1500, pay the
  1074.                salesman that amount. But if gross sales times .12 are
  1075.                less than or equal to $1500, pay him a flat $1500.
  1076.  
  1077.                If the spreadsheet listed several salesmen down the
  1078.                columns, this formula could be copied to all of them,
  1079.                using the /Replicate command.
  1080.  
  1081.                EXAMPLE #2: A spreadsheet contains the payroll for an
  1082.                employee. The pay periods are numbered 1 through 24, in
  1083.                cells A3 through A26. The columns look like this:
  1084.  
  1085.                               A        B       C       D     
  1086.                         1    Pay     Gross    YTD            
  1087.                         2   Period   Wage    Gross    FICA   
  1088.  
  1089.                The employee's gross pay for each period is in column B.
  1090.                Year-to-date gross pay is in column C, which is simply
  1091.                the running total of column B. FICA for each period is in
  1092.                column D.
  1093.  
  1094.                The FICA computation can normally be done with a simple
  1095.                multiplication: gross wage times .067. But if the
  1096.                employee makes more than $37,800 his FICA deduction
  1097.                should stop. Assume that all the other numbers and
  1098.                formulas have been filled in for the 24 pay periods, and
  1099.                use the IF function to compute FICA in D3 through D26. In
  1100.                D3, put the following formula:
  1101.  
  1102.                IF(C3<37800,B3,IF(C3-B3>37800,0,37800-C3+B3))*.067
  1103.  
  1104.                The formula says: If YTD gross wage is less than 37800,
  1105.                then use the current gross wage, times .067. But if last
  1106.                period's YTD gross (C3-B3) was over 37800, then the
  1107.                ceiling has been reached, so FICA is zero. Finally, if we
  1108.                are in the period where only part of the wage is subject
  1109.  
  1110.  
  1111.                                                                        67
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123. -
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.                                                                        IF
  1133.  
  1134.  
  1135.                to FICA, compute that amount (37800-C3+B3) and multiply
  1136.                it times .067.
  1137.  
  1138.                Now use the /Replicate command to copy D3 to cells D4
  1139.                through D26. When it asks  Adjust - Y/N? (or A) , reply A.
  1140.  
  1141.  
  1142.                EXAMPLE #3: A spreadsheet contains student names in A5
  1143.                through A30, and test scores in B5 through B30. We want
  1144.                to show each student's grade in column C, using the
  1145.                following table:
  1146.  
  1147.                          Score of 90 to 100 - grade is A
  1148.                          Score of 80 to  89 -          B
  1149.                          Score of 55 to  79 -          C
  1150.                          Score of 40 to  54 -          D
  1151.                          Score of  0 to  39 -          F
  1152.  
  1153.                Out to the right of the spreadsheet, in cells G1 to G5,
  1154.                enter the text data:
  1155.  
  1156.                                    G1:  A
  1157.                                    G2:  B
  1158.                                    G3:  C            
  1159.                                    G4:  D
  1160.                                    G5:  F
  1161.  
  1162.                At cell C5, enter this expression:
  1163.  
  1164.                IF(B5>89,G1,IF(B5>79,G2,IF(B5>54,G3,IF(B5>39,G4,G5))))
  1165.  
  1166.                Then use the /Replicate command to copy the cell to C6
  1167.                through C30. When /R asks  Adjust - Y/N? (or A)  reply
  1168.                Y to the cells in column B, and N to the cells in column
  1169.                G, which are constant data.
  1170.  
  1171.                The table in column G can be hidden from view on a
  1172.                printed report or on the screen by setting the column
  1173.                width to zero, or by using the /Format, Hide command.
  1174.  
  1175.  
  1176.  
  1177.                                                                        68
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189. -
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.                                                                    INSERT
  1199.  
  1200.  
  1201.      ____________________________________________________________________
  1202.  
  1203.                              INSERT Command (/I)
  1204.  
  1205.      Purpose:  Inserts a row or column in the spreadsheet.
  1206.  
  1207.      Prompts:  Enter /I and you will be asked:
  1208.              
  1209.                               Insert Row or Column?
  1210.              
  1211.                to which you reply either R or C. The next prompt is:
  1212.              
  1213.                Enter row number. New row will be inserted above it.
  1214.                                      or
  1215.                Enter Column letter. New column will be inserted to left.
  1216.                       
  1217.                The default, if ENTER is pressed, is to use the row
  1218.                number or column letter of the current cell (the one
  1219.                where the cell cursor is currently located). 
  1220.  
  1221.      Remarks:  If a column is inserted, all the columns to the right of
  1222.                it shift right. Likewise, if a row is inserted, all the
  1223.                rows below it shift down to make room. Any formulas
  1224.                referring to the shifted cells have their coordinates
  1225.                adjusted so they point at the same data.
  1226.  
  1227.                When a column is inserted, the column widths are shifted
  1228.                to the right with their data. The new column retains the
  1229.                same column width it originally had.
  1230.  
  1231.                Another way to insert a row is to move the cell cursor          
  1232.                one row below where the new row is desired and press          
  1233.                CONTROL-N.
  1234.  
  1235.      Example:  A spreadsheet lists all customers and their aged accounts
  1236.                receivable. A new customer needs to be added between rows
  1237.                21 and 22. To insert the row, either move the cursor to
  1238.                row 22 and enter:
  1239.  
  1240.                                   /I R (ENTER)
  1241.  
  1242.  
  1243.                                                                        69
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255. -
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.                                                                    INSERT
  1265.  
  1266.  
  1267.  
  1268.                or if you are not at row 22, enter:
  1269.              
  1270.                                  /I R 22 (ENTER)
  1271.              
  1272.                Row 22 becomes blank, and the data that was on row 22
  1273.                moves to 23, 23 moves to 24, etc.
  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.  
  1309.                                                                        70
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321. -
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330.                                                                       INT
  1331.  
  1332.  
  1333.      ____________________________________________________________________
  1334.  
  1335.                                  INT Function
  1336.  
  1337.  
  1338.      Purpose:  Converts a number or formula to an integer, and returns
  1339.                the resulting value to the current cell or formula.
  1340.                Returns the next lower number when negative. (See also
  1341.                FIX function.)
  1342.              
  1343.              
  1344.      Format:   INT(5.1)          Returns 5  
  1345.  
  1346.                INT(A1)           If A1 contains -2.5, returns -3
  1347.  
  1348.                INT(A1*2/A5)      Resolves the formula, then returns the
  1349.                                  fixed decimal portion of the result
  1350.  
  1351.  
  1352.      Remarks:  INT(x) can be entered into a cell, or the INT function
  1353.                can be used in a formula.
  1354.                
  1355.                All digits to the right of the decimal are removed. If
  1356.                the number is negative, INT returns the next lower
  1357.                negative number. This differs from the FIX function,
  1358.                which returns the integer portion of a number, regardless
  1359.                of sign.
  1360.  
  1361.  
  1362.      Example:  Enter the following formulas into the specified cells.
  1363.                The resulting values are shown:
  1364.  
  1365.  
  1366.                        Cell       Formula         Result
  1367.                        A1:      INT(23.999)         23
  1368.                        A2:      INT(-1.567)         -2
  1369.                        A3:      FIX(23.999)         23
  1370.                        A4:      FIX(-1.567)         -1
  1371.  
  1372.  
  1373.  
  1374.  
  1375.                                                                        71
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387. -
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.                                                                   KEYWORD
  1397.  
  1398.  
  1399.      ____________________________________________________________________
  1400.  
  1401.                                KEYWORD Function
  1402.  
  1403.  
  1404.      Purpose:  Displays date, time and page number information. The
  1405.                format is user-defined.
  1406.              
  1407.      Format:   KEYWORD(keywords)  
  1408.  
  1409.                KEYWORD(DATE)       Displays today's date in the cell
  1410.                                    Example: October 9, 1985
  1411.  
  1412.                KEYWORD(TIME)       Displays the current time of day in
  1413.                                    the cell:  8:30:10 PM
  1414.  
  1415.                KEYWORD(DA-MO-YR  HO:MI  page #)
  1416.  
  1417.                                    Displays the day number, month number
  1418.                                    and year separated by dashes, then
  1419.                                    the hour and minute separated by a
  1420.                                    colon, then the word "page" followed
  1421.                                    by the currently printing page
  1422.                                    number. On the screen it looks like:
  1423.                                    9-10-85  20:30  page 1
  1424.  
  1425.      Remarks:  KEYWORD can be entered into a cell with any length of
  1426.                keyword argument enclosed in parentheses. KEYWORD
  1427.                cannot be used in an IF statement or formula.           
  1428.  
  1429.                The text string enclosed in parentheses is scanned for
  1430.                several valid keywords (listed below) and substitutions
  1431.                are made. Characters which are not keywords are left in
  1432.                the string. In the example above, the keywords used are
  1433.                DA, MO, YR, HO, MI and #. The dashes, colon, spaces,
  1434.                and the word "page" are not keywords, so they remain
  1435.                where they are in the text string.
  1436.  
  1437.                The keyword function is handled internally as a formula,
  1438.                but its contents are displayed as text. Text is left-
  1439.  
  1440.  
  1441.                                                                        72
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453. -
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.  
  1462.                                                                   KEYWORD
  1463.  
  1464.  
  1465.                justified unless overridden by /Format. Text will overlap
  1466.                into an adjacent empty cell.
  1467.  
  1468.                The date and time displayed are MSDOS system date and
  1469.                time. If your computer does not have a battery backup
  1470.                clock/calendar, you will need to enter the system date
  1471.                and time using the DOS commands DATE and TIME each
  1472.                time you turn on your computer.
  1473.  
  1474.      Keyword    Sample Result          Explanation
  1475.  
  1476.      DATE or    May 9, 1985  Month name, day number and year number.
  1477.      TODAY                   Same as KEYWORD(Month DA, YEAR)
  1478.  
  1479.      TIME       8:30:10 PM   Current hour, minute and second. The time
  1480.                              is updated each time a recalculation is
  1481.                              done, or when the cursor moves to the cell.
  1482.                         
  1483.      Month      June         Current month name
  1484.                         
  1485.      MONTH      JUNE         Current month name, all capital letters
  1486.                         
  1487.      Mon        Jun          First three letters of month name
  1488.                         
  1489.      MON        JUN          First three letters of month name, all caps
  1490.                         
  1491.      MO         9            Month number. If less than 10, only one digit
  1492.                         
  1493.      MZ         09           Month number. If less than 10, leading zero.
  1494.  
  1495.      DA         3            Day number. If less than 10, only one digit
  1496.  
  1497.      DZ         03           Day number. If less than 10, leading zero.
  1498.  
  1499.      YEAR       1985         Four digit year number.
  1500.  
  1501.      YE         85           Two digit year number. YR and yr also valid.
  1502.  
  1503.      HO         8            Current hour. No leading zero. Displayed in
  1504.                              military time if no AM/PM keyword is in
  1505.  
  1506.  
  1507.                                                                        73
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519. -
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528.                                                                   KEYWORD
  1529.  
  1530.  
  1531.                              the string (see below). If AM/PM appears,
  1532.                              display will be twelve-hour clock, and the
  1533.                              AM/PM string will be changed accordingly.
  1534.  
  1535.      HZ         08           Current hour. Same as HO, but if less than
  1536.                              ten, leading zero is printed.
  1537.  
  1538.      MI         30           Current minute. Two digits.
  1539.  
  1540.      SE         10           Current second. Two digits.
  1541.  
  1542.      AM, PM     AM           Variants: AM PM am pm A.M. P.M. a.m. p.m. 
  1543.                              If one of these strings appear, time is
  1544.                              displayed in twelve-hour format.
  1545.  
  1546.      #          1            When printing, displays current page number.
  1547.  
  1548.  
  1549.  
  1550.  
  1551.  
  1552.  
  1553.  
  1554.  
  1555.  
  1556.  
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.                                                                        74
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585. -
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.                                                                      LOAD
  1595.  
  1596.  
  1597.      ____________________________________________________________________
  1598.  
  1599.                               LOAD Command (/L)
  1600.  
  1601.  
  1602.      Purpose:  Loads a spreadsheet file into memory so it can be altered
  1603.                or printed. /Load can also be used to read DIF files,
  1604.                ASCII Mail-merge files, File Express databases, or PC-File
  1605.                databases. There is also a Consolidate option, which
  1606.                allows spreadsheets with the same format to be
  1607.                consolidated.
  1608.  
  1609.  
  1610.      Prompts:  Enter /L. The message  Loading program. stand by . . .
  1611.                appears for a moment, as the Load/Save program is brought
  1612.                into computer memory. Then the prompt appears:
  1613.  
  1614.                Enter the file name. (Enter A:, B:, etc. for directory.)
  1615.  
  1616.                At this point, you have two choices: display a disk
  1617.                directory or load a file. If you press ENTER, the
  1618.                directory of the currently logged disk drive is
  1619.                displayed. By entering A:, B:, etc. you can display disk
  1620.                directories on other drives.
  1621.  
  1622.                If instead you enter a file name, CALC will load that
  1623.                file. The file must be one of the following:
  1624.  
  1625.                . A CALC spreadsheet file created with the /Save
  1626.                  command
  1627.  
  1628.                . A DIF format file (data interchange format) with an
  1629.                  extension of .DIF
  1630.  
  1631.                . A sequential ASCII file with fields comma-delimited,
  1632.                  text in quotation marks, records ending with carriage
  1633.                  return/line feed, and a file extension of .WS
  1634.  
  1635.                . A File Express or PC-File database. Specify the database
  1636.                  name with an extension of .HDR (the header file for the
  1637.  
  1638.  
  1639.                                                                        75
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651. -
  1652.  
  1653.  
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.  
  1660.                                                                      LOAD
  1661.  
  1662.  
  1663.                  database)
  1664.  
  1665.                . A CALC spreadsheet file created with PC-File's
  1666.                  Export command or a BASIC program
  1667.  
  1668.                The file name can be any valid MS-DOS file name; i.e.
  1669.                eight characters or less, optional extension, optional
  1670.                drive designation. DIF files must have an extension of
  1671.                .DIF; comma-delimited ASCII files must have an extension
  1672.                of .WS; databases must have an extension of .HDR.
  1673.  
  1674.                Some examples of valid file names are:
  1675.              
  1676.                     LOAN1               CALC file 
  1677.                     B:WORKSHT5.OLD      CALC file on drive B:
  1678.                     TEST.DIF            DIF format file
  1679.                     ADDRESS.WS          ASCII comma-delimited file
  1680.                     CUSTOMER.HDR        File Express database
  1681.  
  1682.  
  1683.                Spreadsheet files
  1684.                If the file being loaded is a CALC spreadsheet file,
  1685.                the next prompt is:
  1686.  
  1687.                        All, Part or Consolidate?
  1688.  
  1689.                If you press "A" (All) the entire spreadsheet is loaded.
  1690.                If you press "P" (Part) a prompt is given to enter the
  1691.                range of cells; only those cells are loaded into the
  1692.                spreadsheet area. On either of these options, if the
  1693.                spreadsheet area has data in it, a warning message is
  1694.                given and the area can be cleared by pressing Z, or left
  1695.                intact by pressing ENTER.
  1696.  
  1697.  
  1698.                If you select "C" (Consolidate) only the cells with
  1699.                values are input from the spreadsheet files. But instead
  1700.                of replacing the value in the cell, it is added to the
  1701.                current value of the cell. Formulas and text are not read
  1702.                when Consolidate is selected. So if you have three
  1703.  
  1704.  
  1705.                                                                        76
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717. -
  1718.  
  1719.  
  1720.  
  1721.  
  1722.  
  1723.  
  1724.  
  1725.  
  1726.                                                                      LOAD
  1727.  
  1728.  
  1729.                spreadsheets to combine, load the first one normally,
  1730.                specifying All, then load the second and third specifying
  1731.                Consolidate. The formulas and text from the first one
  1732.                will remain untouched. When you are done, press ! and the
  1733.                formulas will recalculate using consolidated values.
  1734.  
  1735.  
  1736.                DIF, WS, HDR Files
  1737.                When loading a DIF, WS or HDR file, different prompts
  1738.                are given. First, you are asked:
  1739.  
  1740.                     Enter the starting cell or cell range.
  1741.  
  1742.                The default is cell A1. To start the load at C11, enter
  1743.                C11. To confine the data loaded to three columns wide and
  1744.                fifty records long, starting at C11, enter C11:E60.
  1745.                The second prompt asks:
  1746.  
  1747.                Enter R to load by rows, C to load by columns.
  1748.  
  1749.                The default is R, since this will put one record on each
  1750.                line, which is the most common method. If you specify C,
  1751.                the file will be read into the spreadsheet area one
  1752.                record per column, effectively rotating it a quarter
  1753.                turn.
  1754.  
  1755.                DIF, HDR and WS files all have means of differentiating
  1756.                text from numbers. None of these file types accomodate
  1757.                formulas. The /Save command can save files in DIF and
  1758.                WS format, but they are not usually good formats for
  1759.                saving spreadsheets because formulas and formatting info
  1760.                are not saved. Use the CALC format for saving
  1761.                CALC spreadsheets.
  1762.  
  1763.  
  1764.      Remarks:  When the file is opened, if it does not exist, or if it
  1765.                is not a file that can be read by CALC, an error
  1766.                message is given, and you are prompted to try again.
  1767.  
  1768.                As the file is loading, the cursor coordinate in the
  1769.  
  1770.  
  1771.                                                                        77
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783. -
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.                                                                      LOAD
  1793.  
  1794.  
  1795.                lower left corner of the screen displays the progress of
  1796.                the load. When the load is completed, the spreadsheet
  1797.                is displayed.
  1798.  
  1799.                CALC does not clear the spreadsheet area before
  1800.                loading a file. This allows two or more spreadsheets to
  1801.                be loaded and combined. However, if the spreadsheet area
  1802.                contains data, a warning message is given. You may press
  1803.                ENTER to keep the data in the spreadsheet area, or press
  1804.                Z to clear the area before loading.
  1805.  
  1806.                When loading a CALC spreadsheet, more than just the
  1807.                data in the cells is loaded. All global settings, printer
  1808.                settings, column widths and the current cell position are
  1809.                loaded as well. So if you save a spreadsheet at the end
  1810.                of the day, then reload it the next morning, everything
  1811.                will be back the way it was.
  1812.  
  1813.                To exit from /L without loading a file, press ESCAPE.
  1814.  
  1815.                If your computer has only one diskette drive, do not
  1816.                attempt to /Load or /Save to drive B:. CALC requires
  1817.                that the program diskette remain in the drive at all
  1818.                times. The message file and the file overlay program are
  1819.                both on drive A:, and are needed continually during the
  1820.                loading process.
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829.  
  1830.  
  1831.  
  1832.  
  1833.  
  1834.  
  1835.  
  1836.  
  1837.                                                                        78
  1838.  
  1839.  
  1840.  
  1841.  
  1842.  
  1843.  
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849. -
  1850.  
  1851.  
  1852.  
  1853.  
  1854.  
  1855.  
  1856.  
  1857.  
  1858.                                                                       LOG
  1859.  
  1860.  
  1861.      ____________________________________________________________________
  1862.  
  1863.                                  LOG Function
  1864.  
  1865.  
  1866.      Purpose:  Computes the natural logarithm of a number, and returns
  1867.                the resulting value to the current cell or formula.
  1868.              
  1869.              
  1870.      Format:   LOG(2.718282)       Returns 1  
  1871.  
  1872.                LOG(A1)             If A1 contains e, returns 1 
  1873.  
  1874.                LOG(A1*2/A5)        Resolves the formula, then returns
  1875.                                    the natural log of the result
  1876.  
  1877.  
  1878.      Remarks:  LOG(x) can be entered into a cell, or the LOG function
  1879.                can be used in a formula.
  1880.                
  1881.                The natural logarithm is the logarithm to the base e.
  1882.  
  1883.  
  1884.      Example:  Enter the following formulas into the specified cells.
  1885.                The resulting values are shown:
  1886.  
  1887.  
  1888.                       Cell        Formula              Result
  1889.                        A1:      LOG(2.718282)            1
  1890.                        A2:      LOG(2.718282*2.718282)   2
  1891.                        A3:      LOG(45/7)             1.86
  1892.  
  1893.  
  1894.  
  1895.  
  1896.  
  1897.  
  1898.  
  1899.  
  1900.  
  1901.  
  1902.  
  1903.                                                                        79
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915. -
  1916.  
  1917.  
  1918.  
  1919.  
  1920.  
  1921.  
  1922.  
  1923.  
  1924.                                                                    LOOKUP
  1925.  
  1926.  
  1927.      ____________________________________________________________________
  1928.  
  1929.                                LOOKUP Function
  1930.  
  1931.  
  1932.      Purpose:  Searches a table of ascending numbers, finds the closest
  1933.                matching entry, and returns a value from an adjacent
  1934.                cell.
  1935.  
  1936.  
  1937.      Format:   LOOKUP(A1,J1:J20)        Searches J1:J20 comparing them
  1938.                                         to A1. First cell greater than A1
  1939.                                         returns previous value in column K.
  1940.  
  1941.                LOOKUP(A1,J1:J20,3)      Same as above, but returns the
  1942.                                         value in column M.
  1943.  
  1944.  
  1945.      Remarks:  This function is useful for tax table lookups, price
  1946.                table lookups, etc. where the table is small enough to be
  1947.                entered as part of the spreadsheet.
  1948.  
  1949.                The first argument is the "search key". For a tax table
  1950.                lookup, it's taxable income. In a price table lookup,
  1951.                it's the part number to be found. The search key can be a
  1952.                number, or a formula, or a cell reference.
  1953.  
  1954.                The second argument is the "search table". It is a range
  1955.                of cells (two cell references separated by a colon),
  1956.                running down a column or across a row. These cells
  1957.                contain the table lookup values. In a tax table lookup,
  1958.                these cells contain the income thresholds for each tax
  1959.                bracket. In a price table lookup, these cells might
  1960.                contain part numbers.
  1961.  
  1962.                The LOOKUP function looks through the "search table"
  1963.                until it finds a number that is greater than the "search
  1964.                key". When it finds the number, it returns the value in
  1965.                the previous cell to the right (if the search table is a
  1966.                partial column) or the previous cell below (if the search
  1967.  
  1968.  
  1969.                                                                        80
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981. -
  1982.  
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.  
  1990.                                                                    LOOKUP
  1991.  
  1992.  
  1993.                table is a partial row).
  1994.  
  1995.                The values in the search table must be in ascending
  1996.                order, and no two cells in the search table can contain
  1997.                the same value.
  1998.  
  1999.                There is an optional third argument on the LOOKUP
  2000.                function, called "offset". Offset defaults to 1 if it is
  2001.                not present. Entering 2 in the third argument tells
  2002.                LOOKUP to go two columns to the right of (or two rows
  2003.                below) the search table to get its result. If offset is
  2004.                zero, the search table argument itself is returned. If
  2005.                offset is negative, LOOKUP moves to the other side of
  2006.                the search table for its result. Offset can be a number,
  2007.                or a formula, or a cell that contains a number.
  2008.  
  2009.  
  2010.      Example:  EXAMPLE #1: A tax table set for LOOKUP might look
  2011.                like this:
  2012.  
  2013.                                    A          B          C  
  2014.                          1       Over        Tax        + %
  2015.                          2
  2016.                          3          0          0        .00
  2017.                          4      2,300          0        .11
  2018.                          5      3,400        121        .12
  2019.                          6      4,400        241        .14
  2020.                          7      6,500        535        .15
  2021.                          8      8,500        835        .16
  2022.                          9     10,800      1,203        .18
  2023.                          10    12,900      1,581        .20
  2024.                          11    15,000      2,001        .23
  2025.  
  2026.                The tax thresholds are listed in column A, the base tax
  2027.                in B and the percent to be applied to excess in C.
  2028.                Further down the spreadsheet we enter:
  2029.  
  2030.  
  2031.  
  2032.  
  2033.  
  2034.  
  2035.                                                                        81
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043.  
  2044.  
  2045.  
  2046.  
  2047. -
  2048.  
  2049.  
  2050.  
  2051.  
  2052.  
  2053.  
  2054.  
  2055.  
  2056.                                                                    LOOKUP
  2057.  
  2058.  
  2059.  
  2060.                              A          B          C         
  2061.                     15  Taxable Income:         $9,000.00
  2062.                     16
  2063.                     17  Tax bracket:            LOOKUP(C15,A3:A11,0)
  2064.                     18  Base tax amount:        LOOKUP(C15,A3:A11,1)
  2065.                     19  % to apply to excess:   LOOKUP(C15,A3:A11,2)
  2066.                     20  Excess tax amount:      (C15-C17)*C19
  2067.                     21
  2068.                     22  Total tax:              C18+C20
  2069.  
  2070.                Which yields the following results:
  2071.  
  2072.                              A          B          C         
  2073.                     15  Taxable Income:         $9,000.00
  2074.                     16
  2075.                     17  Tax threshold:          $8,500.00
  2076.                     18  Base tax amount:          $835.00
  2077.                     19  % to apply to excess:         .16
  2078.                     20  Excess tax amount:         $80.00
  2079.                     21
  2080.                     22  Total tax:                $915.00
  2081.                The example was broken up into pieces for demonstration
  2082.                purposes. More likely, the spreadsheet would simply
  2083.                contain a cell with "Total tax", using this formula:
  2084.  
  2085.       LOOKUP(C15,A3:A11)+(C15-LOOKUP(C15,A3:A11,0))*LOOKUP(C15,A3:A11,2)
  2086.  
  2087.  
  2088.                EXAMPLE #2: A lookup table is set up which contains a
  2089.                list of item numbers in column A, their description in
  2090.                item B, and their list price in column C:
  2091.  
  2092.                         A          B                C
  2093.                    50 Part  Description       List Price
  2094.                    51 1001  Printer Stand          95.00
  2095.                    52 1002  Paper Tray             40.00
  2096.                    53 1003  Tractor Feed Option   125.00
  2097.                    54 1004  Ribbon Cartridge        9.95
  2098.                    55 (etc.)
  2099.  
  2100.  
  2101.                                                                        82
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113. -
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.                                                                    LOOKUP
  2123.  
  2124.  
  2125.  
  2126.                At the top of the spreadsheet is an invoice, as follows:
  2127.  
  2128.                     A          B                  C           D     E
  2129.                1                       INVOICE
  2130.                2
  2131.                3  Part    Description       List Price       Qty   Ext.
  2132.                4         
  2133.                5      LOOKUP(A5,A51:A99) LOOKUP(A5,A51:A99,2)    C5*D5
  2134.                6      LOOKUP(A6,A51:A99) LOOKUP(A6,A51:A99,2)    C6*D6
  2135.                7      LOOKUP(A7,A51:A99) LOOKUP(A7,A51:A99,2)    C7*D7
  2136.                8      LOOKUP(A8,A51:A99) LOOKUP(A8,A51:A99,2)    C8*D8
  2137.                ...    (etc.)
  2138.                20                           INVOICE TOTAL    SUM(E5:E19)
  2139.                21                           SALES TAX        E20*.078
  2140.                22                           AMOUNT DUE       E20+E21
  2141.  
  2142.                To produce an invoice, load the invoice spreadsheet from
  2143.                disk, enter the part numbers and quantities, then press !
  2144.                to calculate. The descriptions and prices are looked up,
  2145.                the invoice is extended, sales tax is computed, and the
  2146.                invoice is totalled. When /Printing the invoice, specify
  2147.                a cell range of A1:E22, so the price table doesn't print.
  2148.  
  2149.                There is an alternate method for preparing invoices with
  2150.                CALC described in the examples of the NOPRINT
  2151.                function.
  2152.  
  2153.  
  2154.  
  2155.  
  2156.  
  2157.  
  2158.  
  2159.  
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167.                                                                        83
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179. -
  2180.  
  2181.  
  2182.  
  2183.  
  2184.  
  2185.  
  2186.  
  2187.  
  2188.                                                                       LPI
  2189.  
  2190.  
  2191.      ____________________________________________________________________
  2192.  
  2193.                                  LPI Function
  2194.  
  2195.  
  2196.      Purpose:               Changes the line spacing on the printer to 6 or 8 lines
  2197.                per inch.
  2198.  
  2199.      Format:               LPI(6)                                   Changes to 6 lines per inch
  2200.  
  2201.                LPI(8)                                   Changes to 8 lines per inch
  2202.  
  2203.      Remarks:               When LPI(n) is entered into a cell, it displays as
  2204.                [LPI(n)]  on the screen. When the cell is printed, control
  2205.                characters are sent to the printer which change the line
  2206.                spacing, then the cell is printed as if it were empty.
  2207.                LPI can be an operand in an IF, but cannot be used in a
  2208.                formula.
  2209.                
  2210.                If your printer is not an IBM, Epson, or Epson
  2211.                compatible, then CALC must be configured for your
  2212.                printer before using the LPI function. See the section
  2213.                titled "Customizing CALC" for more information.
  2214.  
  2215.                CALC defaults to six lines per inch, and 58 printed
  2216.                lines per page. When using LPI(8), you will probably want
  2217.                to increase the number of lines per page (one of the
  2218.                /Print prompts) to 75 or 80.
  2219.  
  2220.      Example:               A report lists all 70 of a company's locations, and they
  2221.                won't all fit on one page with headings and totals. We
  2222.                want the report on a single sheet of paper, and it
  2223.                doesn't matter if the lines are "crunched" tightly
  2224.                together.
  2225.  
  2226.                At the top of the report, in any cell, type  LPI(8)  and
  2227.                press ENTER. At the bottom of the report, in any cell,
  2228.                type  LPI(6)  to reset your printer for future printing at
  2229.                six lines per inch. Now /Print the report, and specify a
  2230.                "page length" of 80. The report is printed on one page.
  2231.  
  2232.  
  2233.                                                                        84
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240.  
  2241.  
  2242.  
  2243.  
  2244.  
  2245. -
  2246.  
  2247.  
  2248.  
  2249.  
  2250.  
  2251.  
  2252.  
  2253.  
  2254.                                                                       MAX
  2255.  
  2256.  
  2257.      ____________________________________________________________________
  2258.  
  2259.                                  MAX Function
  2260.  
  2261.  
  2262.      Purpose:  Finds the largest number in a range of numbers and
  2263.                returns it to the current cell or formula.
  2264.  
  2265.      Format:   MAX(A1:A20)    Searches a column of numbers
  2266.  
  2267.                MAX(A1:E1)     Searches a row of numbers
  2268.  
  2269.                MAX(A1:D20)    Searches a block of numbers
  2270.  
  2271.      Remarks:  MAX(m:n) can be entered into a cell, causing the largest
  2272.                number in the range to appear as the cell value. Or the
  2273.                MAX function can be used in a formula.
  2274.                
  2275.                The coordinate range specified in a MAX function may be
  2276.                down a column, such as MAX(A1:A20), it may be across a
  2277.                row, such as MAX(A1:E1), or it may be a block of cells
  2278.                (designated by the upper-left and lower-right
  2279.                coordinates), such as MAX(A1:D20).
  2280.  
  2281.                Negative numbers are considered smaller than zero; i.e.
  2282.                the MAX of 1, 0 and -5, is 1.
  2283.  
  2284.                If the specified range contains any empty cells, they are
  2285.                ignored. If the range contains any cells with text,
  2286.                ERROR  is returned.
  2287.  
  2288.      Example:  Column B has a column of monthly sales from B7 to B26.
  2289.                The highest monthly sales figure is to be shown in B28.
  2290.                Move the cell cursor to B28, and enter:
  2291.  
  2292.                                   MAX(B7:B26)
  2293.  
  2294.                After recalculation, B28 contains the highest number in
  2295.                the column.
  2296.  
  2297.  
  2298.  
  2299.                                                                        85
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311. -
  2312.  
  2313.  
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319.  
  2320.                                                                       MIN
  2321.  
  2322.  
  2323.      ____________________________________________________________________
  2324.  
  2325.                                  MIN Function
  2326.  
  2327.  
  2328.      Purpose:  Finds the smallest number in a range of numbers and
  2329.                returns it to the current cell or formula.
  2330.  
  2331.      Format:   MIN(A1:A20)    Searches a column of numbers
  2332.  
  2333.                MIN(A1:E1)     Searches a row of numbers
  2334.  
  2335.                MIN(A1:D20)    Searches a block of numbers
  2336.  
  2337.      Remarks:  MIN(m:n) can be entered into a cell, causing the smallest
  2338.                number in the range to appear as the cell value. Or the
  2339.                MIN function can be used in a formula.
  2340.                
  2341.                The coordinate range specified in a MIN function may be
  2342.                down a column, such as MIN(A1:A20), it may be across a
  2343.                row, such as MIN(A1:E1), or it may be a block of cells
  2344.                (designated by the upper-left and lower-right
  2345.                coordinates), such as MIN(A1:D20).
  2346.  
  2347.                Negative numbers are considered smaller than zero; i.e.
  2348.                the MIN of 1, 0 and -1, is -1.
  2349.  
  2350.                If the specified range contains any empty cells, they are
  2351.                ignored. If the range contains any cells with text,
  2352.                ERROR  is returned.
  2353.  
  2354.      Example:  Column B has a column of monthly sales from B7 to B26.
  2355.                The lowest monthly sales figure is to be shown in B27.
  2356.                Move the cell cursor to B27, and enter:
  2357.  
  2358.                                   MIN(B7:B26)
  2359.  
  2360.                After recalculation, B27 contains the lowest number in
  2361.                the column.
  2362.  
  2363.  
  2364.  
  2365.                                                                        86
  2366.  
  2367.  
  2368.  
  2369.  
  2370.  
  2371.  
  2372.  
  2373.  
  2374.  
  2375.  
  2376.  
  2377. -
  2378.  
  2379.  
  2380.  
  2381.  
  2382.  
  2383.  
  2384.  
  2385.  
  2386.                                                                      NOLF
  2387.  
  2388.  
  2389.      ____________________________________________________________________
  2390.  
  2391.                                 NOLF Function
  2392.  
  2393.  
  2394.      Purpose:  Causes the current line to be printed with only a
  2395.                carriage return, and no line feed. On many printers, this
  2396.                allows two or more lines to be printed "on top of" one
  2397.                another. This is useful for boldfacing, underlining and
  2398.                overstriking.
  2399.  
  2400.      Format:   NOLF           Suppresses line feed when line is printed
  2401.  
  2402.  
  2403.      Remarks:  NOLF can be entered into a cell, or can be the second or
  2404.                third operand in an IF function. It cannot be used in a
  2405.                formula. NOLF displays as  [NOLF]  on the screen.
  2406.  
  2407.                Regardless of which column NOLF is in, it takes effect at
  2408.                the time its line is printed. The cell with NOLF is
  2409.                treated as if it were empty when the print line is built,
  2410.                then when the line is printed, a carriage return is
  2411.                sent to the printer without a line feed character.
  2412.  
  2413.                On most printers, NOLF keeps the paper from advancing so
  2414.                the next line overprints the NOLF line. However, some
  2415.                brands of printers advance the paper anyway when a
  2416.                carriage return is received, so NOLF has no effect on
  2417.                those printers.
  2418.  
  2419.  
  2420.      Example:  EXAMPLE #1: At the end of a report we want to underline
  2421.                the columns of numbers. In the past, we have always moved
  2422.                down one line and typed underscores, leaving a blank line
  2423.                above the underscores:
  2424.  
  2425.                                     992.00         4.01     7,122.50  
  2426.                                 __________   __________   __________
  2427.                       TOTAL      $4,305.00      $132.22   $92,122.50  
  2428.  
  2429.  
  2430.  
  2431.                                                                        87
  2432.  
  2433.  
  2434.  
  2435.  
  2436.  
  2437.  
  2438.  
  2439.  
  2440.  
  2441.  
  2442.  
  2443. -
  2444.  
  2445.  
  2446.  
  2447.  
  2448.  
  2449.  
  2450.  
  2451.  
  2452.                                                                      NOLF
  2453.  
  2454.  
  2455.                This is acceptable, but we would prefer the underscores
  2456.                to be immediately under the last line of numbers. So on
  2457.                the line immediately above the underscore line, we enter
  2458.                NOLF into any cell on that line. Now the line prints:
  2459.  
  2460.                                     992.00         4.01     7,122.50                                  __________   __________   __________
  2461.                       TOTAL      $4,305.00      $132.22   $92,122.50  
  2462.  
  2463.  
  2464.                EXAMPLE #2: On the same report described in example 1,
  2465.                we want the grand total line to print in "boldface"; i.e.
  2466.                darker than the rest of the report. Some printers may
  2467.                have a boldface font option, in which case the
  2468.                appropriate control codes could be typed into the
  2469.                "TOTAL text field. Most printers can print boldface by
  2470.                "overstriking" -- printing the same text two or three
  2471.                times, to make the characters darker.
  2472.  
  2473.                To boldface the total line, start by reproducing the line
  2474.                a second time, exactly as it appears. Use the /Replicate
  2475.                command to copy it to the line below it (with no
  2476.                adjustment).
  2477.  
  2478.                In any empty cell on the first total line, enter NOLF.
  2479.                When the first total line is printed, the printer returns
  2480.                the carriage but does not advance the paper. Then it
  2481.                prints the second total line over the first, making it
  2482.                darker. If a double-strike does not make the line dark
  2483.                enough, it may be necessary to print it three times, with
  2484.                NOLF in the first two lines.
  2485.  
  2486.  
  2487.  
  2488.  
  2489.  
  2490.  
  2491.  
  2492.  
  2493.  
  2494.  
  2495.  
  2496.  
  2497.                                                                        88
  2498.  
  2499.  
  2500.  
  2501.  
  2502.  
  2503.  
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509. -
  2510.  
  2511.  
  2512.  
  2513.  
  2514.  
  2515.  
  2516.  
  2517.  
  2518.                                                                   NOPRINT
  2519.  
  2520.  
  2521.      ____________________________________________________________________
  2522.  
  2523.                                NOPRINT Function
  2524.  
  2525.  
  2526.      Purpose:  Causes the line where it appears to not be printed. Using
  2527.                NOPRINT and IF together allows selective printing.
  2528.  
  2529.  
  2530.      Format:   NOPRINT              Suppresses printing
  2531.  
  2532.  
  2533.      Remarks:  NOPRINT can be entered into a cell, or can be the second
  2534.                or third operand in an IF function. It cannot be used in
  2535.                a formula. NOPRINT displays as  [NOPRINT]  on the screen.
  2536.                Any line with  [NOPRINT]  in one of its cells is not
  2537.                printed.
  2538.  
  2539.                Selective printing based on data values can be done by
  2540.                specifying NOPRINT in an IF function. For example:
  2541.                IF A5=0 THEN NOPRINT  does not print if A5 is zero, and
  2542.                prints if A5 is non-zero.
  2543.  
  2544.  
  2545.      Example:  A company has invoices which can include any of 80 line
  2546.                items. However, a typical invoice only has a few items on
  2547.                it. Every time we print an invoice, we don't want all 80
  2548.                items printing; they take up two pages, and the extra
  2549.                lines with zero quantities are superfluous.
  2550.  
  2551.                Start by setting up a "skeleton" or "master" spreadsheet
  2552.                that has all 80 items, one per line, with descriptions
  2553.                and prices, but with no quantities. The first few lines
  2554.                of the master invoice might look like this:
  2555.  
  2556.  
  2557.  
  2558.  
  2559.  
  2560.  
  2561.  
  2562.  
  2563.                                                                        89
  2564.  
  2565.  
  2566.  
  2567.  
  2568.  
  2569.  
  2570.  
  2571.  
  2572.  
  2573.  
  2574.  
  2575. -
  2576.  
  2577.  
  2578.  
  2579.  
  2580.  
  2581.  
  2582.  
  2583.  
  2584.                                                                   NOPRINT
  2585.  
  2586.  
  2587.  
  2588.                        A          B         C         D         E
  2589.                1                         INVOICE
  2590.                2  Date:              
  2591.                3  Sold to:
  2592.                4 
  2593.                5      
  2594.                6   Qty  Part#  Description           Price    Extended
  2595.                7        1001  Printer Stand          95.00    A7*D7
  2596.                8        1002  Paper Tray             40.00    A8*D8
  2597.                9        1003  Tractor Feed Option   125.00    A9*D9
  2598.                10       1004  Ribbon Cartridge        9.95    A10*D10
  2599.                         (etc.)                            
  2600.  
  2601.                The invoice spreadsheet contains a line for each of
  2602.                eighty products, with their descriptions, prices, part
  2603.                number, and any other information we want. The quantities
  2604.                are empty, so they can be filled in later. Column E has
  2605.                the extended amount; it is a formula with the quantity
  2606.                times the price.
  2607.  
  2608.                In a real invoice application, there is usually quite a
  2609.                bit more other info at the top, such as sold to, ship to,
  2610.                PO number, date, invoice number, etc. At the bottom there
  2611.                are invoice totals, sales tax, shipping charges, invoice
  2612.                discounts, etc. most of which can be computed by CALC.
  2613.  
  2614.                Now, back to the NOPRINT function. How do we keep lines
  2615.                from printing that have no quantities? It's easy. Go to
  2616.                cell F7 and enter:
  2617.  
  2618.                                 IF(A7=0,NOPRINT)
  2619.  
  2620.                Or you may prefer the alternate form of the IF function:
  2621.  
  2622.                              IF A7 = 0 THEN NOPRINT
  2623.  
  2624.                Now use the /Replicate command to copy the formulas in
  2625.                E7 and F7 all the way down to the last product in line
  2626.                86. Note that  [NOPRINT]  appears in all the cells in
  2627.  
  2628.  
  2629.                                                                        90
  2630.  
  2631.  
  2632.  
  2633.  
  2634.  
  2635.  
  2636.  
  2637.  
  2638.  
  2639.  
  2640.  
  2641. -
  2642.  
  2643.  
  2644.  
  2645.  
  2646.  
  2647.  
  2648.  
  2649.  
  2650.                                                                   NOPRINT
  2651.  
  2652.  
  2653.                column F, because all the quantities are zero. As soon as
  2654.                a quantity is entered into column A (and recalculation is
  2655.                done), the  [NOPRINT]  on that line becomes .00 and the
  2656.                line now prints. Since we don't want .00's printing on
  2657.                our invoice, use the /Format, Zero-blank command to hide
  2658.                them. Or change the width of column F to zero, which also
  2659.                hides them.
  2660.  
  2661.                Before entering any quantities, set recalculation to
  2662.                manual with /GM and save the spreadsheet, giving it a
  2663.                name like INVOICE.MAS. It is now the master invoice
  2664.                spreadsheet. Later, to prepare an invoice, load the
  2665.                master spreadsheet, type in the quantities, and /Print.
  2666.                If you want to save the new invoice, give it a unique
  2667.                name (such as the invoice number, or customer name)
  2668.  
  2669.                As an added sophistication, you may want to protect all
  2670.                the fields on the spreadsheet except the quantity
  2671.                column and shipping info, so only they can be entered. It
  2672.                keeps other fields from being accidentally altered, and
  2673.                it also allows you to clear all the unprotected fields
  2674.                with the /Blank,ALL command, which does not clear
  2675.                protected fields.
  2676.  
  2677.  
  2678.  
  2679.  
  2680.  
  2681.  
  2682.  
  2683.  
  2684.  
  2685.  
  2686.  
  2687.  
  2688.  
  2689.  
  2690.  
  2691.  
  2692.  
  2693.  
  2694.  
  2695.                                                                        91
  2696.  
  2697.  
  2698.  
  2699.  
  2700.  
  2701.  
  2702.  
  2703.  
  2704.  
  2705.  
  2706.  
  2707. -
  2708.  
  2709.  
  2710.  
  2711.  
  2712.  
  2713.  
  2714.  
  2715.  
  2716.                                                                       NPV
  2717.  
  2718.  
  2719.      ____________________________________________________________________
  2720.  
  2721.                                  NPV Function
  2722.  
  2723.  
  2724.      Purpose:  Computes the net present value of a stream of flows, at a
  2725.                specified discount rate, and returns the result to the
  2726.                current cell or formula.
  2727.  
  2728.      Format:   NPV(.12,A1:A20)          Rate specified as value
  2729.  
  2730.                NPV(A1,B1:E1)            Rate in another cell
  2731.  
  2732.                NPV(A1/100,B1:E1)        Rate specified as formula
  2733.  
  2734.      Remarks:  The first operand of the NPV function is the discount
  2735.                rate. It may be a value, a cell reference, or a formula.
  2736.                The interval between the stream of flows must be
  2737.                constant, and determined by the rate; i.e. if the flows
  2738.                are annual, use an annual discount rate. If the flows are
  2739.                monthly, use a monthly discount rate.
  2740.  
  2741.                The second operand of the NPV function is a range of
  2742.                contiguous cells, which contains the stream of flows.
  2743.  
  2744.      Example:  A client has an annual income of $40,000 and he expects
  2745.                it to increase 5% annually. Make a spreadsheet showing
  2746.                his annual income for the next ten years, total income
  2747.                for ten years, and net present value of the total income,
  2748.                assuming an annual discount rate of 8%:
  2749.  
  2750.                          A1:          40000
  2751.                          A2:          A1*1.05
  2752.                          A3-A10:      /R A2 A3:A10  (adjust - Y)
  2753.                          A12:         SUM(A1:A10)
  2754.                          A13:         NPV(.08,A1:A10)
  2755.  
  2756.                Cell A13 will contain the net present value of the ten
  2757.                years' income. For larger spreadsheets using NPV several
  2758.                times, it is a good idea to put the discount in another
  2759.  
  2760.  
  2761.                                                                        92
  2762.  
  2763.  
  2764.  
  2765.  
  2766.  
  2767.  
  2768.  
  2769.  
  2770.  
  2771.  
  2772.  
  2773. -
  2774.  
  2775.  
  2776.  
  2777.  
  2778.  
  2779.  
  2780.  
  2781.  
  2782.                                                                       NPV
  2783.  
  2784.  
  2785.                cell, so it can be easily changed without having to enter
  2786.                the formulas again. In the example above, make these two
  2787.                changes:
  2788.  
  2789.                          B1:       .08
  2790.                          A13:      NPV(B1,A1:A10)
  2791.  
  2792.  
  2793.  
  2794.  
  2795.  
  2796.  
  2797.  
  2798.  
  2799.  
  2800.  
  2801.  
  2802.  
  2803.  
  2804.  
  2805.  
  2806.  
  2807.  
  2808.  
  2809.  
  2810.  
  2811.  
  2812.  
  2813.  
  2814.  
  2815.  
  2816.  
  2817.  
  2818.  
  2819.  
  2820.  
  2821.  
  2822.  
  2823.  
  2824.  
  2825.  
  2826.  
  2827.                                                                        93
  2828.  
  2829.  
  2830.  
  2831.  
  2832.  
  2833.  
  2834.  
  2835.  
  2836.  
  2837.  
  2838.  
  2839. -
  2840.  
  2841.  
  2842.  
  2843.  
  2844.  
  2845.  
  2846.  
  2847.  
  2848.                                                                      PAGE
  2849.  
  2850.  
  2851.      ____________________________________________________________________
  2852.  
  2853.                                 PAGE Function
  2854.  
  2855.  
  2856.      Purpose:  Advances a printed spreadsheet to a new page. Optional
  2857.                operand allows conditional page break.
  2858.  
  2859.  
  2860.      Format:   PAGE                     Advances to next page after
  2861.                                         printing current line
  2862.  
  2863.                PAGE(3)                  Advances to next page if there
  2864.                                         are fewer than three lines left
  2865.                                         on the current page
  2866.  
  2867.      Remarks:  When PAGE is entered into a cell, it displays as  [PAGE]
  2868.                on the screen. When PAGE(n) is entered,  [PAGE(n)]  is
  2869.                displayed on the screen. The value n must be a positive
  2870.                integer between 0 and 99. It cannot be a cell reference
  2871.                or formula.
  2872.  
  2873.                When a spreadsheet is printed, a line count is kept
  2874.                internally, to count the number of lines printed on a
  2875.                page. When this line counter reaches its maximum (the
  2876.                "lines per page" value specified in /Print), a "page
  2877.                break" occurs. At page break time, the following things
  2878.                happen:
  2879.  
  2880.                . If footings are specified, paper is advanced to the
  2881.                  footing area, and footings are printed
  2882.  
  2883.                . A form feed is sent to the printer, to advance to top
  2884.                  of page
  2885.  
  2886.                . If Pause option is specified, a message is given to
  2887.                  press ENTER to print the next page
  2888.  
  2889.                . Line counter is reset to zero
  2890.  
  2891.  
  2892.  
  2893.                                                                        94
  2894.  
  2895.  
  2896.  
  2897.  
  2898.  
  2899.  
  2900.  
  2901.  
  2902.  
  2903.  
  2904.  
  2905. -
  2906.  
  2907.  
  2908.  
  2909.  
  2910.  
  2911.  
  2912.  
  2913.  
  2914.                                                                      PAGE
  2915.  
  2916.  
  2917.                . If Border option is specified, top borders are printed
  2918.  
  2919.                . If headings are specified, they are printed, and the
  2920.                  line counter is incremented accordingly
  2921.  
  2922.                When PAGE is encountered during printing, the line it
  2923.                appears in is printed first, then the steps listed above
  2924.                are followed.
  2925.  
  2926.                When PAGE(n) is encountered during printing, the line it
  2927.                appears in is printed first, then the current line count
  2928.                is compared to n. If there is not enough room on the page
  2929.                for n more lines, the page break steps listed above are
  2930.                followed. If there is enough room, the PAGE(n) function
  2931.                is ignored.
  2932.  
  2933.                Note that PAGE(n) refers to the next n lines. The current
  2934.                line PAGE or PAGE(n) appears in is printed on the
  2935.                current page.
  2936.  
  2937.                PAGE and PAGE(n) can be the second or third operands in
  2938.                an IF function, allowing page breaks to be even further
  2939.                controlled by data in the spreadsheet. The PAGE function
  2940.                cannot be used in a formula.
  2941.  
  2942.  
  2943.  
  2944.  
  2945.  
  2946.  
  2947.  
  2948.  
  2949.  
  2950.  
  2951.  
  2952.  
  2953.  
  2954.  
  2955.  
  2956.  
  2957.  
  2958.  
  2959.                                                                        95
  2960.  
  2961.  
  2962.  
  2963.  
  2964.  
  2965.  
  2966.  
  2967.  
  2968.  
  2969.  
  2970.  
  2971. -
  2972.  
  2973.  
  2974.  
  2975.  
  2976.  
  2977.  
  2978.  
  2979.  
  2980.                                                                      PAGE
  2981.  
  2982.  
  2983.      Example:  A spreadsheet lists an employee, then has five lines of
  2984.                information about that employee. If the bottom of the
  2985.                page is approaching, we don't want to print only one or
  2986.                two lines of data on the current page, then print the
  2987.                last four or five lines on the next page. By adding a
  2988.                PAGE(5) function ahead of each employee, all five of
  2989.                their lines will always appear on the same page. The
  2990.                screen might look like this:
  2991.  
  2992.                                  A          B          C         
  2993.                             1  [PAGE(5)]
  2994.                             2  Employee A  - line 1
  2995.                             3                line 2
  2996.                             4                line 3
  2997.                             5                line 4
  2998.                             6                line 5
  2999.                             7  [PAGE(5)]
  3000.                             8  Employee B  - line 1
  3001.                             9              - line 2
  3002.                                              (etc.)
  3003.  
  3004.  
  3005.  
  3006.  
  3007.  
  3008.  
  3009.  
  3010.  
  3011.  
  3012.  
  3013.  
  3014.  
  3015.  
  3016.  
  3017.  
  3018.  
  3019.  
  3020.  
  3021.  
  3022.  
  3023.  
  3024.  
  3025.                                                                        96
  3026.  
  3027.  
  3028.  
  3029.  
  3030.  
  3031.  
  3032.  
  3033.  
  3034.  
  3035.  
  3036.  
  3037. -
  3038.  
  3039.  
  3040.  
  3041.  
  3042.  
  3043.  
  3044.  
  3045.  
  3046.                                                                   PAYMENT
  3047.  
  3048.  
  3049.      ____________________________________________________________________
  3050.  
  3051.                                PAYMENT Function
  3052.  
  3053.  
  3054.      Purpose:  Computes the payment amount per period for a given
  3055.                principal amount, rate and number of periods. (See also
  3056.                PRINCIPAL, RATE and PERIODS functions.)
  3057.  
  3058.              
  3059.      Format:   PAYMENT(principal,rate,periods)
  3060.  
  3061.                PAYMENT(1000,.01,12)        Returns 88.85
  3062.  
  3063.                PAYMENT(A1,.18/12,36)       If A1 is 1000, returns 36.16
  3064.  
  3065.                PAYMENT(B1,100,A1*2/A5)     Resolves the formula, then
  3066.                                            computes the payment
  3067.  
  3068.  
  3069.      Remarks:  PAYMENT(x,y,z) can be entered into a cell, or the
  3070.                PAYMENT function can be used in a formula.
  3071.                          
  3072.                All three operands must be specified. The rate operand
  3073.                is the rate per period. The period length needs to be
  3074.                consistent; i.e. in the first example above, the term is
  3075.                twelve months, so the rate is a monthly rate, and
  3076.                the payment amount returned is the payment per month.
  3077.  
  3078.                One note on amortizations: as the truth-in-lending laws
  3079.                so vividly indicate, there are many ways to amortize. If
  3080.                CALC comes up with a different answer than your bank,
  3081.                it may be because of their compounding method, or because
  3082.                of rounding. Generally, CALC's calculation method is
  3083.                mathematically sound, and yields the same result as an
  3084.                interest amortization table.
  3085.  
  3086.      Example:  A local used car dealer offers a time-payment plan. A
  3087.                $5,000 car requires no down payment, and requires 36
  3088.                monthly payments at 18% annual interest. Compute the
  3089.  
  3090.  
  3091.                                                                        97
  3092.  
  3093.  
  3094.  
  3095.  
  3096.  
  3097.  
  3098.  
  3099.  
  3100.  
  3101.  
  3102.  
  3103. -
  3104.  
  3105.  
  3106.  
  3107.  
  3108.  
  3109.  
  3110.  
  3111.  
  3112.                                                                   PAYMENT
  3113.  
  3114.  
  3115.                monthly payment. In any cell, enter:
  3116.  
  3117.                             PAYMENT(5000,.18/12,36)
  3118.  
  3119.                The cell displays 180.77, which is the monthly payment.
  3120.                The interest rate of .18 was an annual rate, so we used
  3121.                .18/12 for the monthly rate.
  3122.  
  3123.  
  3124.  
  3125.  
  3126.  
  3127.  
  3128.  
  3129.  
  3130.  
  3131.  
  3132.  
  3133.  
  3134.  
  3135.  
  3136.  
  3137.  
  3138.  
  3139.  
  3140.  
  3141.  
  3142.  
  3143.  
  3144.  
  3145.  
  3146.  
  3147.  
  3148.  
  3149.  
  3150.  
  3151.  
  3152.  
  3153.  
  3154.  
  3155.  
  3156.  
  3157.                                                                        98
  3158.  
  3159.  
  3160.  
  3161.  
  3162.  
  3163.  
  3164.  
  3165.  
  3166.  
  3167.  
  3168.  
  3169. -
  3170.  
  3171.  
  3172.  
  3173.  
  3174.  
  3175.  
  3176.  
  3177.  
  3178.                                                                   PERIODS
  3179.  
  3180.  
  3181.      ____________________________________________________________________
  3182.  
  3183.                                PERIODS Function
  3184.  
  3185.  
  3186.      Purpose:  Computes the term of a loan (number of periods) for a
  3187.                given principal amount, payment and interest rate. (See
  3188.                also PRINCIPAL, PAYMENT and RATE functions.)
  3189.  
  3190.              
  3191.      Format:   PERIODS(principal,payment,rate)
  3192.  
  3193.                PERIODS(1000,88.85,.01)     Returns 12
  3194.  
  3195.                PERIODS(A1,36.16,.18/12)    If A1 is 1000, returns 36
  3196.  
  3197.                PERIODS(B1,100,A1*2/A5)     Resolves the formula, then
  3198.                                            computes the periods
  3199.  
  3200.  
  3201.      Remarks:  PERIODS(x,y,z) can be entered into a cell, or the
  3202.                PERIODS function can be used in a formula. TERM is an
  3203.                alternate name for the PERIODS function.
  3204.                          
  3205.                All three operands must be specified. The rate operand
  3206.                is the rate per period. The payment and rate need to be
  3207.                consistent; i.e. in the first example above, the rate is
  3208.                a monthly rate, and the payment amount is monthly, so the
  3209.                number returned is the number of months.
  3210.  
  3211.                One note on amortizations: as the truth-in-lending laws
  3212.                so vividly indicate, there are many ways to amortize. If
  3213.                CALC comes up with a different answer than your bank,
  3214.                it may be because of their compounding method, or because
  3215.                of rounding. Generally, CALC's calculation method is
  3216.                mathematically sound, and yields the same result as an
  3217.                interest amortization table.
  3218.  
  3219.  
  3220.  
  3221.  
  3222.  
  3223.                                                                        99
  3224.  
  3225.  
  3226.  
  3227.  
  3228.  
  3229.  
  3230.  
  3231.  
  3232.  
  3233.  
  3234.  
  3235. -
  3236.  
  3237.  
  3238.  
  3239.  
  3240.  
  3241.  
  3242.  
  3243.  
  3244.                                                                   PERIODS
  3245.  
  3246.  
  3247.      Example:  A local used car dealer offers a time-payment plan. A
  3248.                $5,000 car requires no down payment, and has monthly
  3249.                payments of 180.77 at 18% annual interest. Compute the
  3250.                number of months of payments. In any cell, enter:
  3251.  
  3252.                           PERIODS(5000,180.77,.18/12)
  3253.  
  3254.                The cell displays 36, which is the number of months. The
  3255.                interest rate of .18 was an annual rate, so we used
  3256.                .18/12 for the monthly rate.
  3257.  
  3258.  
  3259.  
  3260.  
  3261.  
  3262.  
  3263.  
  3264.  
  3265.  
  3266.  
  3267.  
  3268.  
  3269.  
  3270.  
  3271.  
  3272.  
  3273.  
  3274.  
  3275.  
  3276.  
  3277.  
  3278.  
  3279.  
  3280.  
  3281.  
  3282.  
  3283.  
  3284.  
  3285.  
  3286.  
  3287.  
  3288.  
  3289.                                                                       100
  3290.  
  3291.  
  3292.  
  3293.  
  3294.  
  3295.  
  3296.  
  3297.  
  3298.  
  3299.  
  3300.  
  3301.