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

  1. @S - String Value of Upper Left Cell
  2.  
  3. Syntax
  4.  
  5. @S(Block)
  6.  
  7.  
  8.  
  9. Block    A cell reference or name.
  10.  
  11.  
  12.  
  13. @S returns the string value of the upper left cell of Block. If that cell contains a numeric or date value or is blank, it returns "" (an empty string).
  14.  
  15. Quattro Pro transforms cells prefixed with an exclamation point (as used in 1-2-3) to a one-cell range (!C3 changes to C3).
  16.  
  17. Examples
  18.  
  19.  
  20.  
  21.     A    B    C    D
  22.  
  23. 1    COMPANY    REP    SALES    COMMISSION
  24.  
  25. 2    ABC Inc.    Jones    $123,630    $3,115
  26.  
  27. 3    Rogers Co.    Marcus    $160,330    $4,040
  28.  
  29. 4    Klein Sales    Wong    $145,330    $3,662
  30.  
  31.  
  32.  
  33. @S(A1..A6) = COMPANY
  34.  
  35. @S(A2..A2) = ABC Inc.
  36.  
  37. @S(C2..C4) = (blank)
  38.  
  39. @S(B1..B1)&" = "&@S(B2..B2) = REP = Jones
  40.  
  41. @S(B3)&@S(C3) = Marcus
  42.  
  43. @SCMARG - Discount Scenario Margin
  44.  
  45. Syntax
  46.  
  47. @SCMARG(Npv, Discrate, Flows, <Initial>, <[Odd|Periods]>, <Simp>, <Pathdep>, <Guess>, <Precision>, <Maxiter>, <Filter>, <Start>, <End>)
  48.  
  49.  
  50.  
  51. Npv    Net present value.
  52.  
  53. Discrate     Discount rate or cells containing discount rates corresponding to cells of cash flows.
  54.  
  55. Flows    Cells containing cash flows.
  56.  
  57. Initial    Initial cash flow (the default is 0).
  58.  
  59. Odd|Periods    Delay between initial and first cash flow, in number of periods (the default is 1) or cells containing lengths of periods between cash flows (the default is 1).
  60.  
  61. Simp    Flag specifying how to discount:
  62.  
  63. 0 = compounded discounting (default)
  64.  
  65. 1 = mixed compounded and simple discounting
  66.  
  67. 2 = simple discounting
  68.  
  69. Pathdep    Flag specifying whether to apply path-dependent compounding to each flow; 0 = no path (default); 1 = path.
  70.  
  71. Guess    Initial margin for numerical search (useful for locating multiple roots) (must be > -100%; the default is 0).
  72.  
  73. Precision    Minimum required precision (must be > 0; the default is 0.000001).
  74.  
  75. Maxiter    Maximum number of iterations for search (must be > 0; the default is 50).
  76.  
  77. Filter    Flag specifying filter type: 0 = no filter (default); 1 = cashflow < Start; 2 = cashflow ú Start; 3 = cashflow > Start; 4 = cashflow │ Start; 5 = Start < cashflow < End; 6 = Start ú cashflow ú End.
  78.  
  79. Start    A starting cash flow amount to compare against individual flows.
  80.  
  81. End    An ending cash flow amount to compare against individual flows.
  82.  
  83.  
  84.  
  85. @SCMARG computes the discount scenario margin, a value that must be added to the Discrate series so that the net present value of the cash flow series equals Npv. An initial guess is made for the margin and is refined until the difference between the computed net present value and Npv is less than Precision. If @SCMARG does not find a solution within Maxiter search iterations, it returns ERR.
  86.  
  87. If Discrate is a number, @SCMARG returns the difference between the internal rate of return and Discrate. If Discrate is a selection of discount rates, the margin is the amount to add to each discount rate to make the net present value equal Npv.
  88.  
  89. Example
  90.  
  91. A stream of cash flows is indexed off the current London InterBank Offer Rate (LIBOR). The time distances between flows is specified in cells C11..C15. The first flow is 1 period away, the second is 1.5 periods after that, and so on. If the current LIBOR is 8.5%, this formula calculates the margin to LIBOR if the net present value is $167,000 and compounded discounting is used:
  92.  
  93. @SCMARG(167000,0.085,A11..A15,0,C11..C15) = 0.02599
  94.  
  95.  
  96.  
  97.     A    B    C
  98.  
  99. 10    Cash Flows        Time Periods
  100.  
  101. 11    25000        1
  102.  
  103. 12    35000        1.5
  104.  
  105. 13    23000        1.2
  106.  
  107. 14    50000        1
  108.  
  109. 15    134500        1.3
  110.  
  111. @SEC - Secant
  112.  
  113. Syntax
  114.  
  115. @SEC(X)
  116.  
  117.  
  118.  
  119. X    An angle measured in radians. X can be any value from approximately -9.00719E+15 through 9.00719E+15.
  120.  
  121.  
  122.  
  123. @SEC returns the secant of angle X, in radians. X must be specified in radians, not degrees. To convert degrees to radians, use @RADIANS.
  124.  
  125. In a right triangle, the secant of an acute angle is the ratio hypotenuse : side adjacent. Secant is the reciprocal of cosine.
  126.  
  127. Examples
  128.  
  129. @SEC(@RADIANS(60)) = 2
  130.  
  131. @SEC(@RADIANS(75)) = 3.863703
  132.  
  133. @SEC(@RADIANS(45)) = 1.414214
  134.  
  135. @SEC(@PI/3) = 2
  136.  
  137. @SECOND - Second Portion of Date Serial Number
  138.  
  139. Syntax
  140.  
  141. @SECOND(DateTimeNumber)
  142.  
  143.  
  144.  
  145. DateTimeNumber    A numeric value between -109571 and 474816.9999999, representing a date/time serial number: -109571 = January 1, 1600; 0 = December 31, 1899; 474816 = December 31, 3199; the decimal = time (24 hr).
  146.  
  147.  
  148.  
  149. See "Using dates and times in Quattro Pro."
  150.  
  151. @SECOND returns the second portion of DateTimeNumber. DateTimeNumber must be a valid date/serial number. Because only the decimal portion of a serial number pertains to time, the integer portion of the number is disregarded. The result is between 0 and 59.
  152.  
  153. To extract the second portion of a string that is in time format (instead of serial format), use @TIMEVALUE with @SECOND to translate the time into a serial number. You can also use @TIME to enter a time value instead of a serial number.
  154.  
  155. Examples
  156.  
  157. @SECOND(.3655445) = 23 
  158.  
  159. @SECOND(.2543222) = 13 
  160.  
  161. @SECOND(35) = 0 
  162.  
  163. @SECOND(@TIME(3,15,22)) = 22 
  164.  
  165. @SECOND(@TIMEVALUE("10:08:45 am")) = 45 
  166.  
  167. @SECOND(@TIMEVALUE("10:08 am")) = 0 
  168.  
  169. @SECH - Hyperbolic Secant
  170.  
  171. Syntax
  172.  
  173. @SECH(X)
  174.  
  175.  
  176.  
  177. X    A value from approximately -708.39599 to approximately 708.39599.
  178.  
  179.  
  180.  
  181. @SECH calculates the hyperbolic secant of X.
  182.  
  183. The hyperbolic secant is the reciprocal of the hyperbolic cosine. X must be specified in radians, not degrees. To convert degrees to radians, use @RADIANS.
  184.  
  185. @SECH returns a value greater than 0 or less than or equal to 1.
  186.  
  187. Examples
  188.  
  189. @SECH(@RADIANS(60)) = 0.624888
  190.  
  191. @SECH(@RADIANS(75)) = 0.503455
  192.  
  193. @SECH(@RADIANS(45)) = 0.75494
  194.  
  195. @SECH(@PI/3) = 0.624888
  196.  
  197. @SEMEAN - Standard Error of Sample Mean
  198.  
  199. Syntax
  200.  
  201. @SEMEAN(Block)
  202.  
  203.  
  204.  
  205. Block    Cell reference or name.
  206.  
  207.  
  208.  
  209. @SEMEAN returns the standard error of the sample mean for values in specified cells.
  210.  
  211. Examples
  212.  
  213. @SEMEAN({5,3,7,8}) = 1.108678
  214.  
  215. Given cells H1.. H4 containing the values 4.0, 3.4, 3.7, and 3.6,
  216.  
  217. @SEMEAN(H1..H4) = 0.125
  218.  
  219. @SERIESSUM - Sum of a Power Series
  220.  
  221. Syntax
  222.  
  223. @SERIESSUM(X, N, M, Coefficients)
  224.  
  225.  
  226.  
  227. X    Value in the power series.
  228.  
  229. N    Initial power to raise X to.
  230.  
  231. M    Increment of the power N for each successive term in the power series.
  232.  
  233. Coefficients    Cells or array of one or more numeric values by which each power of X is multiplied; the number of values in Coefficients sets the number of terms in the power series.
  234.  
  235.  
  236.  
  237. @SERIESSUM returns the sum of a power series. It uses this formula for @SERIESSUM(X,N,M,A):
  238.  
  239.  
  240.  
  241. Example
  242.  
  243. If the cells A1..A3 contain the values 1, 2, and 3, then @SERIESSUM(0.5,1,2,A1..A3) = 0.84375
  244.  
  245. @SETSTRING - Label of Given Length
  246.  
  247. Syntax
  248.  
  249. @SETSTRING(Text, Length, <Alignment>)
  250.  
  251.  
  252.  
  253. Text    Label text, in quotation marks.
  254.  
  255. Length    Integer from 1 through 1022 specifying label length.
  256.  
  257. Alignment    Optional argument specifying text alignment:
  258.  
  259. 0 = align text left; default if you omit the argument
  260.  
  261. 1 = center text
  262.  
  263. 2 = align text right
  264.  
  265.  
  266.  
  267. @SETSTRING returns a label as long as the number of characters you specify. The label consists of the specified text plus enough blank spaces to total Length, aligning the text as you specify in Alignment.
  268.  
  269.   If Length is smaller than the number of characters in Text, @SETSTRING still returns the entire text.
  270.   
  271.   With proportionally spaced fonts, blank spaces are narrower than most letters.
  272.   
  273. Examples
  274.  
  275. Each dot represents a blank space in these examples; the dots are not displayed by Quattro Pro.
  276.  
  277. @SETSTRING("Cost Estimate",18)    = Cost Estimate╖╖╖╖╖
  278.  
  279. @SETSTRING("Cost Estimate",18,1)    = ╖╖╖Cost Estimate╖╖
  280.  
  281. @SETSTRING("Cost Estimate",18,2)    = ╖╖╖╖╖Cost Estimate
  282.  
  283. @SHEETS - Number of Notebook Sheets
  284.  
  285. Syntax
  286.  
  287. @SHEETS(Block)
  288.  
  289.  
  290.  
  291. Block    A cell reference or name.
  292.  
  293.  
  294.  
  295. @SHEETS returns the number of sheets within the given cells. This is most often used with 3-D selections. @SHEETS always returns 1 for 2-D selections. This @function is similar to @COLS and @ROWS.
  296.  
  297. Examples
  298.  
  299. @SHEETS(B:A1..D:IV1) = 3
  300.  
  301. @SHEETS(A1..C7) = 1
  302.  
  303. @SHEETS(A..E:NAME) = 5
  304.  
  305. @SHLB - Binary Shift Left
  306.  
  307. Syntax
  308.  
  309. @SHLB(Binary, <ShiftBits>, <BitIn>, <Bits>)
  310.  
  311.  
  312.  
  313. Binary    Binary number.
  314.  
  315. ShiftBits    Number of bits to shift; 0 ú ShiftBits ú 64; the default is 1.
  316.  
  317. BitIn    Binary bit inserted during the shift (can be 0, 1, "S" or "I"; "S" = same as the least significant bit before shifting; "I" = inverse of the least significant bit before shifting; the default is 0).
  318.  
  319. Bits    Number of binary bits used for both input and output; if omitted, Bits = number of bits in Binary; must be in the range 0 <n ú 64.
  320.  
  321.  
  322.  
  323. @SHLB shifts the specified binary number left by ShiftBits bits. @SHLB inserts the BitIn bit at the least significant bit (LSB).
  324.  
  325. Examples
  326.  
  327. @SHLB(1000,1,0,5) = 10000
  328.  
  329. @SHLB(1000,1,1,6) = 010001
  330.  
  331. @SHLB(1000,2,1,6) = 100011
  332.  
  333. @SHLBO - Overflow of Binary Shift Left
  334.  
  335. Syntax
  336.  
  337. @SHLBO(Binary, <Bits>)
  338.  
  339.  
  340.  
  341. Binary    Binary number.
  342.  
  343. Bits    Number of input binary digits used during the shift operation; if omitted, Bits = the number of bits in Binary; must be in the range 0 <n ú 64.
  344.  
  345.  
  346.  
  347. @SHLBO returns the overflow bit (either 0 or 1) of the specified binary number after it has been shifted left by one bit.
  348.  
  349. An overflow occurs when a bit is shifted out of the word size specified by Bits. For example, if Binary = 1000 and Bits = 4, shifting the number left one bit results in 0000 with an overflow of 1 bit shifted to the fifth place not shown.
  350.  
  351. Examples
  352.  
  353. @SHLBO(1000) = 1
  354.  
  355. @SHLBO(100,4) = 0
  356.  
  357. @SHLBO(1100,4) = 1
  358.  
  359. @SHLH - Hexadecimal Shift Left
  360.  
  361. Syntax
  362.  
  363. @SHLH(Hex, <ShiftBits>, <BitIn>, <Bits>)
  364.  
  365.  
  366.  
  367. Hex    Hexadecimal number.
  368.  
  369. ShiftBits    Number of bits to shift; 0 ú ShiftBits ú 64; the default is 1.
  370.  
  371. BitIn    Binary bit inserted during the shift (can be 0, 1, "S" or "I"; "S" = same as the least significant bit before shifting; "I" = inverse of the least significant bit before shifting; the default is 0).
  372.  
  373. Bits    Number of binary bits used for both input and output; if omitted, Bits = number of bits in Hex; 4 binary digits = 1 hexadecimal digit; must be in the range 0 <n ú 64.
  374.  
  375.  
  376.  
  377. @SHLH shifts the specified hexadecimal number left by ShiftBits bits. @SHLH inserts the BitIn bit at the least significant bit (LSB).
  378.  
  379. Examples
  380.  
  381. @SHLH("41",1) = 82
  382.  
  383. @SHLH("41",1,0,12) = 082
  384.  
  385. @SHLH("C",1,1,12) = 019
  386.  
  387. @SHLHO - Overflow of Hexadecimal Shift Left
  388.  
  389. Syntax
  390.  
  391. @SHLHO(Hex, <Bits>)
  392.  
  393.  
  394.  
  395. Hex    Hexadecimal number.
  396.  
  397. Bits    Number of equivalent input binary digits used during the shift operation; if omitted, Bits = the number of bits in Hex; 4 binary digits = 1 hexadecimal digit; must be in the range 0 <n ú 64.
  398.  
  399.  
  400.  
  401. @SHLHO returns the overflow bit (either 0 or 1) of the specified hexadecimal number after it has been shifted left by one bit.
  402.  
  403. An overflow occurs when a bit is shifted out of the word size specified by Bits. For example, if the binary equivalent of Hex = 1000 and Bits = 4, shifting the number left one bit results in 0000 with an overflow of 1 bit shifted to the fifth place not shown.
  404.  
  405. Examples
  406.  
  407. @SHLHO("A") = 1
  408.  
  409. @SHLHO("A",5) = 0
  410.  
  411. @SHLHO("C",4) = 1
  412.  
  413. @SHRB - Binary Shift Right
  414.  
  415. Syntax
  416.  
  417. @SHRB(Binary, <ShiftBits>, <BitIn>, <Bits>)
  418.  
  419.  
  420.  
  421. Binary    Binary number.
  422.  
  423. ShiftBits    Number of bits to shift; 0 ú ShiftBits ú 64; the default is 1.
  424.  
  425. BitIn    Binary bit inserted during the shift (can be 0, 1, "S" or "I"; "S" = same as the most significant bit before shifting; "I" = inverse of the most significant bit before shifting; the default is "S").
  426.  
  427. Bits    Number of binary bits used for both input and output; if omitted, Bits = number of bits in Binary; must be in the range 0 <n ú 64.
  428.  
  429.  
  430.  
  431. @SHRB returns the result of shifting the specified binary number right by ShiftBits bits. @SHRB inserts the BitIn bit at the most significant bit (MSB).
  432.  
  433. Examples
  434.  
  435. @SHRB(1000,1) = 1100
  436.  
  437. @SHRB(1000,1,1,5) = 10100
  438.  
  439. @SHRB(1100,1,0,6) = 000110
  440.  
  441. @SHRBO - Overflow of Binary Shift Right
  442.  
  443. Syntax
  444.  
  445. @SHRBO(Binary, <Bits>)
  446.  
  447.  
  448.  
  449. Binary    Binary number.
  450.  
  451. Bits    Number of input binary digits used during the shift operation; if omitted, Bits = the number of bits in Binary; must be in the range 0 <n ú 64.
  452.  
  453.  
  454.  
  455. @SHRBO returns the overflow bit (either 0 or 1) of the specified binary number after it has been shifted right by one bit.
  456.  
  457. An overflow occurs when a bit is shifted out of the word size specified by Bits. For example, if Binary = 1001 and Bits = 4, shifting the number right one bit results in 0100 with an overflow of 1 bit shifted off the right side.
  458.  
  459. Examples
  460.  
  461. @SHRBO(1001) = 1
  462.  
  463. @SHRBO(10010,4) = 0
  464.  
  465. @SHRBO(1100,4) = 0
  466.  
  467. @SHRH - Hexadecimal Shift Right
  468.  
  469. Syntax
  470.  
  471. @SHRH(Hex, <ShiftBits>, <BitIn>, <Bits>)
  472.  
  473.  
  474.  
  475. Hex    Hexadecimal number.
  476.  
  477. ShiftBits    Number of bits to shift; 0 ú ShiftBits ú 64; the default is 1.
  478.  
  479. BitIn    Binary bit inserted during the shift (can be 0, 1, "S" or "I"; "S" = same as the most significant bit before shifting; "I" = inverse of the most significant bit before shifting; the default is "S").
  480.  
  481. Bits    Number of binary bits used for both input and output; if omitted, Bits = number of bits in Hex; 4 binary digits = 1 hexadecimal digit; must be in the range 0 <n ú 64.
  482.  
  483.  
  484.  
  485. @SHRH returns the result of shifting the specified hexadecimal number right by ShiftBits bits. @SHRH inserts the BitIn bit at the most significant bit (MSB).
  486.  
  487. Examples
  488.  
  489. @SHRH("41",1,1) = A0
  490.  
  491. @SHRH("41",1,1,4) = 8
  492.  
  493. @SHRH("C",1,0,12) = 006
  494.  
  495. @SHRHO - Overflow of Hexadecimal Shift Right
  496.  
  497. Syntax
  498.  
  499. @SHRHO(Hex, <Bits>) 
  500.  
  501.  
  502.  
  503. Hex    Hexadecimal number.
  504.  
  505. Bits    Number of equivalent input binary digits used during the shift operation; if omitted, Bits = the number of bits in Hex; 4 binary digits = 1 hexadecimal digit; must be in the range 0 <n ú 64.
  506.  
  507.  
  508.  
  509. @SHRHO returns the overflow bit (either 0 or 1) of the specified hexadecimal number after it has been shifted right by one bit.
  510.  
  511. An overflow occurs when a bit is shifted out of the word size specified by Bits. For example, if the binary equivalent of Hex = 1001 and Bits = 4, shifting the number right one bit results in 0100 with an overflow of 1 bit shifted off the right side.
  512.  
  513. Examples
  514.  
  515. @SHRHO("A") = 0
  516.  
  517. @SHRHO("B",5) = 1
  518.  
  519. @SHRHO("C",4) = 0
  520.  
  521. @SIGN - Tests for Sign
  522.  
  523. Syntax
  524.  
  525. @SIGN(X)
  526.  
  527.  
  528.  
  529. X    A numeric value.
  530.  
  531.  
  532.  
  533. @SIGN returns 1 if X is positive, 0 if X is zero, and -1 if X is negative.
  534.  
  535. Examples
  536.  
  537. @SIGN(2*4) = 1
  538.  
  539. @SIGN(0*4) = 0
  540.  
  541. @SIGN(-2*4) = -1
  542.  
  543. @SIN - Sine
  544.  
  545. Syntax
  546.  
  547. @SIN(X)
  548.  
  549.  
  550.  
  551. X    A numeric value.
  552.  
  553.  
  554.  
  555. @SIN returns the sine of the angle X. X must be given in radians, not degrees. To convert degrees to radians, use @RADIANS.
  556.  
  557. Examples
  558.  
  559. @SIN(@RADIANS(30)) = 0.5
  560.  
  561. @SIN(@RADIANS(75)) = 0.965926
  562.  
  563. @SIN(@RADIANS(45)) = 0.707107
  564.  
  565. @SIN(@PI/6) = 0.5
  566.  
  567. @SINH - Hyperbolic Sine
  568.  
  569. Syntax
  570.  
  571. @SINH(X)
  572.  
  573.  
  574.  
  575. X    A value from approximately -710.47558 to approximately 710.47558.
  576.  
  577.  
  578.  
  579. @SINH returns the hyperbolic sine of X, in radians. X must be specified in radians, not degrees. To convert degrees to radians, use @RADIANS.
  580.  
  581. Examples
  582.  
  583. @SINH(@RADIANS(30)) = 0.547853
  584.  
  585. @SINH(@RADIANS(75)) = 1.716184
  586.  
  587. @SINH(@RADIANS(45)) = 0.868671
  588.  
  589. @SINH(@PI/6) = 0.547853
  590.  
  591. @SKEW - Skewness of a Distribution
  592.  
  593. Syntax
  594.  
  595. @SKEW(List)
  596.  
  597.  
  598.  
  599. List    One or more numeric or cell values.
  600.  
  601.  
  602.  
  603. @SKEW returns the skewness of a distribution. Skewness characterizes the degree of asymmetry of a distribution around its mean value. Use @SKEW when you want a non-dimensional quantity to measure the "shape" of a distribution rather than its moment, which is a measure in the same units as the elements of the distribution. @SKEW finds the skewness coefficient using this formula:
  604.  
  605.  
  606.  
  607. A positive result means that the distribution is skewed to the right (the median is less than the mean). A negative result means that the distribution is skewed to the left (the median is greater than the mean). @SKEW returns 0 when the distribution is symmetrical around its mean.
  608.  
  609. If there are less than three data points in List, or if the standard deviation is zero, @SKEW returns ERR.
  610.  
  611. Example
  612.  
  613. @SKEW(4,5,8,5,7,12,6,9,2,5) = 0.685055
  614.  
  615. @SLOPE - Slope of the Linear Regression
  616.  
  617. Syntax
  618.  
  619. @SLOPE(KnownY, KnownX)
  620.  
  621.  
  622.  
  623. KnownY    Dependent range of values.
  624.  
  625. KnownX    Independent range of values.
  626.  
  627.  
  628.  
  629. @SLOPE returns the slope of the linear regression line through data points in x and y. The slope (the rate of change along the regression line) is the distance between the y values of two points, divided by the distance between their respective x values.
  630.  
  631. @SLOPE uses this formula:
  632.  
  633.  
  634.  
  635. Example
  636.  
  637. @SLOPE({1,2,3,4,5,6},{4,8,12,16,20,24}) = 0.25
  638.  
  639. @SLN - Straight-Line Depreciation
  640.  
  641. Syntax
  642.  
  643. @SLN(Cost, Salvage, Life)
  644.  
  645.  
  646.  
  647. Cost    A numeric value representing the amount paid for an asset.
  648.  
  649. Salvage    A numeric value representing the value of an asset at the end of its useful life.
  650.  
  651. Life    A numeric value representing the expected useful life of an asset (in years).
  652.  
  653.  
  654.  
  655. @SLN calculates the straight-line depreciation allowance for an asset over one period of its life. It uses this formula:
  656.  
  657. (Cost - Salvage) divided by Life
  658.  
  659. To compute accelerated depreciation with the sum-of-the-years'-digits method (allowing higher depreciation values in the first years of the asset's life), use @SYD. To calculate depreciation using the double-declining balance method, use @DDB.
  660.  
  661. Examples
  662.  
  663. Assume you just bought a new $4000 computer. The dealer says you can sell it back to the store for $350 after eight years, but that no one would want to buy it after that. In other words, the Salvage value of that computer is $350 and its Life is 8. To determine the depreciation allowance of the computer for each year of its life, enter this formula:
  664.  
  665. @SLN(4000,350,8) = 456.25
  666.  
  667. Other examples:
  668.  
  669. @SLN(15000,3000,10) = $1,200 
  670.  
  671. @SLN(5000,500,5) = $900 
  672.  
  673. @SLN(1800,0,3) = $600 
  674.  
  675. @SMALLEST - Nth Smallest number
  676.  
  677. Syntax
  678.  
  679. @SMALLEST(Array, N)
  680.  
  681.  
  682.  
  683. Array    A numeric array or cells of values.
  684.  
  685. N    Number that indicates the rank in size from the data set Array; must be greater than 0 and less than or equal to the number of values in Array.
  686.  
  687.  
  688.  
  689. @SMALLEST finds the Nth smallest number in Array. Use @SMALLEST to determine a value's rank in a data set from the bottom of that set.
  690.  
  691. If there are duplicates in Array, @SMALLEST treats them as separate numbers.
  692.  
  693. Example
  694.  
  695. @SMALLEST({3,45,8,4,7,6,13,2,87,23,58,14,17,21},5) = 7
  696.  
  697. @SPLINE - Piecewise Polynomial Fit
  698.  
  699. Syntax
  700.  
  701. @SPLINE(KnownX's, KnownY's, OutputBlock)
  702.  
  703.  
  704.  
  705. KnownX's    Independent selection or array of values.
  706.  
  707. KnownY's    Dependent selection or array of values.
  708.  
  709. OutputBlock    The cell address where the result of the @function is to be displayed.
  710.  
  711.  
  712.  
  713. @SPLINE returns a polynomial fitted piecewise to pass through a specified set of points.
  714.  
  715.   KnownX's and KnownY's must contain the same number of values.
  716.   
  717.   Values in KnownX's must be unique: The same x-value cannot have more than one y-value. If an x-value has more than one y-value, @SPLINE returns NA.
  718.   
  719. @SPLINE takes the 1-dimenisional arrays of KnownX's and KnownY's and produces a set of coefficients in the OutputBlock. The coefficients produced are those for a linear spline.
  720.  
  721. A spline is an elastic ruler used by engineers and shipbuilders that bends to pass through a specified set of points.
  722.  
  723. Example
  724.  
  725. Given the following data,
  726.  
  727.  
  728.  
  729.     A    B    C    D    E
  730.  
  731. 1                    
  732.  
  733. 2            1    2    3
  734.  
  735. 3            4    2    5
  736.  
  737. 4            -2    3    
  738.  
  739.  
  740.  
  741. @SPLINE(C2..E2,C3..E3,C4..D4) = 1
  742.  
  743. @SQRT - Square Root
  744.  
  745. Syntax
  746.  
  747. @SQRT(X)
  748.  
  749.  
  750.  
  751. X    A numeric value equal to or greater than 0.
  752.  
  753.  
  754.  
  755. @SQRT returns the square root of X. If X is a negative value, the result of @SQRT is ERR. If X is a string or reference to a cell containing a label, the @function returns 0.
  756.  
  757. Examples
  758.  
  759. @SQRT(9) = 3
  760.  
  761. @SQRT(2) = 1.414213562
  762.  
  763. @SQRT(144) = 12
  764.  
  765. @SQRT(@SQRT(16)) = 2
  766.  
  767. @SQRT(-4) = ERR
  768.  
  769. @SQRTPI - Square Root of pi*X
  770.  
  771. Syntax
  772.  
  773. @SQRTPI(X)
  774.  
  775.  
  776.  
  777. X    Value │ 0 to multiply by pi.
  778.  
  779.  
  780.  
  781. @SQRTPI returns the square root of (@PI * X). If X is negative, @SQRTPI returns ERR.
  782.  
  783. Example
  784.  
  785. @SQRTPI(2) = 2.506628
  786.  
  787. @STANDARDIZE - Normalize Values from a Distribution
  788.  
  789. Syntax
  790.  
  791. @STANDARDIZE(X, Mean, SDev)
  792.  
  793.  
  794.  
  795. X    Number to normalize.
  796.  
  797. Mean    Arithmetic mean of a distribution.
  798.  
  799. SDev    Standard deviation of a distribution.
  800.  
  801.  
  802.  
  803. @STANDARDIZE normalizes the values from a distribution. A standard normal cumulative distribution assumes a mean of 0 and a standard deviation of 1. Use @STANDARDIZE to normalize values for use with other statistical @functions that require normally distributed variables (such as @ZTEST).
  804.  
  805. @STANDARDIZE uses this formula:
  806.  
  807.  
  808.  
  809. Example
  810.  
  811. @STANDARDIZE(2.6,1.6,0.5) = 2
  812.  
  813. @STD - Population Standard Deviation
  814.  
  815. Syntax
  816.  
  817. @STD(List)
  818.  
  819.  
  820.  
  821. List    One or more numeric values, cell addresses, and cell references or names, separated by commas.
  822.  
  823.  
  824.  
  825. @STD returns the population standard deviation (the square root of the population variance) of all values in List. @STDS computes the standard deviation of sample data.
  826.  
  827. List can be any combination of single cell references, cell selections, and numeric values. When more than one component is used, all components must be separated by commas. @STD treats any labels within a cell selection as zero and ignores any blank cells. If the List contains only blank cells, however, @STD returns ERR.
  828.  
  829. @STD determines how much individual values in List differ from the average (mean) of all values in List. It can be used to verify the reliability of the average; the lower the value returned by @STD, the less individual values vary from the average.
  830.  
  831. Examples
  832.  
  833.  
  834.  
  835.     A    B    C    D
  836.  
  837. 1        January    February    March
  838.  
  839. 2    John    $652    $833    $599
  840.  
  841. 3    Mary    $456    $305    $522
  842.  
  843. 4    Ralph    $68    $59    $73
  844.  
  845.  5    Anna    $80    $80    $80
  846.  
  847.  
  848.  
  849. @STD(B4..D4) = $5.79
  850.  
  851. @STD(C2..C5,260) = $279.97
  852.  
  853. @STD(B2..D5) = $270.20
  854.  
  855. @STD(A15..D20) = ERR (because the entire selection is blank)
  856.  
  857. @STDS(B4..D4) = $7.09
  858.  
  859. @STDS(B2..D5) = $282.22
  860.  
  861. @STDS - Sample Standard Deviation
  862.  
  863. Syntax
  864.  
  865. @STDS(List)
  866.  
  867.  
  868.  
  869. List    One or more numeric values, cell addresses, and cell references or names, separated by commas.
  870.  
  871.  
  872.  
  873. @STDS returns the sample standard deviation (the square root of the sample variance) of all values in List. @STD computes population standard deviation. 
  874.  
  875. Examples
  876.  
  877.  
  878.  
  879.     A    B    C    D
  880.  
  881. 1        January    February    March
  882.  
  883. 2    John    $652    $833    $599
  884.  
  885. 3    Mary    $456    $305    $522
  886.  
  887. 4    Ralph    $68    $59    $73
  888.  
  889. 5    Anna    $80    $80    $80
  890.  
  891.  
  892.  
  893. @STD(B4..D4) = $5.79
  894.  
  895. @STD(C2..C5,260) = $279.97
  896.  
  897. @STD(B2..D5) = $270.20
  898.  
  899. @STD(A15..D20) = ERR (because the entire selection is blank)
  900.  
  901. @STDS(B4..D4) = $7.09
  902.  
  903. @STDS(B2..D5) = $282.22
  904.  
  905. @STEC - Standard Error of Regression Coefficients
  906.  
  907. Syntax
  908.  
  909. @STEC(KnownY, KnownX)
  910.  
  911.  
  912.  
  913. KnownY    Dependent range of 3 or more values.
  914.  
  915. KnownX    Independent range of 3 or more values.
  916.  
  917.  
  918.  
  919. @STEC computes the standard error of the regression coefficient.
  920.  
  921. @STEC is equal to StdError divided by (Std(x) times square root of n)
  922.  
  923.  
  924.  
  925.     @STEYX(KnownY, KnownX)
  926.  
  927. @STEC(KnownY, KnownX) =    ---------------------------------------
  928.  
  929.     @STD(KnownX) * @SQRT(n)
  930.  
  931.  
  932.  
  933. @STEC returns ERR if KnownY and KnownX do not have the same number of values, or if KnownY and KnownX have less than 3 values each.
  934.  
  935. Example
  936.  
  937. This formula calculates the standard error of the regression coefficient for range y (3,7,4,5) in cells A1..A4 and range x (3.4,5.3,6,8) in cells B1..B4:
  938.  
  939. @STEC(A1..A4,B1..B4) = 0.593769
  940.  
  941. @STEYX - Standard Error of Linear Regression
  942.  
  943. Syntax
  944.  
  945. @STEYX(KnownY, KnownX)
  946.  
  947.  
  948.  
  949. KnownY    Dependent range of 3 or more values.
  950.  
  951. KnownX    Independent range of 3 or more values.
  952.  
  953.  
  954.  
  955. @STEYX returns the standard error of a linear regression. The standard error is the deviation of the observed y values from the linear combinations. @STEYX uses this formula:
  956.  
  957.  
  958.  
  959. If KnownY or KnownX have a different number of data points, or if the variance of KnownX = 0, @STEYX returns ERR.
  960.  
  961. Example
  962.  
  963. @STEYX({4,6,7,9,8},{7,9,12,9,5}) = 2.215697
  964.  
  965. @STKOPT - Stock Options
  966.  
  967. Syntax
  968.  
  969. @STKOPT(OptCode, OptPrem, UndStkValue, Date, Load, CmdString)
  970.  
  971.  
  972.  
  973. OptCode    Option code string with expiration month, strike-price, and put or call symbol enclosed in quotation marks (for example, "MAY 22.5 C"); the strike price can be a decimal or fractional number, but not both (for example, it can be 11/32 or 1.625, but not 2 3/8); valid month codes are JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, and DEC; you can add spaces between month, strike-price, and Put or Call symbol; the total string (not including quotation marks) must be 20 characters or less.
  974.  
  975. OptPrem    Option premium or price
  976.  
  977. UndStkValue    Value or price of the underlying stock.
  978.  
  979. Date    Serial date number between 2 (January 1, 1900) and 73050 (December 31, 2099) representing the date on which to evaluate the stock option.
  980.  
  981. Load    Load or commission involved in sale or purchase.
  982.  
  983. CmdString    Command string enclosed in quotation marks specifying the operations to perform; cannot exceed 20 characters (not including quotes); see the table below for a list of valid CmdString characters.
  984.  
  985.  
  986.  
  987. @STKOPT calculates values useful in evaluating stock options. It takes as input the basic information for the option, such as the option code (expiration month, strike price, and call or put indicator), the premium, the underlying value, the date at which the option is evaluated, and the associated "load" or fee. It then calculates a value such as the expiration date of the option, the number of calendar days remaining until the option expires, or the intrinsic value of the option.
  988.  
  989. If the expiration month specified in OptCode is earlier in the year than the month specified by Date, the expiration date of the option occurs in the following year.
  990.  
  991. Load should be in the same units as OptPrem. You can use the Load argument as a general purpose value to incorporate any factor in the calculated result. For example, if you prefer a different annualization, such as 360/D, set Load to 360 and replace "A" in the CmdString formula with "L/D".
  992.  
  993. @STKOPT calculates output values according to a formula that you specify in the CmdString argument. The formula may include the following characters.
  994.  
  995. @STKOPT is valid only for options whose duration is 1 year or less
  996.  
  997.  
  998.  
  999. Character    Description
  1000.  
  1001. A    Annualization ratio (365.25/D); can be used to adjust percentages to equivalent yearly percentages
  1002.  
  1003. D    Days from DateTimeNum until expiration of option specified
  1004.  
  1005. E    Expiration date code of option specified
  1006.  
  1007. I    Intrinsic value of option
  1008.  
  1009. L    Load or fee to purchase or sell the option; can also be a general-purpose numeric constant
  1010.  
  1011. P    Premium or market value of the option
  1012.  
  1013. S    Strike or exercise price of the option
  1014.  
  1015. T    Time value of the option
  1016.  
  1017. U    Underlying value or price of the stock
  1018.  
  1019. +    Addition operator
  1020.  
  1021. -    Subtraction operator
  1022.  
  1023. *    Multiplication operator
  1024.  
  1025. /    Division operator
  1026.  
  1027.  
  1028.  
  1029. @STKOPT evaluates the command string formula from left to right with no operator precedence or associativity. The command string can be upper- or lowercase. The next table shows some examples of command strings.
  1030.  
  1031.  
  1032.  
  1033. String    Result
  1034.  
  1035. "D"    Outputs the number of days until option expiration
  1036.  
  1037. "I"    Outputs the intrinsic value
  1038.  
  1039. "L/P"    Outputs the ratio of the Load divided by the Premium
  1040.  
  1041. "T/U*A"    Time Value / Underlying value * Annualization ratio
  1042.  
  1043. "P-L/U*A"    ((Premium - Load) / Underlying value) * Annualization ratio
  1044.  
  1045.  
  1046.  
  1047. For a call, the intrinsic value is the underlying value minus the strike price or zero, whichever is greater. For a put, the intrinsic value is the strike price minus the underlying value or zero, whichever is greater. The time value is equal to the premium minus the intrinsic value. The load is an expense for either the buyer or the seller. A positive time value is considered to be an expense for the buyer and income for the seller of the option.
  1048.  
  1049. Examples
  1050.  
  1051. A November put-option on stock of company XYZ has a strike price of $65 and a premium of $2.625, with an average load of $.12 per share. XYZ's stock is currently trading at $67 per share, and the date of evaluation is June 8, 1993.
  1052.  
  1053. Expiration date:
  1054.  
  1055. @STKOPT("NOV65P",2.625,67,@DATE(93,6,8),.12,"E") = 34293 (November 20, 1993)
  1056.  
  1057. Number of days to expiration:
  1058.  
  1059. @STKOPT("NOV65P",2.625,67,@DATE(93,6,8),.12,"D") = 165
  1060.  
  1061. Time value/stock price:
  1062.  
  1063. @STKOPT("NOV65P",2.625,67,@DATE(93,6,8),.12,"T/U") = 0.039179
  1064.  
  1065. Percentage load:
  1066.  
  1067. @STKOPT("NOV65P",2.625,67,@DATE(93,6,8),.12,"L/P") = 0.045714
  1068.  
  1069. @STRCMPNORM
  1070.  
  1071. Syntax
  1072.  
  1073. @STRCMPNORM(String1, String2)
  1074.  
  1075.  
  1076.  
  1077. String1    The first string to be compared
  1078.  
  1079. String2    The second string to be compared
  1080.  
  1081.  
  1082.  
  1083. @STRCMPNORM compares two strings. @STRCMPNORM also lets you compare single-byte and double-byte character strings used in software localized to most Far Eastern languages (for example, Japanese, Chinese, and Korean). The localized machine will display a toolbar that lets you select various single and double-byte character sets from within Quattro Pro.
  1084.  
  1085. The result returned by @STRCMPNORM is:
  1086.  
  1087.   1 for equal (indicates both the strings are the same)
  1088.   
  1089.   0 for not equal (indicates that the strings are different)
  1090.   
  1091.   -1 for an error (indicates a problem with the function or with the string or cells selected)
  1092.   
  1093. Example
  1094.  
  1095. If you have strings in cells A1 and B1, type @STRCMPNORM(A1, B1) in cell C1.
  1096.  
  1097. @STRING
  1098.  
  1099. Syntax
  1100.  
  1101. @STRING(X, DecPlaces)
  1102.  
  1103.  
  1104.  
  1105. X    A numeric value, a formula that evaluates to a numeric value, or a reference to a cell containing a numeric value.
  1106.  
  1107. DecPlaces    A numeric value from 0 through 15.
  1108.  
  1109.  
  1110.  
  1111. @STRING converts X to a string, rounding X to the decimal precision indicated by DecPlaces.
  1112.  
  1113. Once a number or date has been converted to a label using @STRING, no display formatting can be done with it. To format strings derived from numbers as anything other than General format, you must build a macro that uses the {CONTENTS} keyword.
  1114.  
  1115. Examples
  1116.  
  1117. @STRING(3.59,0) = 4
  1118.  
  1119. @STRING(98.6,2) = 98.60
  1120.  
  1121. @STRING(0.3902,0) = 0
  1122.  
  1123. @STRING("Harry",0) = 0
  1124.  
  1125. @STRING(A1,2) = 10.00, if A1 contains the value 10
  1126.  
  1127. @SUBB - Subtract Binary Numbers
  1128.  
  1129. Syntax
  1130.  
  1131. @SUBB(Binary1, Binary2, <BitIn>, <Bits>)
  1132.  
  1133.  
  1134.  
  1135. Binary1    First binary number.
  1136.  
  1137. Binary2    Second binary number.
  1138.  
  1139. BitIn    Input borrow bit (either 0 or 1); the default is 0.
  1140.  
  1141. Bits    Number of binary bits used for both input and output; if omitted, Bits = number of bits in Binary1 or Binary2, whichever is greater; must be in the range 0 <n ú 64.
  1142.  
  1143.  
  1144.  
  1145. @SUBB returns the difference of two binary numbers.
  1146.  
  1147. Use two's complement notation (see Quattro Pro glossary) to represent negative numbers. If BitIn is 1, @SUBB subtracts one extra bit from the result.
  1148.  
  1149. Examples
  1150.  
  1151. @SUBB(100,100,0,1) = 0
  1152.  
  1153. @SUBB(1000,100,1,3) = 011
  1154.  
  1155. @SUBB(1100,1,1,5) = 01010
  1156.  
  1157. @SUBBO - Overflow of Binary Subtraction
  1158.  
  1159. Syntax
  1160.  
  1161. @SUBBO(Binary1, Binary2, <BitIn>, <Bits>)
  1162.  
  1163.  
  1164.  
  1165. Binary1    First binary number.
  1166.  
  1167. Binary2    Second binary number.
  1168.  
  1169. BitIn    Input borrow bit (either 0 or 1); the default is 0.
  1170.  
  1171. Bits    Number of input binary digits used for subtraction; if omitted, Bits = the number of bits in Binary1 or Binary2, whichever is greater; must be in the range 0 <n ú 64.
  1172.  
  1173.  
  1174.  
  1175. @SUBBO returns the overflow bit (either 0 or 1) of the difference of two binary numbers. An overflow occurs when a bit is borrowed from outside the word size specified by Bits. For example, if Binary1 = 10 and Binary2 = 110, the difference of the two numbers is 100 with 1 borrow bit in the fourth place not shown.
  1176.  
  1177. Use two's complement notation (see Quattro Pro glossary) to represent negative numbers. If BitIn is 1, @SUBBO subtracts one extra bit from the difference of the two numbers before returning the overflow.
  1178.  
  1179. Examples
  1180.  
  1181. @SUBBO(1000,1111) = 1
  1182.  
  1183. @SUBBO(1000,111,1,5) = 0
  1184.  
  1185. @SUBBO(1100,1101,1,4) = 1
  1186.  
  1187. @SUBH - Subtract Hexadecimal Numbers
  1188.  
  1189. Syntax
  1190.  
  1191. @SUBH(Hex1, Hex2, <BitIn>, <Bits>)
  1192.  
  1193.  
  1194.  
  1195. Hex1    First hexadecimal number.
  1196.  
  1197. Hex2    Second hexadecimal number.
  1198.  
  1199. BitIn    Input borrow bit (either 0 or 1); the default is 0.
  1200.  
  1201. Bits    Number of binary bits used for both input and output; if omitted, Bits = number of bits in Hex1 or Hex2, whichever is greater; 4 binary digits = 1 hexadecimal digit; must be in the range 0 <n ú 64.
  1202.  
  1203.  
  1204.  
  1205. @SUBH returns the difference of two hexadecimal numbers.
  1206.  
  1207. Use two's complement notation (see Quattro Pro glossary) to represent negative numbers. If BitIn is 1, @SUBH subtracts one extra bit from the result.
  1208.  
  1209. Examples
  1210.  
  1211. @SUBH("1000","100",1) = 0EFF
  1212.  
  1213. @SUBH("1000","100",0) = 0F00
  1214.  
  1215. @SUBH("C","1",1,8) = 0A
  1216.  
  1217. @SUBHO - Overflow of Hexadecimal Subtraction
  1218.  
  1219. Syntax
  1220.  
  1221. @SUBHO(Hex1, Hex2, <BitIn>, <Bits>)
  1222.  
  1223.  
  1224.  
  1225. Hex1    First hexadecimal number.
  1226.  
  1227. Hex2    Second hexadecimal number.
  1228.  
  1229. BitIn    Input borrow bit (either 0 or 1); the default is 0.
  1230.  
  1231. Bits    Number of binary bits used for both input and output; if omitted, Bits = number of bits in Hex1 or Hex2, whichever is greater; 4 binary digits = 1 hexadecimal digit; must be in the range 0 <n ú 64.
  1232.  
  1233.  
  1234.  
  1235. @SUBHO returns the overflow bit (either 0 or 1) of the difference of two hexadecimal numbers. An overflow occurs when a bit is borrowed from outside the word size specified by Bits. For example, if the binary equivalent for Hex1 and Hex2 are 10 and 110, respectively, the difference of the two numbers is 100 with 1 borrow bit in the fourth place not shown.
  1236.  
  1237. Use two's complement notation (see Quattro Pro glossary) to represent negative numbers. If BitIn is 1, @SUBHO subtracts one extra bit from the difference of the two numbers before returning the overflow.
  1238.  
  1239. Examples
  1240.  
  1241. @SUBHO(8,"F") = 1
  1242.  
  1243. @SUBHO(8,7,1,5) = 0
  1244.  
  1245. @SUBHO("C","D",1,4) = 1
  1246.  
  1247. @SUBSTITUTE - Substitutes Text
  1248.  
  1249. Syntax
  1250.  
  1251. @SUBSTITUTE(Text, OldText, NewText, <InstanceNum>)
  1252.  
  1253.  
  1254.  
  1255. Text    Text or reference to single cell containing OldText.
  1256.  
  1257. OldText    Text to be changed.
  1258.  
  1259. NewText    Text to substitute for OldText.
  1260.  
  1261. InstanceNum    Which occurrence of OldText to change. If you specify InstanceNum, @SUBSTITUTE changes only that instance. Otherwise, @SUBSTITUTE changes all occurrences.
  1262.  
  1263.  
  1264.  
  1265. @SUBSTITUTE returns a copy of a specified text string, substituting new text for old text. Use @SUBSTITUTE to replace specific text in a text string; to replace any text in a specific location in a text string, use @REPLACE. 
  1266.  
  1267. Example
  1268.  
  1269. To copy "11/1/96" but change it to "11/8/96", enter @SUBSTITUTE("11/1/96","1","8",3)
  1270.  
  1271. @SUBTOTAL - Subtotal
  1272.  
  1273. Syntax
  1274.  
  1275. @SUBTOTAL(FunctionNum, Ref)
  1276.  
  1277.  
  1278.  
  1279. FunctionNum    Number from 1 to 11, specifying which function to use in calculating subtotals.
  1280.  
  1281. Ref    List of selections or cell names to subtotal.
  1282.  
  1283.  
  1284.  
  1285. @SUBTOTAL returns a subtotal in a list or database. You can create a list using @SUBTOTAL, then modify it by editing the @SUBTOTAL formula.
  1286.  
  1287.   @SUBTOTAL ignores any nested subtotals within Ref.
  1288.   
  1289.   @SUBTOTAL ignores any hidden rows in filtered lists, so you can subtotal only visible data.
  1290.   
  1291.  
  1292.  
  1293. FunctionNum    Quattro Pro Function
  1294.  
  1295. 1    PUREAVG
  1296.  
  1297. 2    PURECOUNT
  1298.  
  1299. 3    COUNT
  1300.  
  1301. 4    PUREMAX
  1302.  
  1303. 5    PUREMIN
  1304.  
  1305. 6    MULT
  1306.  
  1307. 7    PURESTDS
  1308.  
  1309. 8    PURESTD
  1310.  
  1311. 9    SUM
  1312.  
  1313. 10    PUREVARS
  1314.  
  1315. 11    PUREVAR
  1316.  
  1317.  
  1318.  
  1319. Examples
  1320.  
  1321. In the following, Cells A3 and C3 contain @SUBTOTAL(9,A1..A2) and @SUBTOTAL(9,C1..C2), respectively. Cell A4 contains the formula @TOTAL(A1..C3) and sums all the values in the cells except those generated by @SUBTOTAL or @SUBTOTAL123. To omit possible subtotals in Column B, you could also write
  1322. @SUM(A1..A2,B1..B2)
  1323.  
  1324.  
  1325.  
  1326.     A    B    C    D
  1327.  
  1328. 1    $30        $18    
  1329.  
  1330. 2    $65        $22    
  1331.  
  1332. 3    $95        $40    @SUBTOTAL in A3 and C3, FunctionNum=9
  1333.  
  1334. 4    $135            @TOTAL in A4
  1335.  
  1336.  
  1337.  
  1338. In the next selection, rows 9 through 12 contain @SUBTOTAL functions, illustrating the way they are ignored in subsequent @SUBTOTAL calculations.
  1339.  
  1340.  
  1341.  
  1342.     A    B
  1343.  
  1344. 5    28    37
  1345.  
  1346. 6    31    35
  1347.  
  1348. 7    29    36
  1349.  
  1350. 8    32    40
  1351.  
  1352. 9    120    148
  1353.  
  1354. 10    268    
  1355.  
  1356. 11    33.5    
  1357.  
  1358.  12    4.174754    
  1359.  
  1360.  
  1361.  
  1362. A9 and B9 contain @SUBTOTAL functions summing rows 5 through 8 of their respective columns.
  1363.  
  1364. A10 contains @SUBTOTAL(9,A5..B9) = 268, the sum of the 8 values in A5.. B8, ignoring the @SUBTOTAL functions in row 9.
  1365.  
  1366. A11 contains @SUBTOTAL(1, A5..B10) = 33.5, the average of the 8 values in A5.. B8, ignoring all other @SUBTOTAL functions in the referenced cells.
  1367.  
  1368. A12 contains @SUBTOTAL(7, A5..B11) = 4.174754, the sample standard deviation of the 8 values in A5.. B8, ignoring all other @SUBTOTAL functions in the cells.
  1369.  
  1370. @SUBTOTAL123 - Subtotal
  1371.  
  1372. Syntax
  1373.  
  1374. @SUBTOTAL123(List)
  1375.  
  1376.  
  1377.  
  1378. List    One or more numeric values, cell addresses, and cell references or names, separated by commas.
  1379.  
  1380.  
  1381.  
  1382. @SUBTOTAL123 adds the values in a list or cell reference. Use @SUBTOTAL123 to indicate which cells @GRANDTOTAL123 should sum.
  1383.  
  1384. Example
  1385.  
  1386. In the following, Cells A3 and C3 contain @SUBTOTAL123(A1..A2) and @SUBTOTAL123(C1..C2), respectively. Cell A4 contains the formula @GRANDTOTAL123(A1..C3) and sums only the subtotals in the cells. To omit possible subtotals in Column B, you could also write: @SUM(A1..A2,B1..B2).
  1387.  
  1388.  
  1389.  
  1390.     A    B    C    D
  1391.  
  1392. 1    $30        $18    
  1393.  
  1394. 2    $65        $22    
  1395.  
  1396. 3    $95        $40    @SUBTOTAL123 in A3 and C3
  1397.  
  1398. 4    $135            @GRANDTOTAL123 in A4
  1399.  
  1400. @SUM
  1401.  
  1402. Syntax
  1403.  
  1404. @SUM(List)
  1405.  
  1406.  
  1407.  
  1408. List    One or more numeric values, cell addresses, and cell references or names, separated by commas.
  1409.  
  1410.  
  1411.  
  1412. @SUM returns the total of all numeric values in List. List can be any combination of single cell references, cell selections, and numeric values. When more than one component is used, they must be separated by commas. Any labels or blank cells within a cell selection are ignored by @SUM.
  1413.  
  1414. Any dates in the cells will be converted to serial numbers and included in the calculation. Since this will throw off your sum, avoid including dates in the @SUM argument cells.
  1415.  
  1416. If you use a mouse, the QuickSum button  on the Main Toolbar offers a convenient way to total columns, rows, or both. It can total rows and columns in the selected cells, but you do not need to enter a formula.
  1417.  
  1418. Examples
  1419.  
  1420.  
  1421.  
  1422.     A    B    C    D
  1423.  
  1424. 1        January    February    March
  1425.  
  1426. 2    John    $652    $833    $599
  1427.  
  1428. 3    Mary    $456    $305    $522
  1429.  
  1430. 4    Ralph    $68    $59    $73
  1431.  
  1432.  5    Anna    $80    $80    $80
  1433.  
  1434.  
  1435.  
  1436. @SUM(B4..D4) = $200
  1437.  
  1438. @SUM(C2..C5,260) = $1,537
  1439.  
  1440. @SUM(A5,534) = $534
  1441.  
  1442. @SUM(B2..B5,D2..D5) = $2,530
  1443.  
  1444. @SUM(B2..D5) = $3,807
  1445.  
  1446. @SUMIF - Sum Matching Cells
  1447.  
  1448. Syntax
  1449.  
  1450. @SUMIF(Block, Criteria, <Sum Range>)
  1451.  
  1452.  
  1453.  
  1454. Block    Overall range of one or more cell addresses, a cell reference, or name. 
  1455.  
  1456. Criteria    Numeric or string values that determine whether a cell within the Block is added.
  1457.  
  1458. <Sum Range>    Cell addresses within the Block to be included in the sum. Cell values must meet Criteria in order to be included in the sum. (optional)
  1459.  
  1460.  
  1461.  
  1462. @SUMIF adds those cells in Block that meet Criteria. An optional Sum Range may be specified to limit Criteria consideration and sum inclusion to particular cells within the Block. 
  1463.  
  1464. Examples
  1465.  
  1466.  
  1467.  
  1468.     A    B    C    D
  1469.  
  1470. 1    Customer    QTY    Price    Total
  1471.  
  1472. 2    Adams Electric    5    $1    $5
  1473.  
  1474. 3    Frys Service    2    $1    $2
  1475.  
  1476. 4    Major Hardware    4    $1    $4
  1477.  
  1478. 5    Adams Electric    5    $1    $5
  1479.  
  1480. 6    Adams Electric    5    $1    $5
  1481.  
  1482.  
  1483.  
  1484. @SUMIF(A2..D6,"Adams Electric",D2..D6) = $15
  1485.  
  1486. The second argument (criteria) must be on the left-hand side of the third argument (sum range). As well, the columns containing these arguments must be directly beside each other. If these conditions are not met the function will return ERR.
  1487.  
  1488. @SUMNEGATIVE - Adds Negative Values Only
  1489.  
  1490. Syntax
  1491.  
  1492. @SUMNEGATIVE(List)
  1493.  
  1494.  
  1495.  
  1496. List    One or more numeric values or formulas, cell addresses, and cell references or names, separated by commas.
  1497.  
  1498.  
  1499.  
  1500. @SUMNEGATIVE sums only negative values in cells or list. It ignores blank cells and labels.
  1501.  
  1502. Examples
  1503.  
  1504.  
  1505.  
  1506.     A
  1507.  
  1508. 1    Profit/Loss
  1509.  
  1510. 2    ($300)
  1511.  
  1512. 3    $2,500
  1513.  
  1514. 4    ($70)
  1515.  
  1516. 5    $500
  1517.  
  1518.  
  1519.  
  1520. @SUMNEGATIVE(A1..A6) = ($370), ignoring the label and the empty cell
  1521.  
  1522. @SUMNEGATIVE(-300,2500,-70,500) = ($370)
  1523.  
  1524. @SUMPOSITIVE - Adds Positive Values Only
  1525.  
  1526. Syntax
  1527.  
  1528. @SUMPOSITIVE(List)
  1529.  
  1530.  
  1531.  
  1532. List    One or more numeric values or formulas, cell addresses, and cell references or names, separated by commas.
  1533.  
  1534.  
  1535.  
  1536. @SUMPOSITIVE sums only positive values in cells or a list. It ignores blank cells and labels.
  1537.  
  1538. Examples
  1539.  
  1540.  
  1541.  
  1542.     A
  1543.  
  1544. 1    Profit/Loss
  1545.  
  1546. 2    ($300)
  1547.  
  1548. 3    $2,500
  1549.  
  1550. 4    ($70)
  1551.  
  1552. 5    $500
  1553.  
  1554.  
  1555.  
  1556. @SUMPOSITIVE(A1..A6) = $3,000, ignoring the label and the empty cell
  1557.  
  1558. @SUMPOSITIVE(-300,2500,-70,500) = $3,000
  1559.  
  1560. @SUMPRODUCT - Sum of Products of Corresponding Coordinates
  1561.  
  1562. Syntax
  1563.  
  1564. @SUMPRODUCT(Block1, Block2)
  1565.  
  1566.  
  1567.  
  1568. Block1    A cell reference or name.
  1569.  
  1570. Block2    A cell reference or name.
  1571.  
  1572.  
  1573.  
  1574. @SUMPRODUCT(Block1, Block2) returns the dot product of the vectors corresponding to the selections. Quattro Pro multiplies each corresponding cell from Block1 and Block2 and then totals those results. The selections must be the same size (same number of rows and same number of columns), or else the selections must both be one-dimensional (either a row or a column) and they must have the same length. If the selections do not match, @SUMPRODUCT returns ERR.
  1575.  
  1576. This @function is not compatible with 1-2-3. If your notebook must be compatible with 1-2-3, do not use @SUMPRODUCT.
  1577.  
  1578. Examples
  1579.  
  1580. Assume the following values for these cells:
  1581.  
  1582. A1 = 1, B1 = 5, A2 = 2, B2 = 6, A3 = 3, B3 = 7, A4 = 4, B4 = 8
  1583.  
  1584. @SUMPRODUCT(A1..A2,B1..B2) = 17 (because 1*5 + 2*6 = 5+12 = 17)
  1585.  
  1586. @SUMPRODUCT(A1..A4,B1..B4) = 70 
  1587.  
  1588. @SUMPRODUCT(A1..A4,B1..B5) = ERR (selections are not the same size) 
  1589.  
  1590. @SUMSQ - Sum of the Squares
  1591.  
  1592. Syntax
  1593.  
  1594. @SUMSQ(List)
  1595.  
  1596.  
  1597.  
  1598. List    One or more numeric or cell values.
  1599.  
  1600.  
  1601.  
  1602. @SUMSQ returns the sum of the squares of the values in List.
  1603.  
  1604. Example
  1605.  
  1606. @SUMSQ(2,3) = 2 + 3 = 13
  1607.  
  1608. @SUMX2MY2 - Sum of the Difference of the Squares
  1609.  
  1610. Syntax
  1611.  
  1612. @SUMX2MY2(Array1, Array2)
  1613.  
  1614.  
  1615.  
  1616. Array1    First array of numeric values.
  1617.  
  1618. Array2    Second array of numeric values.
  1619.  
  1620.  
  1621.  
  1622. @SUMX2MY2 returns the sum of the difference of the squares of the corresponding values in Array1 and Array2.
  1623.  
  1624. @SUMX2MY2 uses this formula:
  1625.  
  1626.  
  1627.  
  1628. If Array1 and Array2 have a different number of values, @SUMX2MY2 ignores extra values in the larger array.
  1629.  
  1630. Example
  1631.  
  1632. @SUMX2MY2({3,4,5},{2,3,4}) = (9 - 4) + (16 - 9) + (25 - 16) = 21
  1633.  
  1634. @SUMX2PY2 - Sum of the Sum of Squares
  1635.  
  1636. Syntax
  1637.  
  1638. @SUMX2PY2(Array1, Array2)
  1639.  
  1640.  
  1641.  
  1642. Array1    First array of numeric values.
  1643.  
  1644. Array2    Second array of numeric values.
  1645.  
  1646.  
  1647.  
  1648. @SUMX2PY2 returns the sum of the sum of squares of the corresponding values in Array1 and Array2.
  1649.  
  1650. @SUMX2PY2 uses this formula:
  1651.  
  1652.  
  1653.  
  1654. If Array1 and Array2 have a different number of values, @SUMX2PY2 ignores extra values in the larger array.
  1655.  
  1656. Example
  1657.  
  1658. @SUMX2PY2({3,4,5},{2,3,4}) = (9 + 4) + (16 + 9) + (25 + 16) = 79
  1659.  
  1660. @SUMXMY2 - Sum of the Squares of the Differences
  1661.  
  1662. Syntax
  1663.  
  1664. @SUMXMY2(Array1, Array2)
  1665.  
  1666.  
  1667.  
  1668. Array1    First array of numeric values.
  1669.  
  1670. Array2    Second array of numeric values.
  1671.  
  1672.  
  1673.  
  1674. @SUMXMY2 returns the sum of the squares of the differences of corresponding values in Array1 and Array2.
  1675.  
  1676. @SUMXMY2 uses this formula:
  1677.  
  1678.  
  1679.  
  1680. If Array1 and Array2 have a different number of values, @SUMXMY2 ignores extra values in the larger array.
  1681.  
  1682. Example
  1683.  
  1684. @SUMXMY2({3,4,5},{2,3,4}) = (3 -2) + (4 - 3) + (5 - 4) = 3
  1685.  
  1686. @SUMXPY2 - Sum of the Squares of the Sums
  1687.  
  1688. Syntax
  1689.  
  1690. @SUMXPY2(Array1, Array2)
  1691.  
  1692.  
  1693.  
  1694. Array1    First array of numeric values.
  1695.  
  1696. Array2    Second array of numeric values.
  1697.  
  1698.  
  1699.  
  1700. @SUMXPY2 returns the sum of the squares of the sums of the corresponding values in Array1 and Array2.
  1701.  
  1702. @SUMXPY2 uses this formula:
  1703.  
  1704.  
  1705.  
  1706. If Array1 and Array2 have a different number of values, @SUMXPY2 ignores extra values in the larger array.
  1707.  
  1708. Example
  1709.  
  1710. @SUMXPY2({3,4,5},{2,3,4}) = (3 + 2) + (4 + 3) + (5 + 4) = 155
  1711.  
  1712. @SUMXY - Sum of the Products
  1713.  
  1714. Syntax
  1715.  
  1716. @SUMXY(Array1, Array2)
  1717.  
  1718.  
  1719.  
  1720. Array1    First array of numeric values.
  1721.  
  1722. Array2    Second array of numeric values.
  1723.  
  1724.  
  1725.  
  1726. @SUMXY returns the sum of the products of the corresponding numbers in Array1 and Array2.
  1727.  
  1728. @SUMXY uses this formula:
  1729.  
  1730.  
  1731.  
  1732. If Array1 and Array2 have a different number of values, @SUMXY ignores extra values in the larger array.
  1733.  
  1734. Example
  1735.  
  1736. @SUMXY({3,4,5},{2,3,4}) = (3 * 2) + (4 * 3) + (5 * 4) = 38
  1737.  
  1738. @SUMXY2 - Sum of the Squares of the Products
  1739.  
  1740. Syntax
  1741.  
  1742. @SUMXY2(Array1, Array2)
  1743.  
  1744.  
  1745.  
  1746. Array1    First array of numeric values.
  1747.  
  1748. Array2    Second array of numeric values.
  1749.  
  1750.  
  1751.  
  1752. @SUMXY2 returns the sum of the squares of the products of the corresponding values in Array1 and Array2.
  1753.  
  1754. @SUMXY2 uses this formula:
  1755.  
  1756.  
  1757.  
  1758. If Array1 and Array2 have a different number of values, @SUMXY2 ignores extra values in the larger array.
  1759.  
  1760. Example
  1761.  
  1762. @SUMXY2({3,4,5},{2,3,4}) = (3 * 2) + (4 * 3) + (5 * 4) = 580
  1763.  
  1764. @SUUJI
  1765.  
  1766. Syntax
  1767.  
  1768. @SUUJI(Number, Style)
  1769.  
  1770.  
  1771.  
  1772. Number    The number
  1773.  
  1774. Style    1 Long form
  1775.  
  1776. 2 Long form: accounting
  1777.  
  1778. 3 Short form
  1779.  
  1780.  
  1781.  
  1782. @SUUJI converts an arabic number into its kanji representation. The Style parameter lets you specify how you want the representation to be displayed.
  1783.  
  1784. @SYD - Sum-of-the-years'-digits Depreciation
  1785.  
  1786. Syntax
  1787.  
  1788. @SYD(Cost, Salvage, Life, Period)
  1789.  
  1790.  
  1791.  
  1792. Cost    A numeric value representing the amount paid for an asset.
  1793.  
  1794. Salvage    A numeric value representing the value of an asset at the end of its useful life.
  1795.  
  1796. Life    A numeric value representing the expected useful life of an asset (in years).
  1797.  
  1798. Period    A numeric value representing the time period for which you want to calculate depreciation.
  1799.  
  1800.  
  1801.  
  1802. @SYD calculates depreciation amounts for an asset using an accelerated depreciation method. This allows higher depreciation in the earlier years of the asset's life. @SYD uses this formula to compute depreciation:
  1803.  
  1804. ((Cost - Salvage)(Life - Period + 1)) divided by (Life(Life + 1)/2)
  1805.  
  1806. Cost must be equal to or greater than Salvage; both must be equal to or greater than 0. Life must be equal to or greater than Period; both must be equal to or greater than 1.
  1807.  
  1808. @DDB and @SLN offer other methods of calculating depreciation.
  1809.  
  1810. Examples
  1811.  
  1812. Assume you just bought a new $4000 computer. The dealer says you can sell it back to the store for $350 after eight years, but that no one would want to buy it after that. The Salvage value of that computer is $350 and its Life is 8. To see what the depreciation allowance of this computer will be by the second year (using this method of depreciation), enter this formula:
  1813.  
  1814. @SYD(4000,350,8,2) = 709.72
  1815.  
  1816. These examples show depreciation values for the first five years of an asset's life. These can be compared to those calculated with @DDB,FUNCTION_DDB which distributes more of the depreciation in the first year of life.
  1817.  
  1818. @SYD(12000,1000,5,1) = $3,667 
  1819.  
  1820. @SYD(12000,1000,5,2) = $2,933 
  1821.  
  1822. @SYD(12000,1000,5,3) = $2,200 
  1823.  
  1824. @SYD(12000,1000,5,4) = $1,467 
  1825.  
  1826. @SYD(12000,1000,5,5) = $733
  1827.  
  1828. @DDB(12000,1000,5,1) = $4,800 
  1829.  
  1830. @DDB(12000,1000,5,2) = $2,880 
  1831.  
  1832. @DDB(12000,1000,5,3) = $1,728 
  1833.  
  1834. @DDB(12000,1000,5,4) = $1,037 
  1835.  
  1836. @DDB(12000,1000,5,5) = $555 
  1837.  
  1838.  
  1839.  
  1840.  
  1841.