home *** CD-ROM | disk | FTP | other *** search
/ Chip: 25 Years Anniversary / CHIP_25Jahre_Jubilaeum.iso / downloads / 401065 / WPO11 / Data1.cab / _57C42D2B40B54BD5ADEA5C43CD525418 < prev    next >
Text File  |  2003-03-07  |  43KB  |  1,826 lines

  1. @CATB - Concatenate Binary
  2.  
  3. Syntax
  4.  
  5. @CATB(Binary1, <HiBit1>, <LoBit1>, <Binary2>, <HiBit2>, <LoBit2>, <Bits>)
  6.  
  7.  
  8.  
  9. Binary1    First binary number.
  10.  
  11. HiBit1    Highest bit of the first number to use for concatenation; the default is the most significant bit.
  12.  
  13. LoBit1    Lowest bit of the first number to use for concatenation; the default is 0.
  14.  
  15. Binary2    Second binary number.
  16.  
  17. HiBit2    Highest bit of the second number to use for concatenation; the default is the most significant bit.
  18.  
  19. LoBit2    Lowest bit of the second number to use for concatenation; the default is 0.
  20.  
  21. Bits    Number of binary digits to return; must be in the range 0 <n ú 64.
  22.  
  23.  
  24.  
  25. @CATB joins together two specified binary numbers or extracts selected bits from one binary number. Specify high bit and low bit values if you want to use only a portion of a number for concatenation. For example, if HiBit1 = 2 and LoBit1 = 0, only the first three bits of Binary1 are joined with Binary2.
  26.  
  27. Examples
  28.  
  29. @CATB("1100",2,0,"0011",1,0) = 10011
  30.  
  31. @CATB("1100",2,0,"0011",1,0,3) = 011
  32.  
  33. @CATB("1100",3,0,"11",1,0,8) = 00110011
  34.  
  35. @CATB("101101",4,1) = 0110
  36.  
  37. @CATH - Concatenate Hexadecimal
  38.  
  39. Syntax
  40.  
  41. @CATH(Hex1, <HiBit1>, <LoBit1>, <Hex2>, <HiBit2>, <LoBit2>, <Bits>)
  42.  
  43.  
  44.  
  45. Hex1    First hexadecimal number.
  46.  
  47. HiBit1    Highest bit of the first number to use for concatenation; the default is the most significant bit.
  48.  
  49. LoBit1    Lowest bit of the first number to use for concatenation; the default is 0.
  50.  
  51. Hex2    Second hexadecimal number.
  52.  
  53. HiBit2    Highest bit of the second number to use for concatenation; the default is the most significant bit.
  54.  
  55. LoBit2    Lowest bit of the second number to use for concatenation; the default is 0.
  56.  
  57. Bits    Number of equivalent binary digits to return; 4 binary digits = 1 hexadecimal digit; must be in the range 0 <n ú 64.
  58.  
  59.  
  60.  
  61. @CATH joins together two specified hexadecimal numbers or extracts selected bits from one hexadecimal number. Specify high bit and low bit values if you want to use only a portion of a number for concatenation. For example, if HiBit1 = 2 and LoBit1 = 0, only the first three bits of Hex1 are joined with Hex2.
  62.  
  63. Examples
  64.  
  65. @CATH("C",2,0,"3",1,0) = 13
  66.  
  67. @CATH("C",2,0,"3",1,0,3) = 3
  68.  
  69. @CATH("C",3,0,"3",1,0,8) = 33
  70.  
  71. @CATH("CA",6,2) = 12
  72.  
  73. @CATNB - Concatenate n Binary
  74.  
  75. Syntax
  76.  
  77. @CATNB(n, Binary1, <Binary2>, <Binary3>, ..., <BinaryN>, <Bits>)
  78.  
  79.  
  80.  
  81. n    Number of binary numbers being concatenated; n ú 64.
  82.  
  83. Binary1    First binary number.
  84.  
  85. Binary2,Binary3, . . . , BinaryN    Second through the nth binary numbers.
  86.  
  87. Bits    Number of binary digits to return; must be in the range 0 <n ú 64.
  88.  
  89.  
  90.  
  91. @CATNB joins together n binary numbers.
  92.  
  93. Examples
  94.  
  95. @CATNB(3,1,0,1010) = 101010
  96.  
  97. @CATNB(3,1,0,1010,4) = 1010
  98.  
  99. @CATNB(3,11,"00",11,8) = 00110011
  100.  
  101. @CATNH - Concatenate n Hexadecimal
  102.  
  103. Syntax
  104.  
  105. @CATNH(n, Hex1, <Hex2>, <Hex3>, ..., <HexN>, <Bits>)
  106.  
  107.  
  108.  
  109. n    Number of hexadecimal numbers being concatenated; n ú 16.
  110.  
  111. Hex1    First hexadecimal number.
  112.  
  113. Hex2,Hex3, . . . , HexN    Second through the nth hexadecimal numbers.
  114.  
  115. Bits    Number of equivalent binary digits to return; 4 binary digits = 1 hexadecimal digit; must be in the range 0 <n ú 64.
  116.  
  117.  
  118.  
  119. @CATNH joins together n hexadecimal numbers.
  120.  
  121. Examples
  122.  
  123. @CATNH(3,"1","0","A") = 10A
  124.  
  125. @CATNH(3,"1","0","A",4) = A
  126.  
  127. @CATNH(3,"A","B","C",16) = 0ABC
  128.  
  129. @CDAYS - Calendar Days
  130.  
  131. Syntax
  132.  
  133. @CDAYS(StartDate, EndDate, <Calendar>, <February>)
  134.  
  135.  
  136.  
  137. StartDate    Number representing the start date. See "Using dates and times in Quattro Pro."
  138.  
  139. EndDate    Number representing the end date.
  140.  
  141. Calendar    Flag specifying which calendar to observe (0 = 30/360, 1 = actual/actual, 2 = actual/360, 3 = actual/365; the default is 0).
  142.  
  143. February    0 to use 30-day treatment of February for 30/360 calendar; 1 to use the actual-day treatment (the default is 0).
  144.  
  145.  
  146.  
  147. @CDAYS returns the number of calendar days between StartDate and EndDate, including EndDate in the total. If EndDate precedes StartDate, the result is negative.
  148.  
  149. You can use Calendar to specify whether the actual or 30/360 day calendar is used. Under the actual calendar, Quattro Pro calculates the number of days by subtracting one date from the other.
  150.  
  151. To handle months with more than 30 days (and February), @CDAYS sometimes adjusts StartDate or EndDate before the sum is calculated. @CDAYS adjusts StartDate to fall on the 30th if either of the following two conditions are true: the day of the month on which StartDate falls is greater than 30, or StartDate falls on the last day of February (28th or 29th, depending on year) and February is 0.
  152.  
  153. If StartDate falls on the 30th (either because @CDAYS adjusted it or it falls on the 30th) and the day of the month on which EndDate falls is greater than 30, then EndDate also adjusts to fall on the 30th. By default, @CDAYS treats the last day of February as the 30th. To prevent this, set February to 1.
  154.  
  155. Example
  156.  
  157. @CDAYS(@DATE(93,1,23),@DATE(95,6,28)) = 875
  158.  
  159. @CELL - Cell Attribute
  160.  
  161. Syntax
  162.  
  163. @CELL(Attribute, Block)
  164.  
  165.  
  166.  
  167. Attribute    Any one of the attributes listed for @CELL.
  168.  
  169. Block    A cell reference or name.
  170.  
  171.  
  172.  
  173. @CELL returns the requested attribute of the upper left cell in Block. For details on types of attributes, see Attribute Arguments.
  174.  
  175. If you type in or point to a single-cell address when entering Block, Quattro Pro converts it to a cell reference.
  176.  
  177. You can enter attributes in either upper- or lowercase, but you must surround them with double quotes. You can also reference a cell containing an attribute.
  178.  
  179. @CELL does not recalculate automatically; press F9 to obtain the current value.
  180.  
  181. Examples
  182.  
  183.  
  184.  
  185.     A    B    C    D
  186.  
  187. 1                
  188.  
  189. 2        January    February    March
  190.  
  191. 3    Advertising    $652    $833    $599
  192.  
  193. 4    Car expenses    $456    $305    $522
  194.  
  195. 5    Cleaning    $80    $80    $80
  196.  
  197.  
  198.  
  199. @CELL("prefix",A3) = '
  200.  
  201. @CELL("format",B5) = C0
  202.  
  203. @CELL("type",D4) = v
  204.  
  205. @CELL("address",A3) = $A$3
  206.  
  207. @CELL("row",B4) = 4
  208.  
  209. Attribute Arguments
  210.  
  211. You may enter any of these as Attribute arguments for @CELL, @CELLINDEX, and @CELLPOINTER:
  212.  
  213. "address"
  214.  
  215. The address of the upper left cell in Block.
  216.  
  217. "row"
  218.  
  219. The row number of the upper left cell in Block (1 to 8192).
  220.  
  221. "col"
  222.  
  223. The column number of the upper left cell in Block (1 to 256, corresponding to notebook sheets A through IV).
  224.  
  225. "sheet"
  226.  
  227. Sheet number of the upper left cell in Block (1 to 256, corresponding to notebook sheets A through IV).
  228.  
  229. "NotebookName"
  230.  
  231. Referenced notebook name, 8 characters or fewer.
  232.  
  233. "NotebookPath"
  234.  
  235. Full path name of the referenced notebook.
  236.  
  237. "TwoDAddress"
  238.  
  239. 2-D address of the referenced cell--$G$23, for example. The sheet name is never returned, even if the referenced cell is on another sheet or in another notebook.
  240.  
  241. "ThreeDAddress"
  242.  
  243. 3-D address of the referenced cell--$A:$G23, for example. The sheet name is always returned.
  244.  
  245. "FullAddress"
  246.  
  247. Full address of the referenced cell--[NOTEBK1]$A:$G$23, for example. The notebook and sheet names are always returned.
  248.  
  249. "contents"
  250.  
  251. The contents of the upper left cell in Block.
  252.  
  253. "type"
  254.  
  255. The type of data in the upper left cell in Block: b if the cell is blank, v if the cell contains a number or any formula, l if the cell contains a label.
  256.  
  257. "prefix"
  258.  
  259. The label-prefix character of the upper left cell in Block: ' if label is left-aligned, ^ if label is centered, " if label is right-aligned, \ if label is repeating.
  260.  
  261. "protect"
  262.  
  263. The protected status of the upper left cell in Block: 0 if cell is not protected, 1 if cell is protected.
  264.  
  265. "width"
  266.  
  267. The width of the column containing the upper left cell in Block (between 1 and 1024).
  268.  
  269. "rwidth"
  270.  
  271. The width of the cells.
  272.  
  273. "format"
  274.  
  275. The numeric format code of the upper left cell in Block:
  276.  
  277.  
  278.  
  279. Fn    Fixed (n = 0-15)
  280.  
  281. Sn    Scientific (n = 0-15)
  282.  
  283. Cn    Currency (n = 0-15)
  284.  
  285. ,n    Commas used to separate thousands (n = 0-15)
  286.  
  287. G    General
  288.  
  289. +    +/- (bar chart format)
  290.  
  291. Pn    Percent (n = 0-15)
  292.  
  293. D1-D5    Date
  294.  
  295. D1 = DD-MMM-YY
  296.  
  297.  D2 = DD-MMM
  298.  
  299. D3 = MMM-YY
  300.  
  301. D4 = MM/DD/YY, DD/MM/YY, DD.MM.YY, YY-MM-DD
  302.  
  303. D5 = MM/DD, DD/MM, DD.MM, MM-DD
  304.  
  305. D6-D9    Time
  306.  
  307. D6 = HH:MM:SS AM/PM
  308.  
  309. D7 = HH:MM AM/PM
  310.  
  311. D8 = HH:MM:SS-24hr, HH.MM.SS-24hr, HH,MM,SS-24hr, HHhMMmSSs
  312.  
  313. D9 = HH:MM-24hr, HH.MM-24hr, HH,MM, HHhMMm.
  314.  
  315. T    Show Formulas (Text)
  316.  
  317. H    Hidden
  318.  
  319. U    User-defined
  320.  
  321. @CELLINDEX - Cell Attribute of Table Index
  322.  
  323. Syntax
  324.  
  325. @CELLINDEX(Attribute, Block, Col, Row, <Page>)
  326.  
  327.  
  328.  
  329. Attribute    Any one of the attributes listed for @CELL.
  330.  
  331. Block    A cell reference or name.
  332.  
  333. Col    The number of the referenced column, from 0 to 255 (the first column in Block = 0, the second = 1, and so on).
  334.  
  335. Row    The number of the referenced row; if an offset, the first row in Block = 0, the second = 1, and so on.
  336.  
  337. Page    The number of the referenced sheet, from 0 to 255 (the first sheet in Block = 0, the second = 1, and so on).
  338.  
  339.  
  340.  
  341. @CELLINDEX is the same as @CELL, but returns the requested attribute of the cell in the specified column and row of Block on optional sheet. (For details on types of attributes, see Attribute Arguments.) The upper left corner of Block is column 0, row 0.
  342.  
  343. @CELLINDEX does not recalculate automatically. Press F9 to obtain the current value.
  344.  
  345. Examples
  346.  
  347.  
  348.  
  349.     A    B    C    D
  350.  
  351. 1                
  352.  
  353. 2        January    February    March
  354.  
  355. 3    Advertising    $652    $833    $599
  356.  
  357. 4    Car expenses    $456    $305    $522
  358.  
  359. 5    Cleaning    $80    $80    $80
  360.  
  361.  
  362.  
  363. @CELLINDEX("prefix",A1..D5,0,2) = '
  364.  
  365. @CELLINDEX("format",B3..D5,0,2) = C0
  366.  
  367. @CELLINDEX("type",B3..D5,2,1) = v
  368.  
  369. @CELLINDEX("address",A1..D5,0,2) = $A$3
  370.  
  371. @CELLINDEX("row",A1..D5,1,3) = 4
  372.  
  373. @CELLPOINTER - Selected Cell Attribute
  374.  
  375. Syntax
  376.  
  377. @CELLPOINTER(Attribute)
  378.  
  379.  
  380.  
  381. Attribute    Any one of the attributes listed for @CELL.
  382.  
  383.  
  384.  
  385. @CELLPOINTER is similar to @CELL in that it returns the requested attribute of a cell. The only difference is that it reads the cell containing the selector. You cannot specify another cell. However, if you move the selector to a different cell and then press F9, the results of the @CELLPOINTER formula are updated.
  386.  
  387. You can enter attribute names in either upper- or lowercase, but each must be enclosed by double quotes. For details on types of attributes, see Attribute Arguments.
  388.  
  389. This @function is useful in macros and @IF statements for quickly determining certain characteristics about the current cell, such as whether there is a label or a value currently in it. For example, this function statement tells Quattro Pro to write "value" in the cell if the current cell is a value; otherwise, it writes "label":
  390.  
  391. @IF(@CELLPOINTER("type")="v","value","label")
  392.  
  393. Examples
  394.  
  395. These examples refer to cell A1, which contains the date value 11/19/91.
  396.  
  397. @CELLPOINTER("address") = $A$1
  398.  
  399. @CELLPOINTER("col") = 1
  400.  
  401. @CELLPOINTER("contents") = 33561
  402.  
  403. @CELLPOINTER("format") = D4
  404.  
  405. @CELLPOINTER("type") = v
  406.  
  407. @CEILING - Round Up to Nearest Multiple
  408.  
  409. Syntax
  410.  
  411. @CEILING(X, Y)
  412.  
  413.  
  414.  
  415. X    Value to round.
  416.  
  417. Y    Value to make rounded x evenly divisible by.
  418.  
  419.  
  420.  
  421. @CEILING rounds X up (away from zero) to the nearest value that is evenly divisible by Y. If X and Y have different signs, the result of @CEILING is ERR.
  422.  
  423. Examples
  424.  
  425. @CEILING(22,5) = 25
  426.  
  427. @CEILING(5.7,0.2) = 5.8
  428.  
  429. @CEILING(-3.2,-2) = -4
  430.  
  431. @CEILING(-3.2,2) = ERR
  432.  
  433. @CHAR - ANSI or ASCII Character
  434.  
  435. Syntax
  436.  
  437. @CHAR(Code)
  438.  
  439.  
  440.  
  441. Code    A numeric value between 1 and 255.
  442.  
  443.  
  444.  
  445. @CHAR returns the onscreen character corresponding to the given code. This is useful in generating symbols not found on the keyboard.
  446.  
  447. Refer to any standard ANSI table for the codes corresponding to each character.
  448.  
  449. @CHAR can be used to set up an ANSI table in your notebook. Fill a column of cells with values from 1 to 255, using Block|Fill. In the cell to the right of the first number, use @CHAR to show the screen character for 1, for example, @CHAR(A1). Then copy the formula down the column for the next 255 cells. The copied formulas will display the screen character for each number. (The first 128 will be the same characters as in the ASCII character set.)
  450.  
  451. Examples
  452.  
  453. @CHAR(33) = !
  454.  
  455. @CHAR(34) = "
  456.  
  457. @CHAR(35) = #
  458.  
  459. @CHAR(36) = $
  460.  
  461. @CHIDIST - Chi-squared Distribution
  462.  
  463. Syntax
  464.  
  465. @CHIDIST(X, DegFreedom)
  466.  
  467.  
  468.  
  469. X    Value at which to evaluate the function; must be │ 0.
  470.  
  471. DegFreedom    Integer number of degrees of freedom in the distribution; must be │ 1.
  472.  
  473.  
  474.  
  475. @CHIDIST returns the cumulative chi-square distribution, which is associated with a chi-square test. Chi-square tests allow you to compare the differences between observed and expected frequencies.
  476.  
  477. If DegFreedom is not an integer, @CHIDIST rounds it to the nearest integer.
  478.  
  479. Examples
  480.  
  481. @CHIDIST(36.41503,24) = 0.05
  482.  
  483. @CHIDIST(17.53455,8) = 0.025
  484.  
  485. @CHIINV - Inverse of Chi-squared Distribution
  486.  
  487. Syntax
  488.  
  489. @CHIINV(Prob, DegFreedom)
  490.  
  491.  
  492.  
  493. Prob    Cumulative probability value; must be │ 0 and ú 1.
  494.  
  495. DegFreedom    Integer number of degrees of freedom; must be │ 1.
  496.  
  497.  
  498.  
  499. @CHIINV computes the inverse of the cumulative one-tailed chi-square distribution. Use @CHIINV to compute the critical value for a test involving a chi-square variable.
  500.  
  501. If DegFreedom is not an integer, @CHIINV rounds it to the nearest integer.
  502.  
  503. Examples
  504.  
  505. @CHIINV(0.05,24) = 36.41503
  506.  
  507. @CHIINV(0.025,8) = 17.53455
  508.  
  509. @CHITEST - Test for Independence
  510.  
  511. Syntax
  512.  
  513. @CHITEST(Actual, Expected)
  514.  
  515.  
  516.  
  517. Actual    Cells containing actual values.
  518.  
  519. Expected    Cells containing expected values.
  520.  
  521.  
  522.  
  523. @CHITEST computes the probability that the actual and expected frequencies are similar by chance. @CHITEST returns the probability for a chi-square test distribution with (r - 1)(c - 1) degrees of freedom, where r = number of rows, and c = number of columns.
  524.  
  525. Actual and Expected must have the same number of values and must contain multiple rows or columns of data.
  526.  
  527. Example
  528.  
  529. This example refers to cells in the next figure. The chi-square statistic for the data in the next figure is 16.25813 and the degrees of freedom is 4.
  530.  
  531. @CHITEST(C3..E5,C7..E9) = 0.002692
  532.  
  533.  
  534.  
  535.     A    B    C    D    E
  536.  
  537. 1        Soft Drink Flavors            
  538.  
  539. 2        Age Ranges    Cola    Orange    Lemon-lime
  540.  
  541. 3    Actual    Under 25    120    65    55
  542.  
  543. 4        26-50    100    45    85
  544.  
  545. 5        Over 50    75    35    70
  546.  
  547. 6                    
  548.  
  549. 7    Expected    Under 25    108.93    53.53    77.54
  550.  
  551. 8        26-50    104.38    51.31    74.31
  552.  
  553. 9        Over 50    81.69    40.16    58.15
  554.  
  555. @CHOOSE - Choose Value from List
  556.  
  557. Syntax
  558.  
  559. @CHOOSE(Number, List)
  560.  
  561.  
  562.  
  563. Number    A positive integer equal to or less than the number of items in List - 1.
  564.  
  565. List    One or more numeric or string values, cell addresses, and cell references or names, separated by commas.
  566.  
  567.  
  568.  
  569. @CHOOSE selects and enters a value from the supplied list. The value it chooses depends on the value of Number: 0 chooses the first value in the list; 1 chooses the second; 2 chooses the third, and so on. If you specify a cell address for Number, Quattro Pro uses the number contained in the cell. If the cell is blank, the first value is chosen.
  570.  
  571. The List values can be cell addresses, strings, numbers, or a mixture of the three. The total characters entered cannot exceed 1024.
  572.  
  573. @CHOOSE operates on integers only. If you supply a non-integer (such as 1.6433), the decimal values are disregarded. @VLOOKUP and @HLOOKUP perform similar tasks in tables.
  574.  
  575. Examples
  576.  
  577. @CHOOSE(0,"Howie","Sarah","Chris") = Howie
  578.  
  579. @CHOOSE(1,"Howie","Sarah","Chris") = Sarah
  580.  
  581. @CHOOSE(2,"Howie","Sarah","Chris") = Chris
  582.  
  583. @CHOOSE(A15,"Howie","Sarah","Chris") = Howie, if A15 is 0; Sarah if A15 is 1; Chris if A15 is 2. 
  584.  
  585. @CHOOSE(3,"Howie","Sarah","Chris") = ERR (Number is too large). 
  586.  
  587. @CHOOSE(@MOD(@NOW,7),"Saturday","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday") = Wednesday when @NOW has DateTimeNumber = 33625
  588.  
  589. @CLEAN - Remove Nonprintable Characters
  590.  
  591. Syntax
  592.  
  593. @CLEAN(String)
  594.  
  595.  
  596.  
  597. String    A string value.
  598.  
  599.  
  600.  
  601. @CLEAN removes all nonprintable characters (0-31) from a string. 
  602.  
  603. @CODE - ANSI Code
  604.  
  605. Syntax
  606.  
  607. @CODE(String)
  608.  
  609.  
  610.  
  611. String    A string value.
  612.  
  613.  
  614.  
  615. @CODE returns the ANSI code of the first character in a string. This is the opposite of @CHAR, which returns the character corresponding to the given code.
  616.  
  617. Examples
  618.  
  619. @CODE("!") = 33
  620.  
  621. @CODE("Sam") = 83 (code for S) 
  622.  
  623. @CODE("#") = 35
  624.  
  625. @CODE("$") = 36
  626.  
  627. @CODE("?") = 63
  628.  
  629. @CODE(hello) = syntax error (missing quotes) 
  630.  
  631. @COLS - Columns
  632.  
  633. Syntax
  634.  
  635. @COLS(Block)
  636.  
  637.  
  638.  
  639. Block    A cell reference or name.
  640.  
  641.  
  642.  
  643. @COLS returns the number of columns within the specified cells.
  644.  
  645. Examples
  646.  
  647. @COLS(A1..IV1) = 256
  648.  
  649. @COLS(A1..A1) = 1
  650.  
  651. @COLS(NAME) = 30 (if the NAME selection contains 30 columns) 
  652.  
  653. @COLUMN - Column Number
  654.  
  655. Syntax
  656.  
  657. @COLUMN(<Block>)
  658.  
  659.  
  660.  
  661. Block    The cell or cells for which you want the column number(s).
  662.  
  663.  
  664.  
  665. @COLUMN returns the column number(s) for a cell or cells.
  666.  
  667. Block can be a cell name.
  668.  
  669. If you omit Block, Quattro Pro assumes you want the column number of the cell where you entered @COLUMN.
  670.  
  671. Block cannot refer to non-contiguous areas.
  672.  
  673. Examples
  674.  
  675. @COLUMN(C1..C7) = 3
  676.  
  677. @COLUMN(K1..M20) = {11| 12| 13}
  678.  
  679. If F2..F7 is a cell named APRIL, @COLUMN(APRIL) = 6
  680.  
  681. Entered in D3 without an argument, @COLUMN = 4
  682.  
  683. @COMB - Combinations
  684.  
  685. Syntax
  686.  
  687. @COMB(N, R)
  688.  
  689.  
  690.  
  691. N    Number of elements in the group; must be │ 0.
  692.  
  693. R    Number of elements in each subgroup selected from group N; must be │ 0.
  694.  
  695.  
  696.  
  697. @COMB calculates the number of combinations (unordered subgroups of size R) that you can form out of a group of size N. If N < R @COMB returns ERR.
  698.  
  699. The formula for calculating the number of combinations, if R ú N, is
  700.  
  701.  
  702.  
  703.     N!
  704.  
  705. @COMB(N,R) =     ---------------
  706.  
  707.     R!(N-R)
  708.  
  709. Example
  710.  
  711. Given eleven marbles, this formula calculates how many ways a subset of 5 marbles can be constructed such that no two constructions contain the same 5 marbles:
  712.  
  713. @COMB(11,5)= 462
  714.  
  715. @COMMAND - Value of Command Equivalent
  716.  
  717. Syntax
  718.  
  719. @COMMAND(CommandEquivalent)
  720.  
  721.  
  722.  
  723. CommandEquivalent    A Quattro Pro command equivalent; to display a list, press Shift+F3 and choose Command Equivalents.
  724.  
  725.  
  726.  
  727. @COMMAND returns the current value of a Quattro Pro command equivalent. It is most often used in macros to base the next action on a particular menu setting or to save current settings so they can be restored later.
  728.  
  729. CommandEquivalent must be enclosed in double quotes. To view a list of acceptable arguments, press Shift+F3 and choose Command Equivalents.
  730.  
  731. @COMMAND returns strings; even if the setting is a number, it is returned as a string. Not all CommandEquivalent entries return a useful value. In general, @COMMAND only returns values for command equivalents that take arguments, usually menu commands that display a current setting or status.
  732.  
  733. Like @CELL, @COMMAND statements do not recalculate automatically as many other @functions do. Press F9 to obtain the current value.
  734.  
  735. A related @function that uses Quattro Pro for DOS menu equivalents is @CURVALUE. Another related @function, @PROPERTY, returns settings for requested object properties.
  736.  
  737. Examples
  738.  
  739. @COMMAND("Print.Block") = the currently specified print selection
  740.  
  741. @COMMAND("Print.Copies") = the number entered after Copies in the Spreadsheet Print dialog box
  742.  
  743. @COMPLEX - Complex Number
  744.  
  745. Syntax
  746.  
  747. @COMPLEX(X, Y)
  748.  
  749.  
  750.  
  751. X    Numeric value representing real coefficient of complex number.
  752.  
  753. Y    Numeric value representing imaginary coefficient of complex number.
  754.  
  755.  
  756.  
  757. @COMPLEX converts X and Y into a complex number.
  758.  
  759. Example
  760.  
  761. @COMPLEX(5,7) = "5+7i"
  762.  
  763. @CONCATENATE - Link Text Items
  764.  
  765. Syntax
  766.  
  767. @CONCATENATE(List)
  768.  
  769.  
  770.  
  771. List    One or more values to link together; can be labels, numbers, or cell references.
  772.  
  773.  
  774.  
  775. @CONCATENATE links several items together.
  776.  
  777. You can also use the "&" operator instead of @CONCATENATE to join text items.
  778.  
  779. Examples
  780.  
  781. Suppose you have a database where dates are stored in three fields:
  782.  
  783.  
  784.  
  785.     F    G    H
  786.  
  787. 1    Day    Month    Year
  788.  
  789. 2    31    October    1995
  790.  
  791.  
  792.  
  793. @CONCATENATE(G2," ",F2,", ",H2) = October 31, 1995
  794.  
  795.  
  796.  
  797.     A    B    C
  798.  
  799. 1    First    Init.    Last
  800.  
  801. 2    John     K.     Doe 
  802.  
  803.  
  804.  
  805. If parts of names are always entered into cells with a space following, you can concatenate first name, initial, and last name by simply referring to the cells: @CONCATENATE(A2..C2) = John K. Doe
  806.  
  807. @CONCATENATE("Lucky ","Day") = Lucky Day
  808.  
  809. (+"Lucky"&" "&"Day") = Lucky Day
  810.  
  811. @CONFIDENCE - Confidence Interval for Population Mean
  812.  
  813. Syntax
  814.  
  815. @CONFIDENCE(Alpha, SDev, Size)
  816.  
  817.  
  818.  
  819. Alpha    Significance level; the percentage of the normal curve that is outside the confidence interval (1 - Alpha); for example, if the confidence interval is 95%, Alpha = 5%; must be > 0 and < 1.
  820.  
  821. SDev    Population standard deviation; must be > 0.
  822.  
  823. Size    Sample size; must be │ 1.
  824.  
  825.  
  826.  
  827. @CONFIDENCE computes the confidence interval around the mean for a specified sample size, using the normal distribution function. Given a specified degree of confidence, the confidence interval indicates that  the population mean will be within that interval. Use @CONFIDENCE to apply levels of confidence to sample data and to determine margins of error.
  828.  
  829. Example
  830.  
  831. Out of 1000 people sampled, 490 said they would vote for Candidate A. If the population standard deviation is 0.5, this formula returns the 95% confidence interval for the population mean:
  832.  
  833. @CONFIDENCE(0.05,0.5,1000) = 0.03099
  834.  
  835. Pollsters can report that Candidate A will receive 49% of the vote with a margin of error of 3.1%.
  836.  
  837. @CONVERT - Convert Number
  838.  
  839. Syntax
  840.  
  841. @CONVERT(X, FromUnit, ToUnit)
  842.  
  843.  
  844.  
  845. X    Numeric value in FromUnit to convert, in the units specified by FromUnit.
  846.  
  847. FromUnit    Unit type of the value X (must be on the list of supported unit names).
  848.  
  849. ToUnit    Units to convert the value X into; must be on the list of supported unit names.
  850.  
  851.  
  852.  
  853. @CONVERT changes X, which is expressed in FromUnit units, to the equivalent value in ToUnit units. Column Unit of the following tables lists the measurement units that you can specify in FromUnit and ToUnit. Each argument is case sensitive.
  854.  
  855. Mass measurement units 
  856.  
  857. Mass    Unit
  858.  
  859. Gram    "g"
  860.  
  861. Slug    "sg"
  862.  
  863. Pound mass (avoirdupois)    "lbm"
  864.  
  865. U (atomic mass unit)    "u"
  866.  
  867. Ounce mass (avoirdupois)    "ozm"
  868.  
  869.  
  870.  
  871. Pressure measurement units
  872.  
  873. Pressure    Unit
  874.  
  875. Pascal    "p"
  876.  
  877. Atmosphere    "at"
  878.  
  879.  
  880.  
  881. Distance measurement units
  882.  
  883. Distance    Unit
  884.  
  885. Meter    "m"
  886.  
  887. Statute mile    "mi"
  888.  
  889. Nautical mile    "Nmi"
  890.  
  891. Inch    "in"
  892.  
  893. Foot    "ft"
  894.  
  895. Yard    "yd"
  896.  
  897. Angstrom    "ang"
  898.  
  899.  
  900.  
  901. Time measurement units
  902.  
  903. Time    Unit
  904.  
  905. Year    "yr"
  906.  
  907. Day    "day"
  908.  
  909. Hour    "hr"
  910.  
  911. Minute    "mn"
  912.  
  913. Second    "sec"
  914.  
  915.  
  916.  
  917. Force measurement units
  918.  
  919. Force    Unit
  920.  
  921. Newton    "N"
  922.  
  923. Dyne    "dy"
  924.  
  925. Pound force    "lbf"
  926.  
  927.  
  928.  
  929. Energy measurement units
  930.  
  931. Energy    Unit
  932.  
  933. Joule    "J"
  934.  
  935. Erg    "e"
  936.  
  937. Thermodynamic calorie    "c"
  938.  
  939. IT calorie    "cal"
  940.  
  941. Electron volt    "ev"
  942.  
  943. Horsepower-hour    "hh"
  944.  
  945. Watt-hour    "wh"
  946.  
  947. Foot-pound    "flb"
  948.  
  949. BTU    "btu"
  950.  
  951.  
  952.  
  953. Power measurement units
  954.  
  955. Power    Unit
  956.  
  957. Horsepower    "h"
  958.  
  959. Watt    "w"
  960.  
  961.  
  962.  
  963. Magnetic measurement units
  964.  
  965. Magnetism    Unit
  966.  
  967. Tesla    "T"
  968.  
  969. Gauss    "ga"
  970.  
  971.  
  972.  
  973. Temperature measurement units
  974.  
  975. Temperature    Unit
  976.  
  977. Celsius    "cel"
  978.  
  979. Fahrenheit    "fah"
  980.  
  981. Kelvin    "kel"
  982.  
  983. Rankine    "ran"
  984.  
  985.  
  986.  
  987. Liquid measurement units
  988.  
  989. Liquid    Unit
  990.  
  991. Teaspoon    "tsp"
  992.  
  993. Tablespoon    "tbs"
  994.  
  995. Fluid ounce    "oz"
  996.  
  997. Cup    "cup"
  998.  
  999. Pint    "pt"
  1000.  
  1001. Quart    "qt"
  1002.  
  1003. Gallon    "gal"
  1004.  
  1005. Liter    "lt"
  1006.  
  1007.  
  1008.  
  1009. If a metric unit is used (for example, Gram, Meter, or Liter), you can preface it with one of the prefixes listed in the next table. Use the metric prefixes to multiply a metric unit by a power of 10.
  1010.  
  1011.  
  1012.  
  1013. Metric Prefixes
  1014.  
  1015. Metric Prefix    Multiplier    Unit Prefix
  1016.  
  1017. exa    1E+18    "E"
  1018.  
  1019. peta    1E+15    "P"
  1020.  
  1021. tera    1E+12    "T"
  1022.  
  1023. giga    1E+09    "G"
  1024.  
  1025. mega    1E+06    "M"
  1026.  
  1027. kilo    1E+03    "k"
  1028.  
  1029. deka    1E+01    "e"
  1030.  
  1031. deci    1E-01    "d"
  1032.  
  1033. centi    1E-02    "c"
  1034.  
  1035. milli    1E-03    "m"
  1036.  
  1037. micro    1E-06    "u"
  1038.  
  1039. nano    1E-09    "n"
  1040.  
  1041. pico    1E-12    "p"
  1042.  
  1043. femto    1E-15    "f"
  1044.  
  1045. atto    1E-18    "a"
  1046.  
  1047.  
  1048.  
  1049. Whenever @CONVERT is used, both FromUnit and ToUnit must come from the same table.
  1050.  
  1051. To determine a specific conversion factor, use 1 for X.
  1052.  
  1053. Examples
  1054.  
  1055. @CONVERT(2,"day","hr") = 48
  1056.  
  1057. @CONVERT(3.5,"kg","lbm") = 7.71618
  1058.  
  1059. @CONVERT(2.5,"oz","mlt") = 73.94991
  1060.  
  1061. @CORREL - Correlation
  1062.  
  1063. Syntax
  1064.  
  1065. @CORREL(Array1, Array2)
  1066.  
  1067.  
  1068.  
  1069. Array1    First array of numeric values.
  1070.  
  1071. Array2    Second array of numeric values.
  1072.  
  1073.  
  1074.  
  1075. @CORREL computes the correlation coefficient of the numeric values in Array1 and Array2. Use @CORREL to ascertain the relationship between two sets of data. If two data sets change in a related matter based on the input that generates them, they are said to be correlated.
  1076.  
  1077. Array1 and Array2 must have the same number of values. Also, the values in Array1 and Array2 must show some variance.
  1078.  
  1079. @CORREL uses this formula:
  1080.  
  1081.  
  1082.  
  1083. Examples
  1084.  
  1085. These examples refer to cells in the next figure.
  1086.  
  1087. @CORREL(A2..A9,B2..B9) = 0.994135
  1088.  
  1089. @CORREL(A2..A9,C2..C9) = 0.460718
  1090.  
  1091. @CORREL(A2..A9,D2..D9) = -0.52494
  1092.  
  1093. @CORREL(B2..B9,C2..C9) = 0.547422
  1094.  
  1095.  
  1096.  
  1097.     A    B    C    D
  1098.  
  1099. 1    X1    X2    X3    X4
  1100.  
  1101. 2    1    2    -1    -9
  1102.  
  1103. 3    2    3    -7    -3
  1104.  
  1105. 4    3    4    2    6
  1106.  
  1107. 5    4    5    8    3
  1108.  
  1109. 6    5    6    -4    -2
  1110.  
  1111. 7    6    7    0    -21
  1112.  
  1113. 8    7    8    -12    0
  1114.  
  1115. 9    8    10    45    -33
  1116.  
  1117. @COS - Cosine
  1118.  
  1119. Syntax
  1120.  
  1121. @COS(X)
  1122.  
  1123.  
  1124.  
  1125. X    A numeric value.
  1126.  
  1127.  
  1128.  
  1129. @COS returns the cosine of the angle X. X must be given in radians, not degrees. To convert degrees to radians, use @RADIANS.
  1130.  
  1131. Examples
  1132.  
  1133. @COS(@RADIANS(60)) = 0.5
  1134.  
  1135. @COS(@RADIANS(75)) = 0.258819
  1136.  
  1137. @COS(@RADIANS(45)) = 0.707107
  1138.  
  1139. @COS(@PI/3) = 0.5
  1140.  
  1141. @COSH - Hyperbolic Cosine
  1142.  
  1143. Syntax
  1144.  
  1145. @COSH(X)
  1146.  
  1147.  
  1148.  
  1149. X    Any value from approximately -710.47558 to approximately 710.47558.
  1150.  
  1151.  
  1152.  
  1153. @COSH calculates the hyperbolic cosine of the angle X. X must be specified in radians, not degrees. To convert degrees to radians, use @RADIANS.
  1154.  
  1155. @COSH returns a value greater than or equal to 1.
  1156.  
  1157. Examples
  1158.  
  1159. @COSH(@RADIANS(60)) = 1.600287
  1160.  
  1161. @COSH(@RADIANS(75)) = 1.986274
  1162.  
  1163. @COSH(@RADIANS(45)) = 1.324609
  1164.  
  1165. @COSH(@PI/3) = 1.600287
  1166.  
  1167. @COT - Cotangent
  1168.  
  1169. Syntax
  1170.  
  1171. @COT(X)
  1172.  
  1173.  
  1174.  
  1175. X    An angle measured in radians. X can be any value from approximately -9.00719E+15 through 9.00719E+15.
  1176.  
  1177.  
  1178.  
  1179. @COT calculates the cotangent of angle X. X must be specified in radians, not degrees. To convert degrees to radians, use @RADIANS.
  1180.  
  1181. In a right triangle, the cotangent of an acute angle is the ratio side adjacent : side opposite.
  1182.  
  1183. Examples
  1184.  
  1185. @COT(4) = 0.863691
  1186.  
  1187. @COT(@PI/4) = 1
  1188.  
  1189. @COT(@RADIANS(45)) = 1
  1190.  
  1191. @COTH - Hyperbolic Cotangent
  1192.  
  1193. Syntax
  1194.  
  1195. @COTH(X)
  1196.  
  1197.  
  1198.  
  1199. X    Any value from approximately -708.39599 through 708.39599, but not 0.
  1200.  
  1201.  
  1202.  
  1203. @COTH calculates the hyperbolic cotangent of X. X must be specified in radians, not degrees. To convert degrees to radians, use @RADIANS.
  1204.  
  1205. Examples
  1206.  
  1207. @COTH(4) = 1.000671
  1208.  
  1209. @COTH(@PI/4) = 1.524869
  1210.  
  1211. @COTH(@RADIANS(45)) = 1.524869
  1212.  
  1213. @COUPDAYBS - Coupon Days from Beginning to Settlement
  1214.  
  1215. Syntax
  1216.  
  1217. @COUPDAYBS(Settle, Maturity, <Freq>, <Calendar>)
  1218.  
  1219.  
  1220.  
  1221. Settle    Number representing the settlement date; must be < Maturity.
  1222.  
  1223. Maturity    Number representing the maturity date.
  1224.  
  1225. Freq    Frequency of coupon payments in number of payments per year (can be 1, 2, 3, 4, 6, or 12; the default is 2).
  1226.  
  1227. Calendar    Flag specifying which calendar to observe (0 = 30/360, 1 = actual/actual, 2 = actual/360, 3 = actual/365; the default is 0).
  1228.  
  1229.  
  1230.  
  1231. @COUPDAYBS returns the number of days from the beginning of the coupon period of a bond to the settlement date.
  1232.  
  1233. Example
  1234.  
  1235. A bond's settlement date is May 15, 1992 and its maturity date is February 15, 1996. This formula calculates the number of days from the beginning of the coupon period to the settlement date:
  1236.  
  1237. @COUPDAYBS(@DATE(92,5,15),@DATE(96,2,15)) = 90
  1238.  
  1239. @COUPDAYS - Coupon Days
  1240.  
  1241. Syntax
  1242.  
  1243. @COUPDAYS(Settle, Maturity, <Freq>, <Calendar>)
  1244.  
  1245.  
  1246.  
  1247. Settle     Number representing the settlement date; must be < Maturity.
  1248.  
  1249. Maturity    Number representing the maturity date.
  1250.  
  1251. Freq    Frequency of coupon payments in number of payments per year (can be 1, 2, 3, 4, 6, or 12; the default is 2).
  1252.  
  1253. Calendar    Flag specifying which calendar to observe (0 = 30/360, 1 = actual/actual, 2 = actual/360, 3 = actual/365; the default is 0).
  1254.  
  1255.  
  1256.  
  1257. @COUPDAYS returns the number of days in the coupon period of a bond that contains the settlement date.
  1258.  
  1259. Example
  1260.  
  1261. A bond's settlement date is May 15, 1992 and its maturity date is February 15, 1996. This formula calculates the number of days in the coupon period that contains the settlement date.
  1262.  
  1263. @COUPDAYS(@DATE(92,5,15),@DATE(96,2,15)) = 180
  1264.  
  1265. @COUPDAYSNC - Coupon Days from Settlement to Next Coupon
  1266.  
  1267. Syntax
  1268.  
  1269. @COUPDAYSNC(Settle, Maturity, <Freq>, <Calendar>)
  1270.  
  1271.  
  1272.  
  1273. Settle     Number representing the settlement date; must be < Maturity.
  1274.  
  1275. Maturity    Number representing the maturity date.
  1276.  
  1277. Freq    Frequency of coupon payments in number of payments per year (can be 1, 2, 3, 4, 6, or 12; the default is 2).
  1278.  
  1279. Calendar    Flag specifying which calendar to observe (0 = 30/360, 1 = actual/actual, 2 = actual/360, 3 = actual/365; the default is 0).
  1280.  
  1281.  
  1282.  
  1283. @COUPDAYSNC returns the number of days from the settlement date of a bond to the next coupon date.
  1284.  
  1285. Example
  1286.  
  1287. A bond's settlement date is May 15, 1992 and its maturity date is February 15, 1996. This formula calculates the number of days between the settlement date and the next coupon date:
  1288.  
  1289. @COUPDAYSNC(@DATE(92,5,15),@DATE(96,2,15)) = 90
  1290.  
  1291. @COUPNCD - Next Coupon Date after Settlement
  1292.  
  1293. Syntax
  1294.  
  1295. @COUPNCD(Settle, Maturity, <Freq>, <Calendar>)
  1296.  
  1297.  
  1298.  
  1299. Settle    Number representing the settlement date; must be < Maturity.
  1300.  
  1301. Maturity    Number representing the maturity date.
  1302.  
  1303. Freq    Frequency of coupon payments in number of payments per year (can be 1, 2, 3, 4, 6, or 12; the default is 2).
  1304.  
  1305. Calendar    Flag specifying which calendar to observe (0 = 30/360, 1 = actual/actual, 2 = actual/360, 3 = actual/365; the default is 0).
  1306.  
  1307.  
  1308.  
  1309. @COUPNCD returns the serial date number for the next coupon date after the settlement date of a bond.
  1310.  
  1311. Example
  1312.  
  1313. A bond pays a coupon semiannually and matures on August 31, 2003. This formula calculates the date of the next coupon payment after December 17, 1992:
  1314.  
  1315. @COUPNCD(@DATE(92,12,17),@DATE(103,8,31)) = 34028 (February 28, 1993)
  1316.  
  1317. @COUPNUM - Number of Coupons
  1318.  
  1319. Syntax
  1320.  
  1321. @COUPNUM(Settle, Maturity, <Freq>, <Calendar>) 
  1322.  
  1323.  
  1324.  
  1325. Settle    Number representing the settlement date; must be < Maturity.
  1326.  
  1327. Maturity    Number representing the maturity date.
  1328.  
  1329. Freq    Frequency of coupon payments in number of payments per year (can be 1, 2, 3, 4, 6, or 12; the default is 2).
  1330.  
  1331. Calendar    Flag specifying which calendar to observe (0 = 30/360, 1 = actual/actual, 2 = actual/360, 3 = actual/365; the default is 0).
  1332.  
  1333.  
  1334.  
  1335. @COUPNUM returns the number of coupons payable between the settlement date and maturity date of a bond.
  1336.  
  1337. Example
  1338.  
  1339. A bond's settlement date is March 15, 1994 and its maturity date is April 15, 2004. This formula calculates the number of annual coupon payments there are until the maturity date:
  1340.  
  1341. @COUPNUM(@DATE(94,3,15),@DATE(104,4,15),1) = 11
  1342.  
  1343. @COUPPCD - Previous Coupon Date
  1344.  
  1345. Syntax
  1346.  
  1347. @COUPPCD(Settle, Maturity, <Freq>, <Calendar>)
  1348.  
  1349.  
  1350.  
  1351. Settle    Number representing the settlement date; must be < Maturity.
  1352.  
  1353. Maturity    Number representing the maturity date.
  1354.  
  1355. Freq    Frequency of coupon payments in number of payments per year (can be 1, 2, 3, 4, 6, or 12; the default is 2).
  1356.  
  1357. Calendar    Flag specifying which calendar to observe (0 = 30/360, 1 = actual/actual, 2 = actual/360, 3 = actual/365; the default is 0).
  1358.  
  1359.  
  1360.  
  1361. @COUPPCD returns the serial date number for the coupon date just before the settlement date of a bond.
  1362.  
  1363. Example
  1364.  
  1365. A bond's settlement date is December 17, 1992 and its maturity date is August 31, 1999. This formula calculates the date of the previous semiannual coupon payment before the settlement date:
  1366.  
  1367. @COUPPCD(@DATE(92,12,17),@DATE(99,8,31)) = 33847 (August 31, 1992)
  1368.  
  1369. @COVAR - Covariance (Population Covariance)
  1370.  
  1371. Syntax
  1372.  
  1373. @COVAR(Array1, Array2)
  1374.  
  1375.  
  1376.  
  1377. Array1    First array of numeric values.
  1378.  
  1379. Array2    Second array of numeric values.
  1380.  
  1381.  
  1382.  
  1383. @COVAR returns the covariance, which is the joint variability/degree of association of two random variables, by taking the deviations for each corresponding element in Array1 and Array2, computing their products, and taking the average of their average. Array1 and Array2 must have the same number of values. Use @COVAR to analyze the relationship between two data sets. The covariance is calculated using this formula:
  1384.  
  1385.  
  1386.  
  1387. Example
  1388.  
  1389. A high school professor recorded test scores for a class of nine students, along with their number of study hours, their estimated 'stress level' on a scale of 1 to 10, and their amount of sleep the night before the test.  To examine the relationship between the attained test score and any of these three factors, the following formulae would be used:
  1390.  
  1391. @COVAR(A2..A9,B2..B9) = 22.265625
  1392.  
  1393. @COVAR(A2..A9,C2..C9) = 3.84375
  1394.  
  1395. @COVAR(A2..A9,D2..D9) = 17.796875
  1396.  
  1397.  
  1398.  
  1399.     A    B    C    D
  1400.  
  1401. 1    SCORE    STUDY HRS.    STRESS    HRS. SLEEP
  1402.  
  1403. 2    84    7    5    8
  1404.  
  1405. 3    77    6    5    7
  1406.  
  1407. 4    88    7.5    7    7
  1408.  
  1409. 5    65    5.5    4    5
  1410.  
  1411. 6    92    9    6    8.5
  1412.  
  1413. 7    57    3    8    5
  1414.  
  1415. 8    61    4    3    4
  1416.  
  1417. 9    66    4.5    5    5
  1418.  
  1419. @COUNT - Count Non-Blank Cells
  1420.  
  1421. Syntax
  1422.  
  1423. @COUNT(List)
  1424.  
  1425.  
  1426.  
  1427. List    One or more numeric or string values, cell addresses, and cell references or names, separated by commas.
  1428.  
  1429.  
  1430.  
  1431. @COUNT returns the number of non-blank cells in List. If more than one selection is listed, they must be separated by commas.
  1432.  
  1433. Examples
  1434.  
  1435.  
  1436.  
  1437.     A    B    C    D
  1438.  
  1439. 1        January    February    March
  1440.  
  1441. 2    John    $652    $833    $599
  1442.  
  1443. 3    Mary    $456    $305    $522
  1444.  
  1445. 4    Ralph    $68    $59    $73
  1446.  
  1447. 5    Anna    $80    $80    $80
  1448.  
  1449.  
  1450.  
  1451. @COUNT(B2..B5) = 4
  1452.  
  1453. @COUNT(B1..B6) = 5
  1454.  
  1455. @COUNT(A6) = 0
  1456.  
  1457. @COUNT(A6..B6) = 0
  1458.  
  1459. @COUNT(C1..C5, D3..D6) = 8
  1460.  
  1461. @COUNTBLANK - Count Blank Cells
  1462.  
  1463. Syntax
  1464.  
  1465. @COUNTBLANK(Block)
  1466.  
  1467.  
  1468.  
  1469. Block    The cells where you want to count blank cells.
  1470.  
  1471.  
  1472.  
  1473. @COUNTBLANK counts blank cells in specified cells.
  1474.  
  1475. @COUNTBLANK includes cells with formulas that return "" (or empty text), but it does not count cells with zero values.
  1476.  
  1477. Example
  1478.  
  1479.  
  1480.  
  1481.     A    B
  1482.  
  1483. 1    One    
  1484.  
  1485. 2    2    
  1486.  
  1487. 3        
  1488.  
  1489. 4        
  1490.  
  1491. 5    410    
  1492.  
  1493.  
  1494.  
  1495. Cell A3 contains the formula
  1496.  
  1497. @IF(A2<5,"",A2), which returns "".
  1498.  
  1499. Cell A4 is empty.
  1500.  
  1501. @COUNTBLANK(A1..A5) = 2
  1502.  
  1503. @COUNTIF - Count Matching Cells
  1504.  
  1505. Syntax
  1506.  
  1507. @COUNTIF(Block, <Criteria>)
  1508.  
  1509.  
  1510.  
  1511. Block    Range of one or more cell addresses, a cell reference, or a name to include in the count.
  1512.  
  1513. Criteria    Numeric or string values that determine whether a cell is counted. If Criteria is omitted, @COUNTIF counts all cells containing logical values greater than 0 (text equals 0).
  1514.  
  1515.  
  1516.  
  1517. @COUNTIF returns the number of cells in Block that meet a specified set of criteria. 
  1518.  
  1519. Example
  1520.  
  1521.  
  1522.  
  1523.     A    B    C    D
  1524.  
  1525. 1        January    February    March
  1526.  
  1527. 2    John    Transport    Entertainment    Finance
  1528.  
  1529. 3    Mary    Food    Transport    Entertainment
  1530.  
  1531. 4    Ralph    Finance    Food    Transport
  1532.  
  1533. 5    Anna    Entertainment    Finance    Food
  1534.  
  1535.  
  1536.  
  1537. @COUNTIF(B2..D5,"Transport") = 3
  1538.  
  1539. @COUNTIF(B2..D5,"Food") = 3
  1540.  
  1541. @COUNTIF(B2..D5,"Finance") = 3
  1542.  
  1543. @CRITBINOM - Critical Probability of Binomial Distribution
  1544.  
  1545. Syntax
  1546.  
  1547. @CRITBINOM(Trials, Prob, Alpha)
  1548.  
  1549.  
  1550.  
  1551. Trials    Integer number of Bernoulli trials; must be │ 0.
  1552.  
  1553. Prob    Probability of success per trial; must be │ 0 and ú 1.
  1554.  
  1555. Alpha    Critical probability to test; must be │ 0 and ú 1.
  1556.  
  1557.  
  1558.  
  1559. @CRITBINOM calculates the maximum number of successes that can occur before the cumulative probability expressed by Alpha is exceeded for the number of Trials. @CRITBINOM has applications in quality assurance. For example, you could use @CRITBINOM to calculate the maximum number of defects allowed in a shipment.
  1560.  
  1561. Example
  1562.  
  1563. Company A tests a sample of 100 electrical circuits received from Company B. The probability that a circuit is defective is 7%. Using an Alpha value of 7.4%, this formula calculates the maximum number of defective circuits that can be expected.
  1564.  
  1565. @CRITBINOM(100,0.07,0.074) = 3
  1566.  
  1567. @CSC - Cosecant
  1568.  
  1569. Syntax
  1570.  
  1571. @CSC(X)
  1572.  
  1573.  
  1574.  
  1575. X    An angle measured in radians. X can be any value from approximately -9.00719E+15 through 9.00719E+15, excluding 0.
  1576.  
  1577.  
  1578.  
  1579. @CSC returns the cosecant of angle X, in radians. X must be specified in radians, not degrees. To convert degrees to radians, use @RADIANS.
  1580.  
  1581. The cosecant is the reciprocal of the sine. The result of @CSC is a value greater than or equal to 1, or less than or equal to -1.
  1582.  
  1583. Examples
  1584.  
  1585. @CSC(@RADIANS(30)) = 2
  1586.  
  1587. @CSC(@RADIANS(75)) = 1.035276
  1588.  
  1589. @CSC(@RADIANS(45)) = 1.414214
  1590.  
  1591. @CSC(@PI/6) = 2
  1592.  
  1593. @CSCH - Hyperbolic Cosecant
  1594.  
  1595. Syntax
  1596.  
  1597. @CSCH(X)
  1598.  
  1599.  
  1600.  
  1601. X    Any value from approximately -708.39599 through 708.39599, but not 0.
  1602.  
  1603.  
  1604.  
  1605. @CSCH(X) calculates the hyperbolic cosecant of X. X must be specified in radians, not degrees. To convert degrees to radians, use @RADIANS.
  1606.  
  1607. The hyperbolic cosecant is the reciprocal of the hyperbolic sine.
  1608.  
  1609. Examples
  1610.  
  1611. @CSCH(@RADIANS(30)) = 1.825306
  1612.  
  1613. @CSCH(@RADIANS(75)) = 0.582688
  1614.  
  1615. @CSCH(@RADIANS(45)) = 1.151184
  1616.  
  1617. @CSCH(@PI/6) = 1.825306
  1618.  
  1619. @CTERM - Compounding Periods
  1620.  
  1621. Syntax
  1622.  
  1623. @CTERM(Rate, Fv, Pv)
  1624.  
  1625.  
  1626.  
  1627. Rate    A numeric value > -1, representing the periodic interest rate (the fixed interest rate per compounding period).
  1628.  
  1629. Fv    A numeric value representing the future value of an investment (the value the investment will reach at some point).
  1630.  
  1631. Pv    A numeric value representing the current value of an investment (the present value).
  1632.  
  1633.  
  1634.  
  1635. @CTERM calculates the number of time periods required for an investment, while earning interest per compounding period, assuming that the investment is an ordinary annuity. It uses the formula
  1636.  
  1637.  
  1638.  
  1639. where
  1640.  
  1641.  
  1642.  
  1643. Fv    future value
  1644.  
  1645. Pv    present value
  1646.  
  1647. R    periodic interest rate
  1648.  
  1649.  
  1650.  
  1651. An equivalent for this formula using @NPER is
  1652.  
  1653. @NPER(Rate, 0, - Pv, Fv)
  1654.  
  1655. @CTERM assumes that the investment is an ordinary annuity. @NPER, which is calculated differently than but is related to @CTERM, uses an optional argument, Type, to indicate whether the investment is an ordinary annuity or an annuity due.
  1656.  
  1657. Examples
  1658.  
  1659. Assuming that your savings account has an annual interest rate of 7%, how long would it take a $3000 deposit to reach $5000? The answer is
  1660.  
  1661. @CTERM(7%,5000,3000) = 7.55 years
  1662.  
  1663. If the Rate figure is given for years, the result is in years as well. If you are working with monthly interest, multiply the answer by 12 to get a result in months.
  1664.  
  1665. You can also use @NPER to solve this problem:
  1666.  
  1667. @NPER(7%,0,-3000,5000,0) = 7.55
  1668.  
  1669. Other examples:
  1670.  
  1671. @CTERM(0.07,5000,3000) = 7.550042
  1672.  
  1673. @CTERM(0.10,5000,3000) = 5.359612
  1674.  
  1675. @CTERM(0.12,5000,3000) = 4.50747
  1676.  
  1677. @CTERM(0.12,10000,7000) = 3.147261
  1678.  
  1679. @CUMIPMT - Cumulative Interest Paid
  1680.  
  1681. Syntax
  1682.  
  1683. @CUMIPMT(Rate, Nper, Pv, StartPeriod, EndPeriod, Type)
  1684.  
  1685.  
  1686.  
  1687. Rate    Interest rate.
  1688.  
  1689. Nper    Total number of payment periods.
  1690.  
  1691. Pv    Present value.
  1692.  
  1693. StartPeriod    First period in the calculation.
  1694.  
  1695. EndPeriod    Last period in the calculation.
  1696.  
  1697. Type    Timing of payment:
  1698.  
  1699. 0 = payment at the end of the period
  1700.  
  1701. 1 = payment at the beginning of the period
  1702.  
  1703.  
  1704.  
  1705. @CUMIPMT returns the cumulative interest paid on a loan between specified periods or in a single period.
  1706.  
  1707. Nper, StartPeriod, EndPeriod, and Type are truncated to integers.
  1708.  
  1709. Make sure you are consistent about the units you use for specifying Rate and Nper. For example:
  1710.  
  1711.   For annual payments on a four-year loan at 12% annual interest, use 12% for Rate and 4 for Nper.
  1712.   
  1713.   For monthly payments on the same loan, use 12%/12 for Rate and 4*12 for Nper.
  1714.   
  1715.   @CUMIPMT returns ERR if:
  1716.   
  1717.   Rate <= 0, Nper <= 0, or Pv <= 0.
  1718.   
  1719.   StartPeriod < 1, EndPeriod < 1, or StartPeriod > EndPeriod.
  1720.   
  1721.   Type is any number other than 0 or 1.
  1722.   
  1723.   Any argument is non-numeric.
  1724.   
  1725. Examples
  1726.  
  1727. Your $250,000 home has a 30-year mortgage at an interest rate of 8.25%. To find out how much interest you will pay this year, the fourth year of the loan:
  1728.  
  1729. @CUMIPMT(0.0825/12,30*12, 250000,37,48,0) = -19995.14
  1730.  
  1731. The interest you will pay the first month of this year is:
  1732.  
  1733. @CUMIPMT(0.0825/12,30*12, 250000,37,37,0) = -1674.16
  1734.  
  1735. @CUMPRINC - Cumulative Principal Paid
  1736.  
  1737. Syntax
  1738.  
  1739. @CUMPRINC(Rate, Nper, Pv, StartPeriod, EndPeriod, Type)
  1740.  
  1741.  
  1742.  
  1743. Rate    Interest rate.
  1744.  
  1745. Nper    Total number of payment periods.
  1746.  
  1747. Pv    Present value.
  1748.  
  1749. StartPeriod    First period in the calculation.
  1750.  
  1751. EndPeriod    Last period in the calculation.
  1752.  
  1753. Type    Timing of the payment:
  1754.  
  1755. 0 = payment at the end of the period
  1756.  
  1757. 1 = payment at the beginning of the period
  1758.  
  1759.  
  1760.  
  1761. @CUMPRINC returns the cumulative principal paid on a loan between specified periods or in a single period.
  1762.  
  1763. Nper, StartPeriod, EndPeriod, and Type are truncated to integers.
  1764.  
  1765. Make sure you are consistent about the units you use for specifying Rate and Nper. For example:
  1766.  
  1767.   For annual payments on a four-year loan at 12% annual interest, use 12% for Rate and 4 for Nper.
  1768.   
  1769.   For monthly payments on the same loan, use 12%/12 for Rate and 4*12 for Nper.
  1770.   
  1771. @CUMIPMT returns ERR if:
  1772.  
  1773.   Rate <= 0, Nper <= 0, or Pv <= 0.
  1774.   
  1775.   StartPeriod < 1, EndPeriod < 1, or StartPeriod > EndPeriod.
  1776.   
  1777.   Type is any number other than 0 or 1.
  1778.   
  1779.   Any argument is non-numeric.
  1780.   
  1781. Examples
  1782.  
  1783. Your $250,000 home has a 30-year mortgage at an interest rate of 8.25%. To find out how much principal you will pay this year, the fourth year of the loan:
  1784.  
  1785. @CUMPRINC(0.0825/12,30*12, 250000,37,48,0) = -2542.86
  1786.  
  1787. The principal you will pay the first month of this year is:
  1788.  
  1789. @CUMPRINC(0.0825/12,30*12, 250000,37,37,0) = -204.01
  1790.  
  1791. @CURVALUE - Current Value of Quattro Pro/DOS Command
  1792.  
  1793. Syntax
  1794.  
  1795. @CURVALUE(GeneralAction, SpecificAction)
  1796.  
  1797.  
  1798.  
  1799. GeneralAction    A general menu category.
  1800.  
  1801. SpecificAction    A menu item that requires setting.
  1802.  
  1803.  
  1804.  
  1805. @CURVALUE returns the current value of a Corel Quattro Pro for DOS menu command setting. It is used in macros, usually to base the next action on a particular menu setting, and is included for compatibility with Corel Quattro Pro for DOS. To view a list of acceptable arguments, press Shift+F3 and choose / Commands.
  1806.  
  1807. A related @function that uses Corel Quattro Pro for Windows command equivalents is @COMMAND. Another related @function, @PROPERTY, returns settings for requested properties.
  1808.  
  1809. Both GeneralAction and SpecificAction must be enclosed in double quotes. They must together create one of the Corel Quattro Pro for DOS menu-equivalent commands.
  1810.  
  1811. Not all GeneralAction/SpecificAction combinations return a useful value. In general, only menu commands that display a current setting or status have menu equivalents that are useful for @CURVALUE. Some settings previously controlled with Corel Quattro Pro for DOS commands are now set through Windows, particularly hardware options and printer settings. These don't return a setting in Corel Quattro Pro for Windows.
  1812.  
  1813. Like @CELL, @CURVALUE statements do not recalculate automatically as many other @functions do. Press F9 to obtain the current value.
  1814.  
  1815. Examples
  1816.  
  1817. @CURVALUE("print","block") = the currently specified print selection
  1818.  
  1819. @CURVALUE("file","save") = the name of the last file saved
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826.