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

  1. @@ - Contents of Cell
  2.  
  3. Syntax
  4.  
  5. @@(Cell)
  6.  
  7.  
  8.  
  9. Cell    A single cell address that contains another cell address or cell name that is written as a label.
  10.  
  11.  
  12.  
  13. @@ is used to reference a cell that contains another cell address or cell name that is written as a label. @@ translates the label into a cell or single-cell reference and returns the contents of that cell. @@ does not accept a cell name for a selection that is not a single-cell.
  14.  
  15. Examples
  16.  
  17. @@("A15") = the contents of A15
  18.  
  19. @@("BLOCK_NAME") = the contents of the single-cell named BLOCK_NAME
  20.  
  21. @@(A3) = 50 if A3 contains the label 'A1 and cell A1 contains the value 50
  22.  
  23. @@(A3) = the label 'Total if A3 contains the label 'Block, which is the name of cell C9, which contains the label 'Total
  24.  
  25. @@(A1) = ERR, where A1 contains the label 'B1..B5
  26.  
  27. @@(A1) = B1, where A1 contains the label 'B1
  28.  
  29. @@("A1") = B1..B5, where A1 contains the label 'B1..B5
  30.  
  31. @@("[NOTEBK1]A1") = B1..B5, where A1 in the current sheet of NOTEBK1 contains the label 'B1..B5 and NOTEBK1 is open
  32.  
  33. @SUM(@@(A1)) = the sum of the values in B1..B5, where A1 contains the label 'B1..B5, because Quattro Pro translates the label into cell coordinates for a non-single cell selection
  34.  
  35. @@("B1..B5") = ERR (not a single-cell selection)
  36.  
  37. @SUM(@@("B1..B5")) = 5 if cells B1 through B5 each contain 1
  38.  
  39. @ABDAYS--Add/Subtract Business Days
  40.  
  41. Syntax
  42.  
  43. @ABDAYS(Date, Days, <Holidays>, <Saturday>, <Sunday>)
  44.  
  45.  
  46.  
  47. Date    Number representing the date to which a number of business days should be added. See "Using dates and times in Quattro Pro."
  48.  
  49. Days    Integer representing number of business days to add; can be negative.
  50.  
  51. Holidays    Cells containing dates that are holidays or the date of a single holiday or 0 to indicate no holidays (the default is 0).
  52.  
  53. Saturday    0 to specify that Saturday is not a business day; 1 to specify that Saturday is a business day (the default is 0).
  54.  
  55. Sunday    0 to specify that Sunday is not a business day; 1 to specify that Sunday is a business day (the default is 0).
  56.  
  57.  
  58.  
  59. @ABDAYS adds or subtracts Days business days from Date and returns a serial date number.
  60.  
  61. If Date falls on a weekend or a holiday, one business day out of Days is used to bring Date forward to the next business day; if Days is negative, Date is taken backward to the previous business day. For example, if 20 business days are added to June 5, 1993, the result is the same as adding 19 business days to June 7, 1993 since June 5 falls on a Saturday.
  62.  
  63. Example
  64.  
  65. This formula calculates the date that precedes January 12, 1994 by 90 business days, assuming that Saturday, Sunday, and the dates in the cells A7..C9 are holidays:
  66.  
  67. @ABDAYS(@DATE(94,1,12),-90,A7..C9) = 34213 (September 1, 1993)
  68.  
  69. @ABS - Absolute Value
  70.  
  71. Syntax
  72.  
  73. @ABS(X)
  74.  
  75.  
  76.  
  77. X    A numeric value.
  78.  
  79.  
  80.  
  81. @ABS returns the absolute (positive) value of X.
  82.  
  83. Examples
  84.  
  85. @ABS(-100) = 100
  86.  
  87. @ABS(100) = 100
  88.  
  89. @ABS(0) = 0
  90.  
  91. @ACCRINT - Accrued Interest (Bond)
  92.  
  93. Syntax
  94.  
  95. @ACCRINT(Settle, Maturity, Coupon, <Issue>, <FirstCpn>, <Par>, <Freq>, <Calendar>)
  96.  
  97.  
  98.  
  99. Settle    Number representing the settlement date.
  100.  
  101. Maturity    Number representing the maturity date.
  102.  
  103. Coupon    Coupon rate; 0 ú Coupon ú 1.
  104.  
  105. Issue    Number representing the issue date.
  106.  
  107. FirstCpn    Number representing the first coupon date.
  108.  
  109. Par    Par value (the default is 1000).
  110.  
  111. Freq    Frequency of coupon payments in the number of payments per year (can be 1, 2, 3, 4, 6, or 12; the default is 2).
  112.  
  113. Calendar    Flag specifying which calendar to observe:
  114.  
  115. 0 = US (NASD) 30/360; default
  116.  
  117. 1 = Actual/actual
  118.  
  119. 2 = Actual/360
  120.  
  121. 3 = Actual/365
  122.  
  123. 4 = European 30/360
  124.  
  125.  
  126.  
  127. @ACCRINT returns the accrued interest for a bond. Accrued interest represents an amount paid to the bond seller as compensation for owning the bond for a fraction of a coupon period. Interest accrues from the last coupon date to the settlement date. @ACCRINT returns the accrued interest per 1000 face value.
  128.  
  129. Dates for @ACCRINT must follow this pattern:
  130.  
  131. Issue < Settle < FirstCpn < Maturity
  132.  
  133. Example
  134.  
  135. This formula returns the accrued interest, as of May 15, 1993, on an 8.875% bond with a $100,000 face value, maturing February 15, 1998, dated November 22, 1992, and paying its first coupon on August 15, 1993:
  136.  
  137. @ACCRINT(@DATE(93,5,15),@DATE(98,2,15),0.08875,@DATE(92,11,22),@DATE(93,8,15), 100000) = $4,264.93
  138.  
  139. @ACCRINTXL - Accrued Interest (Security) 
  140.  
  141. Syntax
  142.  
  143. @ACCRINTXL(Issue, FirstCpn, Settle, Coupon, <Par>, <Freq>, <Calendar>)
  144.  
  145.  
  146.  
  147. Issue    Number representing the issue date. (Issue, FirstInt, Settle, Freq, and Basis are truncated to integers.) The Issue value must be < FirstCpn and <Settle.
  148.  
  149. FirstCpn    Number representing the first interest date
  150.  
  151. Settle    Number representing the settlement date.
  152.  
  153. Coupon    Interest rate; 0 ú Coupon.
  154.  
  155. Par    Par value (the default is 1000).
  156.  
  157. Freq    Number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
  158.  
  159. Calendar    Flag specifying which calendar to observe:
  160.  
  161. 0 = US (NASD) 30/360; default
  162.  
  163. 1 = Actual/actual
  164.  
  165. 2 = Actual/360
  166.  
  167. 3 = Actual/365
  168.  
  169. 4 = European 30/360
  170.  
  171.  
  172.  
  173. @ACCRINTXL returns the accrued interest for a security that pays periodic interest.
  174.  
  175. @ACCRINTXL uses the formula
  176.  
  177.  
  178.  
  179. where
  180.  
  181.  
  182.  
  183. Ia    accrued interest
  184.  
  185. par    par value
  186.  
  187. r    coupon rate
  188.  
  189. f    frequency of coupon payments
  190.  
  191. NC    number of quasi-coupon periods that fit in odd period, rounded to next integer
  192.  
  193. Nli    normal in days of the ith quasi-coupon period within the odd period
  194.  
  195. Ai    number of accrued days for ith quasi-coupon period within the odd period
  196.  
  197.  
  198.  
  199. When you use any optional argument, you must also use the ones before it.
  200.  
  201. Example
  202.  
  203. This formula returns the accrued interest, as of May 15, 1996, on an 8.875% bond with a $10,000 par value, issued November 22, 1995 and paying its first interest on August 15, 1996. The US 30/360-day year is used and coupon payments are twice a year.
  204.  
  205. @ACCRINTXL(@DATE(92,11,22),@DATE(93,8,15),@DATE(93,5,15), 0.08875, 100000, 2, 0) = $4264.93
  206.  
  207. @ACCRINTM - Accrued Interest (CD)
  208.  
  209. Syntax
  210.  
  211. @ACCRINTM(Issue, Settle, Coupon, <Par>, <Calendar>)
  212.  
  213.  
  214.  
  215. Issue    Number representing the issue date; must be < Settle.
  216.  
  217. Settle    Number representing the settlement date.
  218.  
  219. Coupon    Coupon rate; 0 ú Coupon ú 1.
  220.  
  221. Par    Par value (the default is 1000).
  222.  
  223. Calendar    Flag specifying which calendar to observe:
  224.  
  225. 0 = US (NASD) 30/360; default
  226.  
  227. 1 = Actual/actual
  228.  
  229. 2 = Actual/360
  230.  
  231. 3 = Actual/365
  232.  
  233. 4 = European 30/360
  234.  
  235.  
  236.  
  237. @ACCRINTM calculates the amount of interest accrued per par value between the issue date of the coupon and the settle date.
  238.  
  239. Example
  240.  
  241. This formula returns the accrued interest on a certificate of deposit (CD) with $1,000,000 face value settling March 11, 1990, dated December 15, 1989, and paying a coupon of 10% on an actual/360 basis:
  242.  
  243. @ACCRINTM(@DATE(89,12,15),@DATE(90,3,11),0.10,1000000,2) = $23,888.89
  244.  
  245. @ACCRUED - Accrued Interest (Security)
  246.  
  247. Syntax
  248.  
  249. @ACCRUED(Settle, Issue, FirstInt, Coupon, <Par>, <Freq>, <Calendar>)
  250.  
  251.  
  252.  
  253. Settle    Number representing the settlement date; must be greater than Issue.
  254.  
  255. Issue    Number representing the issue date.
  256.  
  257. FirstInt    Number representing the first interest date; must be greater than Issue.
  258.  
  259. Coupon    Coupon rate; can be any positive value, including 0.
  260.  
  261. Par    Par value, or the principal to be paid at maturity (optional); the default is 100.
  262.  
  263. Freq    Frequency of coupon payments (optional) in number of payments per year; can be 1, 2, 4, or 12; the default is 2.
  264.  
  265. Calendar    Flag specifying which calendar to observe:
  266.  
  267. 0 = US (NASD) 30/360; default
  268.  
  269. 1 = Actual/actual
  270.  
  271. 2 = Actual/360
  272.  
  273. 3 = Actual/365
  274.  
  275. 4 = European 30/360
  276.  
  277.  
  278.  
  279. @ACCRUED calculates the accrued interest for a security with periodic interest payments. Short, standard, and long coupon periods can also be used.
  280.  
  281. @ACCRUED uses the formula
  282.  
  283.  
  284.  
  285. where
  286.  
  287.  
  288.  
  289. Ia    accrued interest
  290.  
  291. par    par value
  292.  
  293. r    coupon rate
  294.  
  295. f    frequency of coupon payments
  296.  
  297. NC    number of quasi-coupon periods that fit in odd period, rounded to next integer
  298.  
  299. Nli    normal in days of the ith quasi-coupon period within the odd period
  300.  
  301. Ai    number of accrued days for ith quasi-coupon period within the odd period
  302.  
  303.  
  304.  
  305. When you use any optional argument, you must also use the ones before it.
  306.  
  307. Example
  308.  
  309. This formula returns the accrued interest, as of May 15, 1996, on an 8.875% bond with a $10,000 par value, issued November 22, 1995 and paying its first interest on August 15, 1996. The US 30/360-day year is used and coupon payments are twice a year.
  310.  
  311. @ACCRUED(@DATE(93,5,15), @DATE(92,11,22), @DATE(93,8,15), 0.08875, 10000, 2, 0) = 426.4931
  312.  
  313. @ACDAYS - Add Calendar Days
  314.  
  315. Syntax
  316.  
  317. @ACDAYS(Date, Days, <Calendar>, <EndMnth>)
  318.  
  319.  
  320.  
  321. Date    Number representing the date to add days to. See "Using dates and times in Quattro Pro."
  322.  
  323. Days    Integer representing number of days to add; can be negative.
  324.  
  325. Calendar    Flag specifying which calendar to observe:
  326.  
  327. 0 = US (NASD) 30/360; default
  328.  
  329. 1 = Actual/actual
  330.  
  331. 2 = Actual/360
  332.  
  333. 3 = Actual/365
  334.  
  335. 4 = European 30/360
  336.  
  337. EndMnth    1 to indicate adherence to ends of months; 0 to indicate that ends of months are ignored (the default is 1).
  338.  
  339.  
  340.  
  341. @ACDAYS adds Days days to Date using an actual or 30/360 calendar and returns a serial date number. If Days is negative, @ACDAYS subtracts the absolute value of Days from Date.
  342.  
  343. With the 30/360 calendar, if the ending month is February and the remaining days push the result to the 29th or 30th, the result is forced to the true end of the month (28th or 29th, depending on whether Date is in a leap year).
  344.  
  345. More than one result is possible when using the 30/360 calendar. For example, adding 90 days to April 30 can yield either July 30 or July 31.
  346.  
  347. Examples
  348.  
  349. @ACDAYS(@DATE(93,1,1),120) = 34090 (May 1, 1993)
  350.  
  351. @ACDAYS(@DATE(93,11,15),-270) = 34015 (February 15, 1993)
  352.  
  353. @ACOS - Arc Cosine
  354.  
  355. Syntax
  356.  
  357. @ACOS(X)
  358.  
  359.  
  360.  
  361. X    A numeric value between -1 and 1.
  362.  
  363.  
  364.  
  365. @ACOS returns the arc cosine of X. The result is the angle (in radians) whose cosine is X. To convert radians to degrees, use @DEGREES.
  366.  
  367. Examples
  368.  
  369. @ACOS(1) = 0
  370.  
  371. @ACOS(0.5) = 1.047198
  372.  
  373. @DEGREES(@ACOS(0.5)) = 60
  374.  
  375. @ACOS(@ABS(B10)) = the arc cosine of the absolute value of B10
  376.  
  377. @ACOS(2) = ERR (means that X is greater than 1)
  378.  
  379. @ACOSH - Arc Hyperbolic Cosine
  380.  
  381. Syntax
  382.  
  383. @ACOSH(X)
  384.  
  385.  
  386.  
  387. X    The hyperbolic cosine of an angle. X must be greater than or equal to 1 but less than approximately 1.34078E+154.
  388.  
  389.  
  390.  
  391. @ACOSH returns the arc, or inverse, hyperbolic cosine of a number. The arc hyperbolic cosine is the value whose hyperbolic cosine is X, so @ACOSH(@COSH(X)) = X.
  392.  
  393. @ACOSH returns the result in radians; to convert to degrees, use @DEGREES.
  394.  
  395. Examples
  396.  
  397. @ACOSH(1) = 0
  398.  
  399. @ACOSH(2) = 1.316958
  400.  
  401. @ROUND(@DEGREES(@ACOSH(1.600287)), 2) = 60 degrees. Or: "The angle whose hyperbolic cosine is 1.600287, rounded to 2 decimal places."
  402.  
  403. @ACOSH(@ABS(D33)) = the arc hyperbolic cosine of the absolute value of D33
  404.  
  405. @ACOSH(0.5) = ERR (means that X is less than 1)
  406.  
  407. @ACOT - Arc Cotangent
  408.  
  409. Syntax
  410.  
  411. @ACOT(X)
  412.  
  413.  
  414.  
  415. X    The cotangent of an angle. X can be any value from approximately -1.789E+308 through 1.789E+308.
  416.  
  417.  
  418.  
  419. @ACOT calculates the arc, or inverse, cotangent using the cotangent X of an angle. The result of @ACOT is an angle, in radians, from 0 through p. This represents an angle between 0 and 180 degrees. To convert radians to degrees, use @DEGREES.
  420.  
  421. Examples
  422.  
  423. @ACOT(0.5) = 1.107149
  424.  
  425. @ACOT(1) = 0.785398
  426.  
  427. @ROUND(@DEGREES(@ACOT(1)),2) = 45
  428.  
  429. @ACOTH - Arc Hyperbolic Cotangent
  430.  
  431. Syntax
  432.  
  433. @ACOTH(X)
  434.  
  435.  
  436.  
  437. X    The hyperbolic cotangent of an angle. X can be any value between approximately -1.79E+308 and less than -1 and between greater than 1 and approximately 1.79E+308.
  438.  
  439.  
  440.  
  441. @ACOTH calculates the arc, or inverse, hyperbolic cotangent using the hyperbolic cotangent X of an angle. The result is in radians; to convert to degrees, use @DEGREES.
  442.  
  443. Examples
  444.  
  445. @ACOTH(4) = 0.255413
  446.  
  447. @ACOTH(@PI/4) = ERR, because p /4 is between -1 and 1
  448.  
  449. @ACOTH(@PI/3) = 1.884943
  450.  
  451. @ROUND(@DEGREES(@ACOTH(1.524869)), 2) = 45 degrees. Or: "The angle whose hyperbolic cotangent is 1.524869, rounded to 2 decimal places."
  452.  
  453. @ACSC - Arc Cosecant
  454.  
  455. Syntax
  456.  
  457. @ACSC(X)
  458.  
  459.  
  460.  
  461. X    The cosecant of an angle. X can be any value between approximately -1.79E+308 and -1 and between 1 and approximately 1.79E+308.
  462.  
  463.  
  464.  
  465. @ACSC calculates the arc, or inverse, cosecant using the cosecant X of an angle. The result of @ACSC is an angle, in radians, from - p/2 through p/2 (from -90 through 90 degrees). To convert radians to degrees, use @DEGREES.
  466.  
  467. Examples
  468.  
  469. @ACSC(1) = 1.570796
  470.  
  471. @ACSC(-2) = - 0.5236
  472.  
  473. @ROUND(@DEGREES(@ACSC(-2)),2) = - 30 degrees
  474.  
  475. @ACSC(0.25) = ERR, because X is between -1 and 1
  476.  
  477. @ACSCH - Arc Hyperbolic Cosecant
  478.  
  479. Syntax
  480.  
  481. @ACSCH(X)
  482.  
  483.  
  484.  
  485. X    The hyperbolic cosecant of an angle. X can be any value between approximately -1.34078E+154 and 1.34078E+154, but not 0.
  486.  
  487.  
  488.  
  489. @ACSCH calculates the arc, or inverse, hyperbolic cosecant using the hyperbolic cosecant X of an angle. The result is in radians; to convert to degrees, use @DEGREES.
  490.  
  491. Examples
  492.  
  493. @ACSCH(@RADIANS(30)) = 1.402581
  494.  
  495. @ACSCH(@RADIANS(75)) = 0.704265
  496.  
  497. @ROUND(@DEGREES(@ACSCH(1.825306)), 2) = 30 degrees. Or: "The angle whose hyperbolic cosecant is 1.825306, rounded to 2 decimal places."
  498.  
  499. @ADDB - Add Binary Numbers
  500.  
  501. Syntax
  502.  
  503. @ADDB(Binary1, <Binary2>, <BitIn>, <Bits>)
  504.  
  505.  
  506.  
  507. Binary1    First binary number.
  508.  
  509. Binary2    Second binary number.
  510.  
  511. BitIn    Input carry bit; can be either 0 (the default) or 1.
  512.  
  513. 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.
  514.  
  515.  
  516.  
  517. @ADDB returns the sum of two binary numbers. If Binary2 is omitted, @ADDB counts the bits in Binary1 that are set to 1; this bit counting operation is called addition reduction.
  518.  
  519. Use two's complement notation (see Quattro Pro glossary) to represent negative numbers. If BitIn is 1, @ADDB adds one extra bit to the result.
  520.  
  521. Example
  522.  
  523. @ADDB(100,100) = 1000
  524.  
  525. @ADDB(100,100,1,4) = 1001
  526.  
  527. @ADDB(101) = 2
  528.  
  529. @ADDB(1100,1,1,5) = 01110
  530.  
  531. @ADDBO - Overflow of Binary Addition
  532.  
  533. Syntax
  534.  
  535. @ADDBO(Binary1, Binary2, <BitIn>, <Bits>)
  536.  
  537.  
  538.  
  539. Binary1    First binary number.
  540.  
  541. Binary2    Second binary number.
  542.  
  543. BitIn    Input carry bit; can be either 0 (the default) or 1.
  544.  
  545. Bits    Number of binary bits used for input; if omitted, Bits = number of bits in Binary1 or Binary2, whichever is greater; must be in the range 0 <n ú 64.
  546.  
  547.  
  548.  
  549. @ADDBO returns the overflow bit (either 0 or 1) of the sum of two binary numbers. An overflow occurs when a bit is carried out of the word size specified by Bits. For example, if Binary1 = 10 and Binary2 = 10, the sum of the two numbers is 00, with 1 carry bit in the third place not shown.
  550.  
  551. Use two's complement notation (see Quattro Pro glossary) to represent negative numbers. If BitIn is 1, @ADDBO adds one extra bit to the sum of the two numbers before returning the overflow.
  552.  
  553. Example
  554.  
  555. @ADDBO(1000,111) = 0
  556.  
  557. @ADDBO(1000,111,1) = 1
  558.  
  559. @ADDBO(1100,100,1,4) = 1
  560.  
  561. @ADDH - Add Hexadecimal Numbers
  562.  
  563. Syntax
  564.  
  565. @ADDH(Hex1, <Hex2>, <BitIn>, <Bits>)
  566.  
  567.  
  568.  
  569. Hex1    First hexadecimal number.
  570.  
  571. Hex2    Second hexadecimal number.
  572.  
  573. BitIn    Input carry bit; can be either 0 (the default) or 1.
  574.  
  575. Bits    Number of binary bits used for both input and output; if omitted, Bits = number of bits in Hex1 or Hex2, whichever is greater; must be in the range 0 <n ú 64.
  576.  
  577.  
  578.  
  579. @ADDH returns the sum of two hexadecimal numbers. If Hex2 is omitted, @ADDH counts the bits in Hex1 that are set to 1; this bit counting operation is called addition reduction.
  580.  
  581. Use two's complement notation (see Quattro Pro glossary) to represent negative numbers. If BitIn is 1, @ADDH adds one extra bit to the result.
  582.  
  583. Example
  584.  
  585. @ADDH("E00","100") = F00
  586.  
  587. @ADDH("100","100",1,16) = 0201
  588.  
  589. @ADDH("9") = 2
  590.  
  591. @ADDH("C","1",1,8) = 0E
  592.  
  593. @ADDHO - Overflow of Hexadecimal Addition
  594.  
  595. Syntax
  596.  
  597. @ADDHO(Hex1, Hex2, <BitIn>, <Bits>)
  598.  
  599.  
  600.  
  601. Hex1    First hexadecimal number.
  602.  
  603. Hex2    Second hexadecimal number.
  604.  
  605. BitIn    Input carry bit; can be either 0 (the default) or 1.
  606.  
  607. Bits    Number of binary bits used for both input and output; if omitted, Bits = number of bits in Hex1 or Hex2, whichever is greater; must be in the range 0 <n ú 64.
  608.  
  609.  
  610.  
  611. @ADDHO returns the overflow bit (either 0 or 1) of the sum of two hexadecimal numbers. An overflow occurs when a bit is carried out of the word size specified by Bits. For example, if the binary equivalents for Hex1 and Hex2 are 10 and 10, the sum of the two numbers is 00 with 1 carry bit in the third place not shown.
  612.  
  613. Use two's complement notation (see Quattro Pro glossary) to represent negative numbers. If BitIn is 1, @ADDHO adds one extra bit to the sum of the two numbers before returning the overflow.
  614.  
  615. Examples
  616.  
  617. @ADDHO("8","F") = 1
  618.  
  619. @ADDHO("8","F",1,5) = 0
  620.  
  621. @ADDHO("C","4",1,4) = 1
  622.  
  623. @ADDRESS - Cell Reference
  624.  
  625. Syntax
  626.  
  627. @ADDRESS(RowNum, ColNum, <RefType>, <Format>, <Page>)
  628.  
  629.  
  630.  
  631. RowNum    Row number of the cell for which you want the reference.
  632.  
  633. ColNum    Column number.
  634.  
  635. RefType    Type of cell reference to return (optional).
  636.  
  637. Format    Logical value indicating A1 or R1C1 reference style (optional):
  638.  
  639. TRUE = A1 (default, if omitted)
  640.  
  641. FALSE = R1C1
  642.  
  643. Page    Name of notebook sheet (optional).
  644.  
  645.  
  646.  
  647. @ADDRESS returns, as text, a cell reference for which you specify row and column numbers. Optionally, you can specify another sheet and choose reference type and style.
  648.  
  649.  
  650.  
  651. RefType    Format    Meaning
  652.  
  653. 1    $A:$A$1    All absolute
  654.  
  655. 2    $A:A$1    Absolute sheet and row, relative column
  656.  
  657. 3    $A:$A1    Absolute sheet and column, relative row
  658.  
  659. 4    $A:A1    Absolute sheet, relative column and row
  660.  
  661. 5    A:$A$1    Relative sheet, absolute column and row
  662.  
  663. 6    A:A$1    Relative sheet and column, absolute row
  664.  
  665. 7    A:$A1    Relative sheet and row, absolute column
  666.  
  667. 8    A:A1    All relative
  668.  
  669.  
  670.  
  671. You can use @ADDRESS with @INDEX, @VLOOKUP, or @HLOOKUP to create cell references from tables of values in the current file. Use @ADDRESS with @@ to return values in cell references.
  672.  
  673. Examples
  674.  
  675. @ADDRESS(5,4) = "$D$5" - absolute reference to Cell D5
  676.  
  677. @ADDRESS(5,4,3) = "$D5" - absolute reference to column D, relative reference to row 5
  678.  
  679. @ADDRESS(5,4,3,FALSE) = "R5C[4]" - relative row 5, absolute column 4, in R1C1 style
  680.  
  681. @ADDRESS(5,4,3,TRUE,"AREAS") = "$AREAS : $D5" - absolute sheet name, absolute column D, and relative row 5
  682.  
  683. If B7 contains 7, and C7 contains 6, @@(@ADDRESS(B7,C7)) returns the value in cell F7.
  684.  
  685. @AMAINT - Amortized Accumulated Interest
  686.  
  687. Syntax
  688.  
  689. @AMAINT(Principal, Int, Term, n, <Part>, <Residual>, <ResOff>, <Adv>, <Odd>, <Simp>)
  690.  
  691.  
  692.  
  693. Principal    Initial loan principal.
  694.  
  695. Int    Periodic interest rate.
  696.  
  697. Term    Term of the loan, expressed in number of total payments.
  698.  
  699. n    Number of payments made; must be an integer from 0 to Term.
  700.  
  701. Part    Part of (n+1)th period passed (must be from 0 to 1; the default is 0).
  702.  
  703. Residual    Remaining balance on loan at end of loan term (the default is 0).
  704.  
  705. ResOff    Number of periods after last periodic payment that residual is to be paid; can have fractional component (the default is 0).
  706.  
  707. Adv    Number of advance payments made at loan inception (the default is 0); n - Adv must be an integer.
  708.  
  709. Odd    Number of periods between loan inception and date of first payment (not including advance payments); can have fractional component (the default is 1).
  710.  
  711. Simp    0 to specify compounded interest or 1 to specify simple interest (the default is 0).
  712.  
  713.  
  714.  
  715. @AMAINT calculates the accumulated interest paid on a loan after n payments. The accumulated interest is the sum of the interest portions of the first n payments plus the interest of an optional partial payment (specified by Part).
  716.  
  717. Term and n should include advance payments made at the beginning of the loan. Part handles payoff situations where the payoff date does not coincide with a periodic payment date. For example, if 20 out of 60 monthly payments of a loan have been made and 10 days have passed since the 20th payment date, Part = 10/31, assuming there are 31 days between the 20th and 21st monthly payments.
  718.  
  719. If Simp = 0, @AMAINT uses this formula:
  720.  
  721.  
  722.  
  723. If Simp = 1, @AMAINT uses this formula:
  724.  
  725.  
  726.  
  727. where
  728.  
  729.  
  730.  
  731. I    interest
  732.  
  733. Pa    payment
  734.  
  735. Pr    principal
  736.  
  737. B    balance
  738.  
  739. P    part
  740.  
  741.  
  742.  
  743. where Payment is the periodic payment and Balance is the remaining balance on the loan after n payments. Balance, like Principal, is the present value of an annuity paying Payment.
  744.  
  745. Examples
  746.  
  747. A loan of $10,000 was made on September 11, 1992 to be repaid in 48 monthly installments. The annual interest rate is 8.4% (8.4%/12 = 0.7% monthly rate). The first payment was paid in advance. This formula calculates the amount of paid interest after 15 regular payments:
  748.  
  749. @AMAINT(10000,0.007,48,15,0,0,0,1) = $840.74
  750.  
  751. For the same loan, this formula calculates how much interest accumulated on the loan as of March 3, 1993, assuming the borrower made regular payments. The previous payment (the 18th) fell on February 11, 1993; there are 21 days between the previous payment and March 3. Interest accrues as simple interest over fractional periods.
  752.  
  753. @AMAINT(10000,0.007,48,18,21/29,0,0,1,1,1) = $1,020.76
  754.  
  755. @AMINT - Amortized Interest Rate
  756.  
  757. Syntax
  758.  
  759. @AMINT(Principal, Term, Payment, <Residual>, <ResOff>, <Adv>, <Odd>, <Simp>, <Prec>)
  760.  
  761.  
  762.  
  763. Principal    Initial loan principal.
  764.  
  765. Term    Term of loan, expressed in number of total payments.
  766.  
  767. Payment    Periodic payment (for example, if Term is expressed in months, Payment must be a monthly payment).
  768.  
  769. Residual    Remaining balance on loan at end of loan term (the default is 0).
  770.  
  771. ResOff    Number of periods after last periodic payment that Residual is to be paid; can have fractional component (the default is 0).
  772.  
  773. Adv    Number of advance payments made at loan inception (the default is 0).
  774.  
  775. Odd    Number of periods between loan inception and date of first payment (not including advance payments); can have fractional component (the default is 1).
  776.  
  777. Simp    0 to specify compounded interest or 1 to specify simple interest (the default is 0).
  778.  
  779. Prec    Required precision of result (the default is 0.000001); must be │ 0.
  780.  
  781.  
  782.  
  783. @AMINT calculates the interest rate for one payment of an amortized loan. For example, if the arguments passed correspond to a monthly loan, the interest rate returned represents a monthly rate. Use Prec to specify how close @AMINT must be to the actual interest rate.
  784.  
  785. Example
  786.  
  787. A loan for $50,000 was made on March 15, 1993. Repayment terms stipulate ten annual payments of $7,500, each to be made on July 31, beginning 1993 and ending 2002, along with a final payment of $2,500 on December 31, 2003. Assuming interest is compounded during fractional periods, this formula calculates the interest rate at which the financing is performed:
  788.  
  789. @AMINT(50000,10,7500,2500,1.4180,0,0.3781) = 0.098913
  790.  
  791. A normal period is one year long, but the first period is 138 days long. Since there are 365 days between March 15, 1993 and March 15, 1994, the first period is 138/365 the length of a normal period (Odd = 0.3781). There is also a delay between the last periodic payment and the residual payment of $2,500. The length of the delay is one period (July 31, 2002 to July 31, 2003) plus 153 days (July 31, 2003 to December 31, 2003), so ResOff = 1.4180 (which equals 1+(153/366)).
  792.  
  793. @AMNTHS - Add Months
  794.  
  795. Syntax
  796.  
  797. @AMNTHS(Date, Months, <EndMnth>)
  798.  
  799.  
  800.  
  801. Date    Number representing the date to add number of months to. See "Using dates and times in Quattro Pro."
  802.  
  803. Months    Integer representing number of months to add; can be negative.
  804.  
  805. EndMnth    1 to indicate adherence to ends of months; 0 to indicate that ends of months are ignored (the default is 1).
  806.  
  807.  
  808.  
  809. @AMNTHS adds the number of months specified by Months to Date and returns a serial date number. If Months is negative, @AMNTHS subtracts the absolute value of Months from Date.
  810.  
  811. Adding one month usually means going from a day in one month to the same day in the next month. However, adding one month to March 31 cannot result in April 31, since April 31 does not exist. In this case, the last day of the month, April 30, is returned. If Date falls on the 31st of a month, the result also falls on the last day of a month.
  812.  
  813. If Date falls on the last day of a month with less than 31 days, you can use EndMnth to specify one of two different results. To move ahead to the same day of the specified month, specify EndMnth as 0. To move ahead to the last day of the specified month, omit EndMnth or specify it as 1.
  814.  
  815. Examples
  816.  
  817. @AMNTHS(@DATE(93,4,30),3) = 34181 (July 31, 1993), which is the last day of the month three months from April 30, 1993.
  818.  
  819. Consider a loan with 120 payments that pays on the 30th of each month starting on June 30, 1993. In February, it pays on the last day of the month. This formula calculates the date of the 43rd payment:
  820.  
  821. @AMNTHS(@DATE(93,6,30),42,0) = 35429 (December 30, 1996)
  822.  
  823. @AMPMT - Amortized Payment
  824.  
  825. Syntax
  826.  
  827. @AMPMT(Principal, Int, Term, <Residual>, <ResOff>, <Adv>, <Odd>, <Simp>)
  828.  
  829.  
  830.  
  831. Principal    Initial loan principal.
  832.  
  833. Int    Periodic interest rate (for example, if Term is expressed in months, Int must be a monthly rate).
  834.  
  835. Term    Term of loan, expressed in number of total payments.
  836.  
  837. Residual    Remaining balance on loan at end of loan term (the default is 0).
  838.  
  839. ResOff    Number of periods after last periodic payment that residual is to be paid; can have fractional component (the default is 0).
  840.  
  841. Adv    Number of advance payments made at loan inception (the default is 0).
  842.  
  843. Odd    Number of periods between loan inception and date of first payment (not including advance payments); can have fractional component (the default is 1).
  844.  
  845. Simp    0 to specify compounded interest or 1 to specify simple interest (the default is 0).
  846.  
  847.  
  848.  
  849. @AMPMT calculates the payment (monthly, annual, and so on) for an amortized loan. 
  850.  
  851. Examples
  852.  
  853. A loan for $35,000 has 48 monthly payments and a residual payment of $7,500 that is due three months after the last monthly payment. This formula calculates the monthly payment if the annual interest rate is 9% (9%/12 = 0.75% monthly rate):
  854.  
  855. @AMPMT(35000,0.0075,48,7500,3) = $743.48
  856.  
  857. An annuity with an investment of $250,000 makes quarterly payments starting five years from the date of investment for a period of 20 years. It also pays a lump sum of $50,000 three and a half years after the last quarterly payment. If the annualized yield from the investment is 8.4% (8.4%/4 = 2.1% quarterly rate), this formula calculates the quarterly payment:
  858.  
  859. @AMPMT(250000,0.021,80,50000,14,0,20) = $9,431.83
  860.  
  861. The term of the annuity is 80 quarters. A value of 14 for ResOff specifies, in quarters, the three-and-a-half year delay between the last quarterly payment and the residual payment. A value of 20 for Odd specifies the five year delay between investment and first payment, in quarters.
  862.  
  863. @AMPMTI - Amortized Interest Portion of Payment
  864.  
  865. Syntax
  866.  
  867. @AMPMTI(Principal, Int, Term, n, <Residual>, <ResOff>, <Adv>, <Odd>, <Simp>)
  868.  
  869.  
  870.  
  871. Principal    Initial loan principal.
  872.  
  873. Int    Periodic interest rate (for example, if Term is expressed in months, then Int must be a monthly rate).
  874.  
  875. Term    Term of loan, expressed in number of total payments.
  876.  
  877. n    Number of payments made; must be an integer from 0 to Term.
  878.  
  879. Residual    Remaining balance on loan at end of loan term (the default is 0).
  880.  
  881. ResOff    Number of periods after last periodic payment that residual is to be paid; can have fractional component (the default is 0).
  882.  
  883. Adv    Number of advance payments made at loan inception (the default is 0).
  884.  
  885. Odd    Number of periods between loan inception and date of first payment (not including advance payments); can have fractional component (the default is 1).
  886.  
  887. Simp    0 to specify compounded interest or 1 to specify simple interest (the default is 0).
  888.  
  889.  
  890.  
  891. @AMPMTI calculates the interest portion of the nth payment of an amortized loan. Term and n should include any advance payments made at the beginning of the loan. 
  892.  
  893. If Simp = 0, @AMPMTI uses this formula:
  894.  
  895.  
  896.  
  897. If Simp = 1, @AMPMTI uses this formula:
  898.  
  899.  
  900.  
  901.  
  902.  
  903. I    interest
  904.  
  905. B    balance
  906.  
  907.  
  908.  
  909. Balance n-1, like Principal, is the present value of an annuity. Both correspond to annuities with the same payment size but differing in number of payments. If Principal corresponds to an annuity with Term payments, Balance n-1 corresponds to annuity with Term n + 1 payments. tn equals 1 except when n equals Adv + 1, in which case tn equals Odd.
  910.  
  911. Example
  912.  
  913. This formula calculates the portion of the 15th payment (the 15th after any advanced payments) of a 120 payment loan that constitutes interest, if the original principal of $100,000 is financed at a periodic rate of 4.5% and the first two payments are made in advance:
  914.  
  915. @AMPMTI(100000,0.045,120,17,0,0,2) = $4,106.92.
  916.  
  917. The value of 17 passed for n specifies the 15th payment after the two advance payments.
  918.  
  919. @AMPRN - Amortized Initial Principal
  920.  
  921. Syntax
  922.  
  923. @AMPRN(Int, Term, Payment, <Residual>, <ResOff>, <Adv>, <Odd>, <Simp>)
  924.  
  925.  
  926.  
  927. Int    Periodic interest rate (for example, if Term is expressed in half-years, Int must be a semiannual rate).
  928.  
  929. Term    Term of loan, expressed in number of total payments.
  930.  
  931. Payment    Periodic payment.
  932.  
  933. Residual    Remaining balance on loan at end of loan term (the default is 0).
  934.  
  935. ResOff    Number of periods after last periodic payment that residual is to be paid; can have fractional component (the default is 0).
  936.  
  937. Adv    Number of advance payments made at loan inception (the default is 0).
  938.  
  939. Odd    Number of periods between loan inception and date of first payment (not including advance payments); can have fractional component (the default is 1).
  940.  
  941. Simp    0 to specify compounded interest or 1 to specify simple interest (the default is 0).
  942.  
  943.  
  944.  
  945. @AMPRN calculates the initial principal of an amortized loan. 
  946.  
  947. Examples
  948.  
  949. A loan has an annualized monthly compounded interest rate of 10.8% (10.8%/12 = 0.9% monthly rate) over a period of 48 months, and the monthly payment is $525. Each payment is due at the beginning of the month, including the first payment which coincides with the loan's start date. This formula calculates the amount financed:
  950.  
  951. @AMPRN(0.009,48,525,0,0,1) = $20,573.04
  952.  
  953. A savings plan requires a monthly contribution of $1,000 for a period of 25 years. If the plan pays an annual interest rate of 6.6% (6.6%/12 = 0.55% monthly rate), this formula calculates what initial deposit (not payment), if any, is needed in order to accumulate $1,000,000 two and a half years after the last monthly payment:
  954.  
  955. @AMPRN(0.0055,300,-1000,1000000,30) = $16,907.93.
  956.  
  957. If the annuity is viewed as a loan and the investor as the lender, the original investment can be treated as the loan principal, the monthly payments as payments from lender to borrower, and the $1,000,000 future value as a residual payment from the borrower to the lender. The interest rate is 0.55%. The negative payment means payment from lender to borrower. A value of 30 for ResOff specifies the thirty month delay between the last monthly contribution and the date on which to measure the end balance.
  958.  
  959. @AMRES - Amortized Residual Payment
  960.  
  961. Syntax
  962.  
  963. @AMRES(Principal, Int, Term, Payment, <ResOff>, <Adv>, <Odd>, <Simp>)
  964.  
  965.  
  966.  
  967. Principal    Initial loan principal.
  968.  
  969. Int    Periodic interest rate (for example, if Term is expressed in months, then Int must be a monthly rate).
  970.  
  971. Term    Term of loan, expressed in number of total payments.
  972.  
  973. Payment    Periodic payment.
  974.  
  975. ResOff    Number of periods after last periodic payment that Residual is to be paid; can have fractional component (the default is 0).
  976.  
  977. Adv    Number of advance payments made at loan inception (the default is 0).
  978.  
  979. Odd    Number of periods between loan inception and date of first payment (not including advance payments); can have fractional component (the default is 1).
  980.  
  981. Simp    0 to specify compounded interest or 1 to specify simple interest (the default is 0).
  982.  
  983.  
  984.  
  985. @AMRES calculates the residual (or balloon) payment of an amortized loan or the future value of an annuity. 
  986.  
  987. Example
  988.  
  989. A $10,000,000 loan is paid back in 20 payments of $1,000,000 and a final payment. The first payment is made at the start of the loan. The remaining 19 payments are made annually, starting 9 months after the first payment. The final payment is made 20 months after the last annual payment. If the loan has an annual interest rate of 9.68%, this formula calculates the final payment (assume compounding of interest over fractional periods):
  990.  
  991. @AMRES(10000000,0.0968,20,1000000,20/12,1,0.75) = $1,681,942.54.
  992.  
  993. ResOff is set to 20/12 to specify the 20 month delay between the last annual payment and the residual payment. Adv is set to 1 to specify the advance payment. Odd is set to 9/12 (0.75) to specify the nine month period between the start of the loan and the second payment.
  994.  
  995. @AMRPRN - Amortized Remaining Principal
  996.  
  997. Syntax
  998.  
  999. @AMRPRN(Principal, Int, Term, n, <Part>, <Residual>, <ResOff>, <Adv>, <Odd>, <Simp>)
  1000.  
  1001.  
  1002.  
  1003. Principal    Initial loan principal.
  1004.  
  1005. Int    Periodic interest rate (for example, if Term is expressed in years, then Int must be a yearly rate).
  1006.  
  1007. Term    Term of loan, expressed in number of total payments.
  1008.  
  1009. n    Number of payments made; must be an integer from 0 to Term.
  1010.  
  1011. Part    Part of (n+1)th period passed; 0 ú Part ú 1 (the default is 0).
  1012.  
  1013. Residual    Remaining balance on loan at end of loan term (the default is 0).
  1014.  
  1015. ResOff    Number of periods after last periodic payment that residual is to be paid; can have fractional component (the default is 0).
  1016.  
  1017. Adv    Number of advance payments made at loan inception (the default is 0).
  1018.  
  1019. Odd    Number of periods between loan inception and date of first payment (not including advance payments); can have fractional component (the default is 1).
  1020.  
  1021. Simp    0 to specify compounded interest or 1 to specify simple interest (the default is 0).
  1022.  
  1023.  
  1024.  
  1025. @AMRPRN computes the balance remaining after n payments, accounting for possible interest accrual over part of the following payment period.
  1026.  
  1027. Term and n should include advance payments made at the beginning of the loan. Part handles payoff situations where the payoff date (date on which the remaining balance on a loan is fully paid) does not coincide with a periodic payment date. For example, if 15 out of 36 monthly payments of a loan have been made and 17 days have passed since the 15th payment date, Part = 17/30, assuming there are 30 days between the 15th and 16th monthly payments.
  1028.  
  1029. If Simp = 0, @AMRPRN uses this formula:
  1030.  
  1031.  
  1032.  
  1033. If Simp = 1, @AMRPRN uses this formula:
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039. B    Balance
  1040.  
  1041. P    Part
  1042.  
  1043.  
  1044.  
  1045. Examples
  1046.  
  1047. A loan of $100,000 has an annual interest rate of 9.6% (9.6%/12 = 0.8% monthly rate). Repayment consists of monthly payments over ten years. This formula calculates the balance remaining after the 57th monthly payment:
  1048.  
  1049. @AMRPRN(100000,0.008,120,57) = $64,108.38
  1050.  
  1051. A loan of $2,000,000 was made on March 16, 1993, to be paid back in 40 quarterly payments and a final payment of $100,000. The annual interest rate is 9.96% (9.96%/4 = 2.49% quarterly rate). The first four payments are due at the start of the loan. The fifth payment is due July 1, 1993. Thereafter, a payment is due every three months. The final residual payment of $100,000 is due June 15, 2002. This formula calculates the remaining balance due on the loan as of September 23, 1996, assuming timely payments and simple interest accrual over fractional periods:
  1052.  
  1053. @AMRPRN(2000000,0.0249,40,17,84/92,100000,75/91,4,1+16/90,1) = $1,322,015.26.
  1054.  
  1055. September 23, 1994 falls in the middle of the payment period following the 17th quarterly payment. It falls 84 days into the quarter, which is 92 days long, so Part = 84/92. The residual is paid 75 days after the 40th quarterly payment. The corresponding quarter (April 1, 2002 to July 1, 2002) contains 91 days, so ResOff = 75/91. The first quarterly payment after the advance payments is paid one period and 16 days after loan inception. The 16 days correspond to the quarter containing the loan inception date, March 16, 1993. That quarter contains 90 days, so Odd = 1+(16/90).
  1056.  
  1057. @AMTERM - Amortized Term
  1058.  
  1059. Syntax
  1060.  
  1061. @AMTERM(Principal, Int, Payment, <Residual>, <ResOff>, <Adv> <Odd>, <Simp>)
  1062.  
  1063.  
  1064.  
  1065. Principal    Initial loan principal.
  1066.  
  1067. Int    Periodic interest rate (for example, if term is expressed in quarters, Int must be a quarterly rate).
  1068.  
  1069. Payment    Periodic payment.
  1070.  
  1071. Residual    Remaining balance on loan at end of loan term (the default is 0).
  1072.  
  1073. ResOff    Number of periods after last periodic payment that residual is to be paid; can have fractional component (the default is 0).
  1074.  
  1075. Adv    Number of advance payments made at loan inception (the default is 0).
  1076.  
  1077. Odd    Number of periods between loan inception and date of first payment (not including advance payments); can have fractional component (the default is 1).
  1078.  
  1079. Simp    0 to specify compounded interest or 1 to specify simple interest (the default is 0).
  1080.  
  1081.  
  1082.  
  1083. @AMTERM calculates the duration of an amortized loan, expressed in number of payments. 
  1084.  
  1085. Example
  1086.  
  1087. A loan for $50,000 was made on April 1, 1993. The loan is repaid monthly, starting on May 1, 1993, except for the first three payments, which are due at the start of the loan (April 1, 1993). If the monthly interest rate is 1.15%, this formula calculates the smallest number of payments that would allow repayment with a maximum allowable monthly payment of $600:
  1088.  
  1089. @AMTERM(50000,0.0115,600,0,0,3) = 228.18
  1090.  
  1091. The smallest number of payments to support such a loan is 229, which results in a monthly payment of $599.56. Using 228 payments results in a monthly payment of $600.10.
  1092.  
  1093. @AND - Logical And
  1094.  
  1095. Syntax
  1096.  
  1097. @AND(List)
  1098.  
  1099.  
  1100.  
  1101. List    True-or-false conditions to test.
  1102.  
  1103.  
  1104.  
  1105. @AND returns 1 (true) if all arguments are true, 0 (false) if even one argument is false.
  1106.  
  1107. Arguments in List must be logical values or references.
  1108.  
  1109. @AND ignores text, numbers, or empty cells.
  1110.  
  1111. Examples
  1112.  
  1113. Given the following data:
  1114.  
  1115.  
  1116.  
  1117.     A    B    C
  1118.  
  1119. 1    $2    $101    $12
  1120.  
  1121. 2    $50    $115    $22
  1122.  
  1123. 3    $127    $130    $45
  1124.  
  1125.  
  1126.  
  1127. @AND(A1>10,A2>10,A3>10) = 0 (false)
  1128.  
  1129. @AND(B1>10,B2>10,B3>10) = 1 (true)
  1130.  
  1131. To find which values in column A are less than 100, enter in cell A4 the formula +A1..A3<100. Quattro Pro enters the formula as an array and returns the array {1|1|0} in cells A4..A6, showing the first two values in column A are less than 100. You can do the same in cell B4 for the amounts in column B, and C4 for the amounts in column C.
  1132.  
  1133. Suppose a $5 service charge is deducted if the daily account balance falls below the $100 minimum for three consecutive days. Use @AND to test the true-or-false conditions in A4..A6, B4..B6, and C4..C6, and @IF to subtract $5 or not, depending on the results.
  1134.  
  1135. For account A, @IF(@AND(A4..A6), "$5", "$0") = $0, no service charge
  1136.  
  1137. For account B, @IF(@AND(B4..B6), "$5", "$0") = $0, no service charge
  1138.  
  1139. For account C, @IF(@AND(C4..C6), "$5", "$0") = $5
  1140.  
  1141. @ANDB - Binary AND
  1142.  
  1143. Syntax
  1144.  
  1145. @ANDB(Binary1, <Binary2>, <Bits>)
  1146.  
  1147.  
  1148.  
  1149. Binary1    First binary number.
  1150.  
  1151. Binary2    Second binary number.
  1152.  
  1153. 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.
  1154.  
  1155.  
  1156.  
  1157. @ANDB performs a bit-by-bit logical AND of each bit in Binary1 and Binary2. Use @ANDB to set bits to 0; any bit that is 0 in either Binary1 or Binary2 causes the resulting output bit to be 0.
  1158.  
  1159. If only one number is specified, then @ANDB performs an all-ones test, or AND reduction, on Binary1; @ANDB returns 1 if all bits in Binary1 are set to 1; otherwise, it returns 0.
  1160.  
  1161. Examples
  1162.  
  1163. @ANDB(10,1) = 00
  1164.  
  1165. @ANDB(11,10) = 10
  1166.  
  1167. @ANDB(11) = 1
  1168.  
  1169. @ANDB(1100,111,5) = 00100
  1170.  
  1171. @ANDH - Hexadecimal AND
  1172.  
  1173. Syntax
  1174.  
  1175. @ANDH(Hex1, <Hex2>, <Bits>)
  1176.  
  1177.  
  1178.  
  1179. Hex1    First hexadecimal number.
  1180.  
  1181. Hex2    Second hexadecimal number.
  1182.  
  1183. 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.
  1184.  
  1185.  
  1186.  
  1187. @ANDH performs a bit-by-bit logical AND of each bit in Hex1 and Hex2. Use @ANDH to set bits to 0; any binary bit that is 0 in either Hex1 or Hex2 causes the resulting output bit to be 0.
  1188.  
  1189. If only one number is specified, then @ANDH performs an all-ones test, or AND reduction, on Hex1; @ANDH returns 1 if all bits in Hex1 are set to 1; otherwise, it returns 0.
  1190.  
  1191. Examples
  1192.  
  1193. @ANDH("A","F") = A
  1194.  
  1195. @ANDH("A") = 0
  1196.  
  1197. @ANDH("C","4",8) = 04
  1198.  
  1199. @ARRAY - Array Formula
  1200.  
  1201. Syntax
  1202.  
  1203. @ARRAY(Expression, <Columns>, <Rows>)
  1204.  
  1205.  
  1206.  
  1207. Expression    Formula or @function using array syntax; @functions can be nested, that is, you can have more than one @function in a single statement.
  1208.  
  1209. Columns    Number of columns in the output range, including the column of the current cell (the default Columns depends on dimensions of input array(s) in Expression).
  1210.  
  1211. Rows    Number of rows in the output range, including the row of the current cell (the default Rows depends on dimensions of input array(s) in Expression).
  1212.  
  1213.  
  1214.  
  1215. @ARRAY returns the result of Expression, which can be either a formula with array operands or an @function with array arguments. An array is a selection of values treated as a single group. You do not need to type @ARRAY to create an array formula or @function; if an Expression requires array output, Quattro Pro converts it by surrounding it with the @ARRAY @function.
  1216.  
  1217. Columns and Rows are optional arguments; the size of an output array is dependent on the size of the input array(s) in Expression. Specify values for Columns and Rows only if you want to truncate or replicate portions of the output array.
  1218.  
  1219. By using arrays in formulas and @functions, you can perform an operation on multiple values or cells. You also save time by not having to repeat the same formula or @function in multiple cells. Arrays also save memory by reducing the number of formulas in a notebook.
  1220.  
  1221. If an array expression returns an array, the @ARRAY @function appears only in the current cell, which is also the upper left cell of the output array; the other cells in the array contain calculated values. Also, array formulas do not recognize 3-D syntax; if you specify a 3-D selection in Expression, @ARRAY recognizes only the cells on the first sheet of the series of consecutive sheets.
  1222.  
  1223. If you use many array formulas in a notebook, recalculation may become noticeably slower. Also, if you plan to share a notebook with other people, keep in mind that array formulas can make notebooks difficult to understand.
  1224.  
  1225. Examples
  1226.  
  1227. The next figure shows several examples using @ARRAY.
  1228.  
  1229.  
  1230.  
  1231.     A    B    C    D
  1232.  
  1233. 1    B1=@ARRAY({1;2;3}*12)    12    24    36
  1234.  
  1235. 2                
  1236.  
  1237. 3    B3=@ARRAY({1|2|3}*12)    12        
  1238.  
  1239. 4        24        
  1240.  
  1241. 5        36        
  1242.  
  1243. 6                
  1244.  
  1245. 7    B7=@ARRAY(D7..D9*2)    16        8
  1246.  
  1247. 8        20        10
  1248.  
  1249. 9        24        12
  1250.  
  1251. 10                
  1252.  
  1253. 11    B11=@ARRAY(D7..D9/{4;5;6})    2    1.6    1.333333
  1254.  
  1255. 12        2.5    2    1.666667
  1256.  
  1257. 13        3    2.4    2
  1258.  
  1259. 14                
  1260.  
  1261. 15        1.23    -6.43    9
  1262.  
  1263. 16    B16=@ARRAY(@ABS(B15..D15))    1.23    6.43    9
  1264.  
  1265. 17                
  1266.  
  1267. 18    B18=@ARRAY(@SQRT(C18..C20))    6.78233    46    
  1268.  
  1269. 19        7.348469    54    
  1270.  
  1271. 20        6    36    
  1272.  
  1273. 21                
  1274.  
  1275. 22    B22=@ARRAY(@UPPER(C22..C25))    THIS    This    
  1276.  
  1277. 23        IS    is    
  1278.  
  1279. 24        A    a    
  1280.  
  1281. 25        TEST    Test    
  1282.  
  1283. @ASCTOHEX - Convert ASCII to Hexadecimal
  1284.  
  1285. Syntax
  1286.  
  1287. @ASCTOHEX(ASCII, <Places>)
  1288.  
  1289.  
  1290.  
  1291. ASCII    ASCII character string to convert; can be up to 20 ASCII characters.
  1292.  
  1293. Places    Number of characters to return; can be from 1 to 40 characters.
  1294.  
  1295.  
  1296.  
  1297. @ASCTOHEX returns the hexadecimal string equivalent of an ASCII number.
  1298.  
  1299. If the ASCII value includes nonnumeric characters, enclose it in quotation marks.
  1300.  
  1301. Examples
  1302.  
  1303. @ASCTOHEX("A") = 41
  1304.  
  1305. @ASCTOHEX("A",4) = 0041
  1306.  
  1307. @ASCTOHEX("01ABCDEF") = 3031414243444546
  1308.  
  1309. @ASCTOHEX("QUATTRO",5) = 4524F
  1310.  
  1311. @ASEC - Arc Secant
  1312.  
  1313. Syntax
  1314.  
  1315. @ASEC(X)
  1316.  
  1317.  
  1318.  
  1319. X    The secant of an angle. X can be any value from approximately -1.789E+308 through -1 and from 1 through approximately 1.789E+308.
  1320.  
  1321.  
  1322.  
  1323. @ASEC calculates the arc, or inverse, secant using the secant X of an angle. The result of @ASEC is an angle, in radians, from 0 through p (from 0 through 180 degrees). To convert radians to degrees, use @DEGREES.
  1324.  
  1325. Examples
  1326.  
  1327. @ASEC(1) = 0
  1328.  
  1329. @ASEC(-2) = 2.094395
  1330.  
  1331. @DEGREES(@ASEC(-2)) = 120 degrees
  1332.  
  1333. @ASEC(0.25) = ERR, because X is between -1 and 1
  1334.  
  1335. @ASECH - Arc Hyperbolic Secant
  1336.  
  1337. Syntax
  1338.  
  1339. @ASECH(X)
  1340.  
  1341.  
  1342.  
  1343. X    The hyperbolic secant of an angle. X must be greater than 0 and less than or equal to 1.
  1344.  
  1345.  
  1346.  
  1347. @ASECH calculates the arc, or inverse, hyperbolic secant using the hyperbolic secant X of an angle. The result is in radians; to convert to degrees, use @DEGREES.
  1348.  
  1349. Examples
  1350.  
  1351. @ASECH(@RADIANS(30)) = 1.263277
  1352.  
  1353. @ASECH(@RADIANS(75)) = ERR, because the hyperbolic secant of a 75-degree angle is between 0 and 1
  1354.  
  1355. @ASECH(@RADIANS(45)) = 0.723368
  1356.  
  1357. @ROUND(@DEGREES(@ASECH(0.624888)), 2) = 60 degrees. Or: "The angle whose hyperbolic secant is 0.624888, rounded to 2 decimal places." 
  1358.  
  1359. @ASIN - Arc Sine
  1360.  
  1361. Syntax
  1362.  
  1363. @ASIN(X)
  1364.  
  1365.  
  1366.  
  1367. X    A numeric value between -1 and 1.
  1368.  
  1369.  
  1370.  
  1371. @ASIN calculates the arc sine of X. The result is the angle (in radians) whose sine is X. To convert radians to degrees, use @DEGREES.
  1372.  
  1373. Examples
  1374.  
  1375. @ASIN(1) = 1.570796
  1376.  
  1377. @ASIN(0.25) = 0.25268
  1378.  
  1379. @DEGREES(@ASIN(0.5)) = 30
  1380.  
  1381. @ASIN(-2) = ERR (X is less than -1)
  1382.  
  1383. @ASINH - Arc Hyperbolic Sine
  1384.  
  1385. Syntax
  1386.  
  1387. @ASINH(X)
  1388.  
  1389.  
  1390.  
  1391. X    The hyperbolic sine of an angle. X can be any value from approximately -1.34078E+154 to 1.34078E+154.
  1392.  
  1393.  
  1394.  
  1395. @ASINH calculates the arc, or inverse, hyperbolic sine using the hyperbolic sine X of an angle. The result is in radians; to convert to degrees, use @DEGREES.
  1396.  
  1397. Examples
  1398.  
  1399. @ASINH(1) = 0.881374
  1400.  
  1401. @ASINH(0.25) = 0.247466
  1402.  
  1403. @ROUND(@DEGREES(@ASINH(0.547853)), 2) = 30 degrees. Or: "The angle whose hyperbolic sine is 1.600287, rounded to 2 decimal places." 
  1404.  
  1405. @ATAN - Arc Tangent
  1406.  
  1407. Syntax
  1408.  
  1409. @ATAN(X)
  1410.  
  1411.  
  1412.  
  1413. X    A numeric value.
  1414.  
  1415.  
  1416.  
  1417. @ATAN calculates the arc tangent of X. The result is the angle (in radians) whose tangent is X. To convert radians to degrees, use @DEGREES.
  1418.  
  1419. Examples
  1420.  
  1421. @ATAN(0.5) = 0.463648
  1422.  
  1423. @ATAN(1) = 0.785398
  1424.  
  1425. @DEGREES(@ATAN(1)) = 45
  1426.  
  1427. @ATAN2 - Arc Tangent of Two Points
  1428.  
  1429. Syntax
  1430.  
  1431. @ATAN2(X, Y)
  1432.  
  1433.  
  1434.  
  1435. X    A numeric value.
  1436.  
  1437. Y    A numeric value.
  1438.  
  1439.  
  1440.  
  1441. @ATAN2 calculates the arc tangent of the angle represented by the point with (x,y) coordinates X and Y. The result is the angle (in radians) whose tangent is Y/X. The result is between -pi and pi, with the quadrant chosen appropriately according to the sign of the result. If both X and Y are 0, the result is ERR.
  1442.  
  1443. The order of arguments is the same as for 1-2-3, but opposite that of the ATAN2 function in FORTRAN and other programming languages.
  1444.  
  1445. To convert radians to degrees, use @DEGREES.
  1446.  
  1447. Examples
  1448.  
  1449. @ATAN2(1,2) = 1.107149
  1450.  
  1451. @DEGREES(@ATAN2(1,1)) = 45
  1452.  
  1453. @ATANH - Arc Hyperbolic Tangent
  1454.  
  1455. Syntax
  1456.  
  1457. @ATANH(X)
  1458.  
  1459.  
  1460.  
  1461. X    The hyperbolic tangent of an angle. X must be greater than -1 and less than 1.
  1462.  
  1463.  
  1464.  
  1465. @ATANH calculates the arc, or inverse, hyperbolic tangent using the hyperbolic tangent X. The result is in radians; to convert to degrees, use @DEGREES.
  1466.  
  1467. Examples
  1468.  
  1469. @ATANH(0.5) = 0.549306
  1470.  
  1471. @ATANH(1) = ERR, because X is not between -1 and 1
  1472.  
  1473. @ATANH(0.999999) = 7.254329
  1474.  
  1475. @ROUND(@DEGREES(@ATANH(0.655794)), 2) = 45 degrees. Or: "The angle whose hyperbolic tangent is 0.655794, rounded to 2 decimal places."
  1476.  
  1477. @AVEDEV - Mean Absolute Deviation
  1478.  
  1479. Syntax
  1480.  
  1481. @AVEDEV(List)
  1482.  
  1483.  
  1484.  
  1485. List    One or more numeric or cell values.
  1486.  
  1487.  
  1488.  
  1489. @AVEDEV returns the mean absolute deviation, that is, the average of the absolute deviation of the data points in List from their mean. Use @AVEDEV to measure the variability of a data set around the mean. @AVEDEV uses this formula:
  1490.  
  1491.  
  1492.  
  1493. Example
  1494.  
  1495. @AVEDEV(10,11,12,13,12,11,10) = 0.897959
  1496.  
  1497. @AVG - Average
  1498.  
  1499. Syntax
  1500.  
  1501. @AVG(List)
  1502.  
  1503.  
  1504.  
  1505. List    One or more numeric or cell values.
  1506.  
  1507.  
  1508.  
  1509. @AVG calculates the arithmetic mean of all values in List. It uses the formula: Sum of List divided by N
  1510.  
  1511. If List contains more than one item, they must be separated by commas. If any of the cells referenced contains ERR, the resulting value is ERR.
  1512.  
  1513. @AVG ignores blank cells in cells when it makes its calculations. Cells containing blank labels, however, are treated as 0; make sure blank cells are empty.
  1514.  
  1515. Examples
  1516.  
  1517.  
  1518.  
  1519.     B    C    D
  1520.  
  1521. 1            
  1522.  
  1523. 2    January    February    March
  1524.  
  1525. 3    $652    $833    $599
  1526.  
  1527. 4    $456    $305    $522
  1528.  
  1529. 5    $68    $59    $73
  1530.  
  1531.  
  1532.  
  1533. @AVG(5,20,10,5) = 10
  1534.  
  1535. @AVG(B3..D3) = $694.67
  1536.  
  1537. @AVG(225,B3..D5) = $379.20
  1538.  
  1539. @AVG(B3..B5,PART) = $395.50 when C3..C5 is named PART
  1540.  
  1541.  
  1542.  
  1543.  
  1544.