home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / SS / SS001B.ZIP / CALC2.DOC < prev    next >
Text File  |  1989-07-18  |  83KB  |  3,295 lines

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