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

  1. @GAMMA - Gamma Function
  2.  
  3. Syntax
  4.  
  5. @GAMMA(X)
  6.  
  7.  
  8.  
  9. X    Any positive number, not 0.
  10.  
  11.  
  12.  
  13. @GAMMA calculates the gamma function. It approximates the gamma function accurately to within six significant figures.
  14.  
  15. The gamma function has the property that @GAMMA(X+1) = X * @GAMMA(X). Or, @GAMMA(n+1) = n!
  16.  
  17. @GAMMA returns ERR if X is greater than approximately 171.6242.
  18.  
  19. Examples
  20.  
  21. @GAMMA(3) = 2
  22.  
  23. @GAMMA(4) = 6
  24.  
  25. @GAMMA(5) = 24
  26.  
  27. @GAMMADIST - Gamma Distribution
  28.  
  29. Syntax
  30.  
  31. @GAMMDIST(X, Alpha, Beta, Cum)
  32.  
  33.  
  34.  
  35. X    Value at which to evaluate the function; must be │ 0.
  36.  
  37. Alpha    Parameter to the gamma distribution; must be > 0.
  38.  
  39. Beta    Parameter to the gamma distribution; must be > 0.
  40.  
  41. Cum    1 to return the cumulative gamma distribution function; 0 to return the probability density function.
  42.  
  43.  
  44.  
  45. @GAMMDIST returns the gamma distribution function, which is the probability that a random variable will be less than X. Use @GAMMADIST to study random variables characterized by skewed and asymmetric distributions.
  46.  
  47. When Alpha = 1, @GAMMADIST returns the exponential distribution; see @EXPONDIST.
  48.  
  49. Examples
  50.  
  51. @GAMMADIST(18,8,2,1) = 0.676103
  52.  
  53. @GAMMADIST(18,8,2,0) = 0.058558
  54.  
  55. @GAMMAINV - Inverse of Gamma Distribution
  56.  
  57. Syntax
  58.  
  59. @GAMMAINV(Prob, Alpha, Beta)
  60.  
  61.  
  62.  
  63. Prob    Probability associated with the gamma cumulative function; must be │ 0 and ú 1.
  64.  
  65. Alpha    A parameter to the gamma distribution; must be > 0.
  66.  
  67. Beta    A parameter to the gamma distribution; must be > 0.
  68.  
  69.  
  70.  
  71. @GAMMAINV returns the inverse of the cumulative gamma distribution function.
  72.  
  73. Example
  74.  
  75. @GAMMAINV(0.676103,8,2) = 18
  76.  
  77. @GAMMALN - Natural Logarithm of Gamma Function
  78.  
  79. Syntax
  80.  
  81. @GAMMALN(X)
  82.  
  83.  
  84.  
  85. X    Value for which you want to calculate @GAMMALN; must be > 0.
  86.  
  87.  
  88.  
  89. @GAMMALN returns the natural logarithm of the gamma function. Use @GAMMALN to build other common statistical functions such as the beta function (see @BETA) and the factorial function (see @FACT).
  90.  
  91. Example
  92.  
  93. @GAMMALN(6) = 4.787492
  94.  
  95. @GAMMAP - Incomplete Gamma Function
  96.  
  97. Syntax
  98.  
  99. @GAMMAP(A, X) 
  100.  
  101.  
  102.  
  103. A    Parameter to the function; must be > 0.
  104.  
  105. X    Value at which to evaluate the function; must be │ 0.
  106.  
  107.  
  108.  
  109. @GAMMAP returns the incomplete gamma function, also known as the standard cumulative gamma distribution. @GAMMAP is equal to the cumulative gamma distribution when b = 1.
  110.  
  111. Example
  112.  
  113. @GAMMAP(3,4) = 0.761897
  114.  
  115. @GAMMAQ - Complement to Incomplete Gamma Function
  116.  
  117. Syntax
  118.  
  119. @GAMMAQ(A, X)
  120.  
  121.  
  122.  
  123. A    Parameter to the function; must be > 0.
  124.  
  125. X    Value at which to evaluate the function; must be │ 0.
  126.  
  127.  
  128.  
  129. @GAMMAQ is a complement to the incomplete gamma function and equals (1 - @GAMMAP).
  130.  
  131. Example
  132.  
  133. @GAMMAQ(3,4) = 0.238103
  134.  
  135. @GCD - Greatest Common Divisor
  136.  
  137. Syntax
  138.  
  139. @GCD(X, Y)
  140.  
  141.  
  142.  
  143. X    Integer to find greatest common divisor of.
  144.  
  145. Y    Integer to find greatest common divisor of.
  146.  
  147.  
  148.  
  149. @GCD returns the greatest common divisor of X and Y (the largest integer that both numbers can be divided by without a remainder.
  150.  
  151. @GCD should not be confused with the greatest common denominator which is @LCM.
  152.  
  153. Examples
  154.  
  155. @GCD(96,78) = 6
  156.  
  157. @GCD(112,42) = 14
  158.  
  159. @GCD(-9,-3) = 3
  160.  
  161. @GEOMEAN - Geometric Mean
  162.  
  163. Syntax
  164.  
  165. @GEOMEAN(List)
  166.  
  167.  
  168.  
  169. List    One or more numeric or values; values in List must be positive.
  170.  
  171.  
  172.  
  173. @GEOMEAN returns the geometric mean of a positive range of values. The geometric mean is the nth root of the product of a series of numbers. Use @GEOMEAN when you are interested in an average rate of change of values in a data set given a varying rate of change.
  174.  
  175. @GEOMEAN uses this formula:
  176.  
  177.  
  178.  
  179. Example
  180.  
  181. @GEOMEAN(3,4,5,6,7) = 4.789389
  182.  
  183. @GEOMEAN(C10..C14) = 1.129486, where C10=1.15, C11=1.08, C12=1.13, C13=1.18, and C14=1.11
  184.  
  185. @GEOSUM - Geometric Series
  186.  
  187. Syntax
  188.  
  189. @GEOSUM(FirstTerm, Terms, Ratio)
  190.  
  191.  
  192.  
  193. FirstTerm    First term of the series.
  194.  
  195. Terms    Number of terms in the series.
  196.  
  197. Ratio    Common ratio of the series.
  198.  
  199.  
  200.  
  201. @GEOSUM calculates the geometric series that is sum of the terms of a geometric sequence of a number of terms (n) based on the first term and common ratio. The notion of a geometric series is the basis of the mathematical model of an annuity. @GEOSUM uses the formula:
  202.  
  203.  
  204.  
  205. where
  206.  
  207.  
  208.  
  209. s    geometric series
  210.  
  211. a    first term
  212.  
  213. r    common ratio
  214.  
  215. n    number of terms
  216.  
  217.  
  218.  
  219. The formula assumes: r ╣ 1; if r = 1, @GEOSUM returns NA.
  220.  
  221. Examples
  222.  
  223. If you invest $2,000 at 3.5% interest compounded annually, the list of compound amounts at the end of each year for 5 years is
  224.  
  225. 2000*1.035, 2000*1.035^2, 2000*1.035^3, 2000*1.035^4, 2000*1.035^5
  226.  
  227. This is a geometric series with the common ration 1.035.
  228.  
  229. @GEOSUM(2000*1.035,5,1.035) = $11,100.30
  230.  
  231. @GESTEP - Test if X >= Y
  232.  
  233. Syntax
  234.  
  235. @GESTEP(X, <Y>)
  236.  
  237.  
  238.  
  239. X    Numeric value to check.
  240.  
  241. Y    Numeric value that X must exceed for function to return 1 (if omitted, assumed to be 0).
  242.  
  243.  
  244.  
  245. @GESTEP tests whether X is greater than or equal to Y. If it is, @GESTEP returns 1 (true); if not, @GESTEP returns 0 (false).
  246.  
  247. Examples
  248.  
  249. @GESTEP(1,2) = 0
  250.  
  251. @GESTEP(2,1) = 1
  252.  
  253. @GESTEP(1) = 1
  254.  
  255. @GESTEP(-2) = 0
  256.  
  257. You can sum several @GESTEP functions to count the number of values that exceed a certain threshold (Y).
  258.  
  259. @GETGROUP - Name of Group Containing Sheet
  260.  
  261. Syntax
  262.  
  263. @GETGROUP(Block, <PageName>)
  264.  
  265.  
  266.  
  267. Block    A cell or cells of the notebook to check.
  268.  
  269.            PageName    A string value representing a sheet name or an address specifying the sheet name to check (optional).
  270.  
  271.  
  272.  
  273. @GETGROUP returns a string that is the name of the group that includes the sheet containing specified cells.
  274.  
  275. If Block is used in conjunction with the optional argument PageName, @GETGROUP searches the notebook referenced by Block for the group that contains the sheet specified by PageName. PageName is a string or cell address.
  276.  
  277. If the sheet is not part of a group, @GETGROUP returns ERR.
  278.  
  279. Example
  280.  
  281. @GETGROUP([REPORTQ4]A:C12,"April") searches the notebook REPORTQ4 for the name of the group that contains the sheet named April
  282.  
  283. @GETGROUP([REPORTQ4]A:C12) searches the notebook REPORTQ4 for the name of the group that contains the sheet named A
  284.  
  285. @GETREGISTRYKEY
  286.  
  287. Syntax
  288.  
  289. @GETREGISTRYKEY(Registry Key, Registry Value)
  290.  
  291.  
  292.  
  293. Registry Key    A string value representing the path in the registry.
  294.  
  295. Registry Value    A string value representing the stored value in the registry, at the specified path.
  296.  
  297.  
  298.  
  299. @GETREGISTRYKEY returns the value of the specified key in the registry.
  300.  
  301. You can use @GETREGISTRYKEY to open a file specified in the registry.
  302.  
  303. Example
  304.  
  305. {FileOpen +@GETREGISTRYKEY("HKEY_LOCAL_MACHINE\SOFTWARE\Corel\QuattroPro\9\Location of Files\EN","Template Folder")&"\amortize.qpw"}
  306.  
  307. @GRANDTOTAL123 - Sum of Subtotals
  308.  
  309. Syntax
  310.  
  311. @GRANDTOTAL123 (List)
  312.  
  313.  
  314.  
  315. List    Any combination of cells; separated by valid argument separators.
  316.  
  317.  
  318.  
  319. @GRANDTOTAL123 sums all cells in a designated area that contain @SUBTOTAL123 in their formulas.
  320.  
  321. Example
  322.  
  323. 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).
  324.  
  325.  
  326.  
  327.     A    B    C    D
  328.  
  329. 1    $30        $18    
  330.  
  331. 2    $65        $22    
  332.  
  333. 3    $95        $40    @SUBTOTAL123 in A3 and C3
  334.  
  335. 4    $135            @GRANDTOTAL123 in A4
  336.  
  337. @GROWTH - Fits Exponential Curve to Data
  338.  
  339. Syntax
  340.  
  341. @GROWTH(KnownYs, <KnownXs>, <NewXs>, <Const>)
  342.  
  343.  
  344.  
  345. KnownYs    Array of known y-values for the curve y = b*m^x.
  346.  
  347. KnownXs    Array of known x-values (optional).
  348.  
  349. NewXs    Array of new x-values for which you want the corresponding y-values (optional).
  350.  
  351. Const    Logical value (optional) that tells @GROWTH whether to force the constant b = 1:
  352.  
  353.  If Const is TRUE or omitted, @GROWTH uses the actual value of b.
  354.  
  355.  If Const is FALSE, @GROWTH sets b = 1, then adjusts the m-values so that y = m^x.
  356.  
  357.  
  358.  
  359. @GROWTH fits an exponential curve to the data KnownYx and KnownXs, and returns the y-values along that curve for the array of NewXs that you specify.
  360.  
  361.   If known y-values are in one column, @GROWTH takes each column of known x-values to be a separate variable. If known y-values are in one row, @GROWTH takes each row of known x-values to be a separate variable.
  362.   
  363.   If any of the known y-values are 0 or negative, @GROWTH returns ERR.
  364.   
  365.   The argument KnownXs can include more than one set of variables. If you use only one variable, KnownYs and KnownXs can be cell areas of any shape, but must have the same dimensions. If you use more than one variable, KnownYs must be a single-column or single-row. Use commas to separate x-values in the same row and pipes ( | ) to separate rows.
  366.   
  367.   The argument NewXs must follow the pattern of KnownXs: It must include a row or column for each independent variable. If you omit the argument NewXs, @GROWTH assumes it is the same as KnownXs. If you omit both KnownXs and NewXs, @GROWTH assumes they are the array {1, 2, 3,...} of a size equal to KnownYs.
  368.   
  369. Example
  370.  
  371. Sales for your company in its first four quarters are entered in a selection named Sales:
  372.  
  373.  
  374.  
  375.     A    B
  376.  
  377. 1    Quarter    Sales
  378.  
  379. 2    1    $75,000
  380.  
  381. 3    2    $90,000
  382.  
  383. 4    3    $115,000
  384.  
  385. 5    4    $140,000
  386.  
  387.  
  388.  
  389. To predict second-year sales, @GROWTH(Sales,A2..A5,A6..A9) = {$173,359, $214,246, $264,775, $327,222}
  390.  
  391. @HALFP
  392.  
  393. Syntax
  394.  
  395. @HALFP(String)
  396.  
  397.  
  398.  
  399. String    The double-byte (full-width) character string
  400.  
  401.  
  402.  
  403. @HALFP converts a double-byte character string to a half-width (single-byte) character string in a label. Double-byte characters are 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.
  404.  
  405. @HALFP allows for converting double-byte character set (DBCS) alphanumeric characters to ASCII characters. In cases where there is no matching ASCII character, these characters are not converted and the results displays the same format as the original. 
  406.  
  407. You cannot convert use @HALFP to convert double-byte Katakana characters to single-byte Katakana.
  408.  
  409. @HARMEAN - Harmonic Mean
  410.  
  411. Syntax
  412.  
  413. @HARMEAN(List)
  414.  
  415.  
  416.  
  417. List    One or more numeric or cell values; none of the values in List can equal 0.
  418.  
  419.  
  420.  
  421. @HARMEAN returns the harmonic mean of a data set. The harmonic mean is the reciprocal of the arithmetic mean of the reciprocals of a set of numbers.
  422.  
  423. @HARMEAN uses this formula:
  424.  
  425.  
  426.  
  427. Example
  428.  
  429. @HARMEAN(3,4,5,6,7) = 4.575163
  430.  
  431. @HEXTOASC - Hexadecimal to ASCII
  432.  
  433. Syntax
  434.  
  435. @HEXTOASC(Hex)
  436.  
  437.  
  438.  
  439. Hex    Hexadecimal number to convert; can be up to 40 hexadecimal digits.
  440.  
  441.  
  442.  
  443. @HEXTOASC returns the ASCII equivalent of a hexadecimal number.
  444.  
  445. If the hexadecimal number includes nonnumeric characters, enclose it in quotation marks.
  446.  
  447. Examples
  448.  
  449. @HEXTOASC("2B") = +
  450.  
  451. @HEXTOASC("3031414243444546") = 01ABCDEF
  452.  
  453. @HEXTOASC("5155415454524F") = QUATTRO
  454.  
  455. @HEXTOBIN - Hexadecimal to Binary
  456.  
  457. Syntax
  458.  
  459. @HEXTOBIN(Hex)
  460.  
  461.  
  462.  
  463. Hex    Hexadecimal number to convert.
  464.  
  465.  
  466.  
  467. @HEXTOBIN returns the binary string equivalent of a hexadecimal number. To convert a negative number, precede Hex with a minus sign.
  468.  
  469. Examples
  470.  
  471. @HEXTOBIN("A") = 1010
  472.  
  473. @HEXTOBIN("10") = 10000
  474.  
  475. @HEXTOBIN("1E") = 11110
  476.  
  477. @HEXTOBIN64 - Hexadecimal to Binary
  478.  
  479. Syntax
  480.  
  481. @HEXTOBIN64(Hex, <Places>)
  482.  
  483.  
  484.  
  485. Hex    Hexadecimal number to convert, must be >0.
  486.  
  487. Places    Number of characters to return; must be ú 64.
  488.  
  489.  
  490.  
  491. @HEXTOBIN64 returns the binary string equivalent of a hexadecimal number (up to 64 bits).
  492.  
  493. If the hexadecimal number includes nonnumeric characters, enclose it in quotation marks.
  494.  
  495. Examples
  496.  
  497. @HEXTOBIN64("A",2) = 10
  498.  
  499. @HEXTOBIN64("A",6) = 001010
  500.  
  501. @HEXTOBIN64("1E078") = 00011110000001111000
  502.  
  503. @HEXTOBIN64("1E078",7) = 1111000
  504.  
  505. @HEXTONUM - Hexadecimal to Decimal
  506.  
  507. Syntax
  508.  
  509. @HEXTONUM(Hex)
  510.  
  511.  
  512.  
  513. Hex    A hexadecimal number enclosed by double quotes, either positive or negative.
  514.  
  515.  
  516.  
  517. @HEXTONUM converts the hexadecimal number in the string to the corresponding decimal value. @NUMTOHEX performs the opposite conversion, from decimal to hexadecimal.
  518.  
  519. Examples
  520.  
  521. @HEXTONUM("a") = 10 
  522.  
  523. @HEXTONUM("10") = 16 
  524.  
  525. @HEXTONUM("00FF") = 255 
  526.  
  527. @HEXTONUM(A1) = 10 (if cell A1 contains the label 'a)
  528.  
  529. @HEXTONUM64 - Hexadecimal to Decimal
  530.  
  531. Syntax
  532.  
  533. @HEXTONUM64(Hex, <Signed>)
  534.  
  535.  
  536.  
  537. Hex    Hexadecimal number to convert.
  538.  
  539. Signed    1 if the most significant bit of Hex is a sign bit; 0 if Hex is positive (the default is 0).
  540.  
  541.  
  542.  
  543. @HEXTONUM64 returns the decimal equivalent of a hexadecimal number (up to 64 bits).
  544.  
  545. If Signed is 1, the most significant bit of Hex is the sign bit. If the sign bit is 0, the number is positive; if it is 1, the number is negative.
  546.  
  547. If the hexadecimal number includes nonnumeric characters, enclose it in quotation marks.
  548.  
  549. Examples
  550.  
  551. @HEXTONUM64("A") = 10
  552.  
  553. @HEXTONUM64("123456789ABCDEF0") = 1311768467463790320
  554.  
  555. @HEXTONUM64("FE4FA1",1) = -110687
  556.  
  557. @HEXTOOCT - Hexadecimal to Octal
  558.  
  559. Syntax
  560.  
  561. @HEXTOOCT(Hex)
  562.  
  563.  
  564.  
  565. Hex    Hexadecimal number to convert.
  566.  
  567.  
  568.  
  569. @HEXTOOCT returns the octal string equivalent of a hexadecimal number. To convert a negative number, precede Hex with a minus sign.
  570.  
  571. Hexadecimal strings must be <14 characters.
  572.  
  573. Examples
  574.  
  575. @HEXTOOCT("A") = 12
  576.  
  577. @HEXTOOCT("10") = 20
  578.  
  579. @HEXTOOCT("1E") = 36
  580.  
  581. @HEXTOOCT64 - Hexadecimal to Octal
  582.  
  583. Syntax
  584.  
  585. @HEXTOOCT64(Hex, <Places>)
  586.  
  587.  
  588.  
  589. Hex    Hexadecimal number to convert, must be > 0.
  590.  
  591.            Places    Number of characters to return; must be ú 22.
  592.  
  593.  
  594.  
  595. @HEXTOOCT64 returns the octal string equivalent of a hexadecimal number (up to 64 bits).
  596.  
  597. If the hexadecimal number includes nonnumeric characters, enclose it in quotation marks.
  598.  
  599. Examples
  600.  
  601. @HEXTOOCT64("A") = 12
  602.  
  603. @HEXTOOCT64("7",2) = 07
  604.  
  605. @HEXTOOCT64("1E078",6) = 360170
  606.  
  607. @HEXTOOCT64("0123456789ABCDEF") = 0004432126361152746757
  608.  
  609. @HLOOKUP - Horizontal Lookup
  610.  
  611. Syntax
  612.  
  613. @HLOOKUP (X, Block, Row, <Type>)
  614.  
  615.  
  616.  
  617. X    The numeric or string value you want to search for.
  618.  
  619. Block    The range of cells.
  620.  
  621. Row    The number of the referenced row. The rows are referenced from 0 to the number of rows in Block minus 1.
  622.  
  623. The first row (index row) in Block = 0
  624.  
  625. The second row in Block = 1, ...
  626.  
  627. Type <optional>    Lets you specify whether or not the match must be exact.
  628.  
  629. 0 Does not need to be an exact match
  630.  
  631. 1 Must be an exact match
  632.  
  633.  
  634.  
  635. @HLOOKUP searches horizontally through the index row of Block for the value X. When @HLOOKUP finds the value X, it returns the value displayed Row rows beneath it.
  636.  
  637. All values in the index column must be sorted in ascending order for the function to work correctly. Otherwise, ERR or an incorrect answer may be returned.
  638.  
  639. @HLOOKUP returns 0 if the referenced cell is blank. ERR is returned if:
  640.  
  641.   Row is less than 0 or greater than the number of rows minus 1 in Block.
  642.   
  643.   X is less than the smallest value in the topmost row of Block.
  644.   
  645.   X and the first row entries are string values and @HLOOKUP fails to find a match in the top row of Block.
  646.   
  647.   X is a string or label and the index row entries are numeric values.
  648.   
  649. If X is a string, @HLOOKUP looks for an exact case-sensitive match. If X is a number and @HLOOKUP cannot find an equal number, it locates the highest number, not more than X, in the row.
  650.  
  651. If X is a number and the index row contains only labels, @HLOOKUP stops at the rightmost column.
  652.  
  653. Each cell of the index row must contain a value.
  654.  
  655. Examples
  656.  
  657. In the following example, @HLOOKUP searches across the index row (1) of the Block (A1..D4), looking for the largest number equal to or less than X (17). It stops at cell D1, then moves down Row rows (3). It stops at cell D4 and returns the value 47.
  658.  
  659.  
  660.  
  661.     A    B    C    D
  662.  
  663. 1    1    5    10    15
  664.  
  665. 2    43    3    32    67
  666.  
  667. 3    92    42    18    22
  668.  
  669. 4    45    83    76    47
  670.  
  671.  
  672.  
  673. @HLOOKUP(17, A1..D4, 3)
  674.  
  675. Returns: 47
  676.  
  677. @HOLS - Holidays
  678.  
  679. Syntax
  680.  
  681. @HOLS(StartDate, EndDate, Holidays, <Saturday>, <Sunday>)
  682.  
  683.  
  684.  
  685. StartDate    Number representing the start date. See "Using dates and times in Quattro Pro."
  686.  
  687. EndDate    Number representing the end date.
  688.  
  689. Holidays    Cells containing dates that are holidays; to indicate no holidays, enter an empty cell or cells.
  690.  
  691. Saturday    0 to specify that Saturday is not a business day; 1 to specify that Saturday is a business day (the default is 0).
  692.  
  693. Sunday    0 to specify that Sunday is not a business day; 1 to specify that Sunday is a business day (the default is 0).
  694.  
  695.  
  696.  
  697. @HOLS returns the number of holidays between StartDate and EndDate, including the specified dates (if they appear in Holidays).
  698.  
  699. By default, @HOLS does not include holidays that fall on a Saturday or Sunday; if either Saturday or Sunday is passed as 1, the count also includes holidays falling on that day.
  700.  
  701. Example
  702.  
  703. This formula calculates the number of holidays between April 1, 1993 and December 14, 1993, assuming that the dates contained in selection A7..C9 are holidays.
  704.  
  705. @HOLS(@DATE(93,4,1),@DATE(93,12,14),A7..C9) = 5
  706.  
  707. @HOUR - Hour Portion of Date Serial Number
  708.  
  709. Syntax
  710.  
  711. @HOUR(DateTimeNumber)
  712.  
  713.  
  714.  
  715. 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).
  716.  
  717.  
  718.  
  719. See "Using dates and times in Quattro Pro."
  720.  
  721. @HOUR returns the hour portion of DateTimeNumber. DateTimeNumber must be a valid date/time 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 (12:00AM) and 23 (11:00PM).
  722.  
  723. To extract the hour portion of a string that is in time format (instead of serial format), use @TIMEVALUE with @HOUR to translate the time into a serial number. To return standard hours (1-12) instead of military hours (1-24), use @MOD with a parameter of 12.
  724.  
  725. Examples
  726.  
  727. @HOUR(.25) = 6 
  728.  
  729. @HOUR(.5) = 12 
  730.  
  731. @HOUR(.75) = 18 
  732.  
  733. @HOUR(@TIMEVALUE("10:08am")) = 10 
  734.  
  735. @MOD(@HOUR(@TIMEVALUE("9:31:52 PM")),12) = 9
  736.  
  737. @HYPGEOMDIST - Hypergeometric Distribution
  738.  
  739. Syntax
  740.  
  741. @HYPGEOMDIST(SampleSuccess, SampleSize, PopSuccess, PopSize)
  742.  
  743.  
  744.  
  745. SampleSuccess    Successes in the sample; must be │ 0.
  746.  
  747. SampleSize    Sample size; must be │ 0 and ú PopSize.
  748.  
  749. PopSuccess    Successes in the population; must be │ 0 and ú PopSize.
  750.  
  751. PopSize    Population size; must be │ 0.
  752.  
  753.  
  754.  
  755. @HYPGEOMDIST returns the hypergeometric distribution of a sample. It gives the probability of successes in a sample given the sample's size, the total population, and the number of successful trials in that population. Use @HYPGEOMDIST to determine the probability that a distribution contains exactly SampleSuccess items of a particular type.
  756.  
  757. SampleSuccess must be greater than or equal to 0, greater than the lesser of SampleSize or PopSuccess, and greater than the larger of 0 or (SampleSize-PopSize+PopSuccess)
  758.  
  759. @HYPGEOMDIST uses this formula:
  760.  
  761.  
  762.  
  763. where
  764.  
  765.  
  766.  
  767. d    SampleSuccess
  768.  
  769. n    SampleSize
  770.  
  771. D    PopSuccess
  772.  
  773. N    PopSize
  774.  
  775.  
  776.  
  777. Examples
  778.  
  779. Five cards are drawn from a deck of 52 playing cards. This formula calculates the probability that one of the five cards drawn is an ace (assuming there are only four aces in the deck):
  780.  
  781. @HYPGEOMDIST(1,5,4,52) = 0.299474
  782.  
  783. @IF - Perform Logical Test
  784.  
  785. Syntax
  786.  
  787. @IF(Cond, TrueExpr, FalseExpr)
  788.  
  789.  
  790.  
  791. Cond    A logical expression representing the condition to be tested.
  792.  
  793. TrueExpr    A numeric or string value representing the value to use if Cond is true.
  794.  
  795. FalseExpr    A numeric or string value representing the value to use if Cond is false.
  796.  
  797.  
  798.  
  799. @IF evaluates the logical condition specified as Cond. If the condition is found to be true, it returns the value specified as TrueExpr. If the condition is false, it returns the value specified as FalseExpr. Cond is true if it evaluates to any nonzero numeric value.
  800.  
  801. The formula entered as Cond can be any logical expression that can be evaluated as true or false; for example, B6<0 or C3*D2=53.
  802.  
  803. You can use compound conditions by connecting expressions with #AND# or #OR#. If you use #AND#, both conditions specified must be met to evaluate true. If you use #OR#, the expression is true if either of the conditions is met. For example, A3<10#OR#A3>5 means that the value in A3 must be either less than 10 or greater than 5 to evaluate true--6,9,1, and 15 are all true; A3<10#AND#A3>5 means that the value in A3 must be between 5 and 10 to evaluate true. If A3 contains a label, the expression evaluates true because labels have a value of 0 (zero).
  804.  
  805. You can also use the #NOT# operator to negate a condition. For example, #NOT#(B3>10) evaluates true if B3 is not greater than 10.
  806.  
  807. TrueExpr and FalseExpr can be numbers, formulas resulting in numbers, or text. If text, the string must be enclosed by double quotes; for example, @IF(D6=5,"John","Harry "). You can also use cell references to use the contents of other cells in the notebook. For example, @IF(B10<18,D5,C4) enters the contents of D5 if the condition is true, and enters the contents of C4 if the condition is false.
  808.  
  809. If the condition you specify with Cond searches a cell for a number and the cell contains a label, the label is evaluated as having a value of 0 and FalseExpr is returned. Likewise, if you search for a label and find a numeric value, TrueExpr results if the value of the referenced cell is 0; FalseExpr results if it is nonzero.
  810.  
  811. Although logical expressions typically reference other cells, this is not required. Any expression resulting in a numeric value is accepted; for example, A1=1 or A1="Fred". If the result of Cond is nonzero, TrueExpr is the result; otherwise, FalseExpr is the result. 
  812.  
  813. @IF statements can be nested, or used within one another. In other words, TrueExpr can contain yet another test to further validate Cond.
  814.  
  815. For example, @IF(B5>C6,@IF(B5>C7,1,2),3) tells Quattro Pro to see if the contents of B5 are greater than C6. If they are, it then checks to see if B5 is greater than C7; if so, it enters a 1 in the cell. If not, it enters a 2. If B5 is not greater than C6, it enters a 3. There is no limit on the number of levels @IF expressions that you can nest, as long as the entire expression does not exceed 1024 characters.
  816.  
  817. Examples
  818.  
  819. @IF(8=7,4,5) = 5
  820.  
  821. @IF(B4<100,"Yes","No") = Yes if B4 < 100; otherwise, No
  822.  
  823. @IF(C10=BLOCK,45,50) = 45 if C10 = the cell named BLOCK; otherwise, 50
  824.  
  825. @IF(C10,1,0) = 0 if C10 = 0; otherwise, 1
  826.  
  827. @IMABS - Absolute Value of Complex Number
  828.  
  829. Syntax
  830.  
  831. @IMABS(Complex)
  832.  
  833.  
  834.  
  835. Complex    Complex number in the format x + yi, x + iy, x + yj, or x + jy for which you want the absolute (modulus) value.
  836.  
  837.  
  838.  
  839. @IMABS returns the absolute value (modulus) of a complex number. It uses this formula:
  840.  
  841. Given Complex = x + yi
  842.  
  843.  
  844.  
  845. C = Complex
  846.  
  847. Example
  848.  
  849. @IMABS("-10+25.6i") = 27.48381
  850.  
  851. @IMAGINARY - Imaginary Coefficient of Complex Number
  852.  
  853. Syntax
  854.  
  855. @IMAGINARY(Complex)
  856.  
  857.  
  858.  
  859. Complex    Complex number in the format x + yi, x + iy, x + yj, or x + jy from which you want to extract the imaginary coefficient.
  860.  
  861.  
  862.  
  863. @IMAGINARY returns the imaginary coefficient of a complex number.
  864.  
  865. Examples
  866.  
  867. @IMAGINARY("2+8i") = 8
  868.  
  869. @IMAGINARY("-i") = -1
  870.  
  871. @IMARGUMENT - Angle of Complex Number
  872.  
  873. Syntax
  874.  
  875. @IMARGUMENT(Complex)
  876.  
  877.  
  878.  
  879. Complex    Complex number in the format x + yi, x + iy, x + yj, or x + jy for which you want to calculate the angle in the complex plane.
  880.  
  881.  
  882.  
  883. @IMARGUMENT returns the angle Q, in radians, of a number in the complex plane. It uses this formula:
  884.  
  885.  
  886.  
  887. Example
  888.  
  889. @IMARGUMENT("5+12i") = 1.176005
  890.  
  891. @IMCONJUGATE - Complex Conjugate of Complex Number
  892.  
  893. Syntax
  894.  
  895. @IMCONJUGATE(Complex)
  896.  
  897.  
  898.  
  899. Complex    Complex number in the format x + yi, x + iy, x + yj, or x + jy for which you want to calculate the complex conjugate.
  900.  
  901.  
  902.  
  903. @IMCONJUGATE returns the complex conjugate of a complex number.
  904.  
  905. Example
  906.  
  907. @IMCONJUGATE("5+12i") = "5-12i"
  908.  
  909. @IMCOS - Cosine of Complex Number
  910.  
  911. Syntax
  912.  
  913. @IMCOS(Complex)
  914.  
  915.  
  916.  
  917. Complex    Complex number in the format x + yi, x + iy, x + yj, or x + jy for which you want to calculate the cosine.
  918.  
  919.  
  920.  
  921. @IMCOS returns the cosine of the complex number Complex. @IMCOS uses this formula:
  922.  
  923. Given Complex = x + yi
  924.  
  925.  
  926.  
  927. C = Complex
  928.  
  929. Example
  930.  
  931. @IMCOS("5+12i") = "23083.7+78034.8i"
  932.  
  933. @IMDIV - Quotient of Complex Numbers
  934.  
  935. Syntax
  936.  
  937. @IMDIV(Complex1, Complex2)
  938.  
  939.  
  940.  
  941. Complex1    Complex numerator or dividend in the format x + yi, x + iy, x + yj, or x + jy.
  942.  
  943. Complex2    Complex denominator or divisor in the format x + yi, x + iy, x + yj, or x + jy.
  944.  
  945.  
  946.  
  947. @IMDIV returns the quotient of two complex numbers (Complex1 and Complex2). It uses this formula:
  948.  
  949. Given: Complex1 = a + bi and Complex2 = c + di
  950.  
  951.  
  952.  
  953. C = Complex
  954.  
  955. Example
  956.  
  957. @IMDIV("5+6i","3+4i") = "1.56-0.08i"
  958.  
  959. @IMEXP - Exponential of Complex Number
  960.  
  961. Syntax
  962.  
  963. @IMEXP(Complex)
  964.  
  965.  
  966.  
  967. Complex    Complex number in the format x + yi, x + iy, x + yj, or x + jy for which you want to calculate the exponential.
  968.  
  969.  
  970.  
  971. @IMEXP returns the exponential of a complex number. It uses this formula:
  972.  
  973. Given Complex = x + yi,
  974.  
  975.  
  976.  
  977. C = Complex
  978.  
  979. Example
  980.  
  981. @IMEXP("5+12i") = "125.239-79.6345i"
  982.  
  983. @IMLN - Natural Logarithm of Complex Number
  984.  
  985. Syntax
  986.  
  987. @IMLN(Complex)
  988.  
  989.  
  990.  
  991. Complex    Complex number in the format x + yi, x + iy, x + yj, or x + jy for which you want to calculate the natural logarithm.
  992.  
  993.  
  994.  
  995. @IMLN returns the natural logarithm of the complex number Complex. It uses this formula:
  996.  
  997.  
  998.  
  999. Example
  1000.  
  1001. @IMLN("5+12i") = "2.56495+1.17601i"
  1002.  
  1003. @IMLOG10 - Base 10 Logarithm of Complex Number
  1004.  
  1005. Syntax
  1006.  
  1007. @IMLOG10(Complex)
  1008.  
  1009.  
  1010.  
  1011. Complex    Complex number in the format x + yi, x + iy, x + yj, or x + jy for which you want to calculate the base 10 log.
  1012.  
  1013.  
  1014.  
  1015. @IMLOG10 returns the base 10 (common) logarithm of the complex number Complex. It uses this formula:
  1016.  
  1017. Given Complex = x + yi
  1018.  
  1019.  
  1020.  
  1021. C = Complex
  1022.  
  1023. Example
  1024.  
  1025. @IMLOG10("5+12i") = "1.11394+0.510733i"
  1026.  
  1027. @IMLOG2 - Base 2 Logarithm of Complex Number
  1028.  
  1029. Syntax
  1030.  
  1031. @IMLOG2(Complex)
  1032.  
  1033.  
  1034.  
  1035. Complex    Complex number in the format x + yi, x + iy, x + yj, or x + jy for which you want to calculate the base 2 log.
  1036.  
  1037.  
  1038.  
  1039. @IMLOG2 returns the base 2 logarithm of the complex number Complex. It uses this formula:
  1040.  
  1041. Given Complex = x + yi
  1042.  
  1043.  
  1044.  
  1045. C = Complex
  1046.  
  1047. Example
  1048.  
  1049. @IMLOG2("5+12i") = "3.70044+1.69662i"
  1050.  
  1051. @IMPOWER - Complex Number Raised to a Power
  1052.  
  1053. Syntax
  1054.  
  1055. @IMPOWER(Complex, Power)
  1056.  
  1057.  
  1058.  
  1059. Complex    Complex number in the format x + yi, x + iy, x + yj, or x + jy.
  1060.  
  1061. Power    The power to which you want to raise Complex; can be a complex number in the format x + yi, x + iy, x + yj, or x + jy.
  1062.  
  1063.  
  1064.  
  1065. @IMPOWER returns the complex number Complex raised to the power Power. Power can be a value or a complex number.
  1066.  
  1067. Examples
  1068.  
  1069. @IMPOWER("5+12i",3) = "-2035-828i"
  1070.  
  1071. @IMPOWER("5+12i","3+2i") = "-150.575+145.094i"
  1072.  
  1073. @IMPRODUCT - Product of Complex Numbers
  1074.  
  1075. Syntax
  1076.  
  1077. @IMPRODUCT(Complex1, Complex2)
  1078.  
  1079.  
  1080.  
  1081. Complex1    Complex number in the format x + yi, x + iy, x + yj, or x + jy.
  1082.  
  1083. Complex2    Complex number in the format x + yi, x + iy, x + yj, or x + jy.
  1084.  
  1085.  
  1086.  
  1087. @IMPRODUCT returns the product of two complex numbers (Complex1 and Complex2). It uses this formula:
  1088.  
  1089. Given Complex1 = a + bi and Complex2 = c + di
  1090.  
  1091. (Complex1)(Complex2) = (ac - bd) + (ad + bc)i
  1092.  
  1093. Example
  1094.  
  1095. @IMPRODUCT("5+12i","2-i") = "22+19i"
  1096.  
  1097. @IMPRODUCT("10+2i",5) = "50+10i"
  1098.  
  1099. @IMREAL - Real Coefficient of a Complex Number
  1100.  
  1101. Syntax
  1102.  
  1103. @IMREAL(Complex)
  1104.  
  1105.  
  1106.  
  1107. Complex    Complex number in the format x + yi, x + iy, x + yj, or x + jy from which you want to extract the real coefficients.
  1108.  
  1109.  
  1110.  
  1111. @IMREAL returns the real coefficient of a complex number.
  1112.  
  1113. Examples
  1114.  
  1115. @IMREAL("2+8i") = 2
  1116.  
  1117. @IMREAL("-i") = 0
  1118.  
  1119. @IMSIN - Sine of a Complex Number
  1120.  
  1121. Syntax
  1122.  
  1123. @IMSIN(Complex)
  1124.  
  1125.  
  1126.  
  1127. Complex    Complex number in the format x + yi, x + iy, x + yj, or x + jy for which you want to calculate the sine.
  1128.  
  1129.  
  1130.  
  1131. @IMSIN returns the sine of the complex number Complex. It uses this formula:
  1132.  
  1133. Given Complex = x + yi
  1134.  
  1135.  
  1136.  
  1137. C = Complex
  1138.  
  1139. Examples
  1140.  
  1141. @IMSIN("5+12i") = "-78034.8+23083.7i"
  1142.  
  1143. @IMSIN("1+i") = "1.29846+0.634964i"
  1144.  
  1145. @IMSQRT - Square Root of a Complex Number
  1146.  
  1147. Syntax
  1148.  
  1149. @IMSQRT(Complex) 
  1150.  
  1151.  
  1152.  
  1153. Complex    Complex number in the format x + yi, x + iy, x + yj, or x + jy to calculate square root of.
  1154.  
  1155.  
  1156.  
  1157. @IMSQRT returns the square root of a complex number. It uses this formula:
  1158.  
  1159. Given Complex = x + yi
  1160.  
  1161.  
  1162.  
  1163. C = Complex
  1164.  
  1165. Example
  1166.  
  1167. @IMSQRT("5+12i") = "3+2i"
  1168.  
  1169. @IMSUB - Difference of Complex Numbers
  1170.  
  1171. Syntax
  1172.  
  1173. @IMSUB(Complex1, Complex2)
  1174.  
  1175.  
  1176.  
  1177. Complex1    Complex number in the format x + yi, x + iy, x + yj, or x + jy from which to subtract Complex2.
  1178.  
  1179. Complex2    Complex number in the format x + yi, x + iy, x + yj, or x + jy to subtract from Complex1.
  1180.  
  1181.  
  1182.  
  1183. @IMSUB returns the difference of two complex numbers (Complex1 and Complex2). It uses this formula:
  1184.  
  1185. Given Complex1 = (a + bi) and Complex2 = (c + di)
  1186.  
  1187. (a + bi) - (c + di) = (a - c) + (b - d)i
  1188.  
  1189. Example
  1190.  
  1191. @IMSUB("5+12i","2-i") = "3+13i"
  1192.  
  1193. @IMSUM - Sum of Complex Numbers
  1194.  
  1195. Syntax
  1196.  
  1197. @IMSUM(List)
  1198.  
  1199.  
  1200.  
  1201. List    One or more complex numbers in the format x + yi, x + iy, x + yj, or x + jy, separated by commas.
  1202.  
  1203.  
  1204.  
  1205. @IMSUM returns the sum of a list of complex numbers. It uses this formula:
  1206.  
  1207. Given Complex1 = (a + bi) and Complex2 = (c + di)
  1208.  
  1209. Complex1 + Complex2 = (a + c) + (b + d)i
  1210.  
  1211. Example
  1212.  
  1213. @IMSUM("5+12i","7+14i") = "12+26i"
  1214.  
  1215. @INDEX - Return Value from Table Index
  1216.  
  1217. Syntax
  1218.  
  1219. @INDEX(Block, Column, Row, <Page>)
  1220.  
  1221.  
  1222.  
  1223. Block    A cell reference or name.
  1224.  
  1225. Column    The number of the referenced column, from 0 to 255 (the first column in Block = 0, the second = 1, and so on).
  1226.  
  1227. Row    The number of the referenced row; if an offset, the first row in Block = 0, the second = 1, and so on.
  1228.  
  1229. Page    The number of the referenced sheet, from 0 to 255 (the first sheet in Block = 0, the second = 1, and so on).
  1230.  
  1231.  
  1232.  
  1233. @INDEX searches through the table specified as Block and returns the value specified with the Column, Row, and optional Page values. The upper left cell in Block is column 0, row 0. Likewise, the first sheet is 0. The Column and Row values are not the actual coordinates of the resulting cell, but instead are offset values. In other words, @INDEX begins in the top left cell of the specified cells, moves right the number of columns specified by Column, moves down the number of rows specified by Row, and through the number of sheets specified by Page (if you have specified a Page). It then returns the value in the current cell. 
  1234.  
  1235. The Column, Row, and Page values must be numbers equal to or greater than zero and less than the number of rows, columns, or sheets in the cells. If a fractional number is used (for example, 2.35), the fractional part is dropped (not rounded).
  1236.  
  1237. @HLOOKUP and @VLOOKUP are related functions.
  1238.  
  1239. Examples
  1240.  
  1241.  
  1242.  
  1243.     A    B    C    D
  1244.  
  1245. 1    1    5    10    15
  1246.  
  1247. 2    43    53    32    67
  1248.  
  1249. 3    92    42    18    22
  1250.  
  1251. 4    45    83    76    47
  1252.  
  1253.  
  1254.  
  1255. These examples reference cells in the data table:
  1256.  
  1257. @INDEX(A1..D4,3,2) = 22
  1258.  
  1259. @INDEX(A1..D4,1,2) = 42
  1260.  
  1261. @INDEX(C2..D3,0,1) = 18
  1262.  
  1263. @INDEX(C2..D3,1,3) = ERR (too many rows)
  1264.  
  1265. @INDEX(A1..D4,-2,3) = ERR (negative column number)
  1266.  
  1267. @INDEXTOLETTER - Letter(s) Corresponding to Sheet/Column Index
  1268.  
  1269. Syntax
  1270.  
  1271. @INDEXTOLETTER(Index)
  1272.  
  1273.  
  1274.  
  1275. Index    An integer number from 0 to 18277 inclusive.
  1276.  
  1277.  
  1278.  
  1279. @INDEXTOLETTER returns a one-, two-, or three-character string equivalent (for example, A, B, AA, AB, and ZZZ) for the index number of a sheet or column.
  1280.  
  1281. If Index is < 0 or > 18277, @INDEXTOLETTER returns ERR. If Index is not an integer, it is rounded to the nearest integer.
  1282.  
  1283. Examples
  1284.  
  1285. @INDEXTOLETTER(0) = A
  1286.  
  1287. @INDEXTOLETTER(1) = B
  1288.  
  1289. @INDEXTOLETTER(18277) = ZZZ
  1290.  
  1291. @INT - Integer
  1292.  
  1293. Syntax
  1294.  
  1295. @INT(X)
  1296.  
  1297.  
  1298.  
  1299. X    A numeric value.
  1300.  
  1301.  
  1302.  
  1303. @INT drops the fractional portion of X, returning its integer value. @ROUND rounds X to the nearest integer.
  1304.  
  1305. Examples
  1306.  
  1307. @INT(499.99) = 499
  1308.  
  1309. @INT(0.1245) = 0
  1310.  
  1311. @INT(-2.3) = -2
  1312.  
  1313. @INT(C4) = 5 if C4 contains a value between 5 and 6
  1314.  
  1315. @INTERCEPT - Y-Intercept
  1316.  
  1317. Syntax
  1318.  
  1319. @INTERCEPT(KnownY, KnownX)
  1320.  
  1321.  
  1322.  
  1323. KnownY    Dependent range of values.
  1324.  
  1325. KnownX    Independent range of values.
  1326.  
  1327.  
  1328.  
  1329. @INTERCEPT returns the y-intercept of the linear regression line through two data sets. KnownY and KnownX must contain the same number of values. The formula @INTERCEPT uses is
  1330.  
  1331.  
  1332.  
  1333. , the slope, is calculated using this formula:
  1334.  
  1335.  
  1336.  
  1337. Example
  1338.  
  1339. @INTERCEPT({16,28,30,35,52,65},{11,15,18,22,35,43}) = 3.56304
  1340.  
  1341. @INTRATE - Annualized Interest Rate
  1342.  
  1343. Syntax
  1344.  
  1345. @INTRATE(Settle, Maturity, Investment, Redemption, <Calendar>)
  1346.  
  1347.  
  1348.  
  1349. Settle    Number representing the settlement date; must be < Maturity.
  1350.  
  1351. Maturity    Number representing the maturity date; must be > Settle.
  1352.  
  1353. Investment    Amount invested; must be > 0.
  1354.  
  1355. Redemption    Redemption value; must be > 0.
  1356.  
  1357. Calendar    Flag specifying which calendar to observe (0 = 30/360, 1 = actual/actual, 2 = actual/360, 3 = actual/365; the default is 0).
  1358.  
  1359.  
  1360.  
  1361. @INTRATE returns the simple annualized yield for a fully invested security. @INTRATE computes yield using this formula:
  1362.  
  1363.  
  1364.  
  1365.  
  1366.  
  1367. Y    yield
  1368.  
  1369. R    redemption
  1370.  
  1371. I    investment
  1372.  
  1373. b    basis
  1374.  
  1375. M    maturity
  1376.  
  1377. S    settle
  1378.  
  1379.  
  1380.  
  1381. tb is the number of days over which the discount rate applies (360 or 365).
  1382.  
  1383. Example
  1384.  
  1385. This formula calculates the interest rate for a bond with the following terms: Settle is November 11, 1995, Maturity is May 27, 1996, Investment is $10,000, Redemption is $10,397.50, and Calendar is 1 (actual/actual).
  1386.  
  1387. @INTRATE(@DATE(95,11,11),@DATE(96,5,27),10000,10397.50,1) = 0.073277
  1388.  
  1389. @INVB - Binary Bit Inversion
  1390.  
  1391. Syntax
  1392.  
  1393. @INVB(Binary, <Bits>)
  1394.  
  1395.  
  1396.  
  1397. Binary    Binary number.
  1398.  
  1399. 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.
  1400.  
  1401.  
  1402.  
  1403. @INVB inverts the bits of a binary number. All bits that are 1 change to 0, and all bits that are 0 change to 1.
  1404.  
  1405. Examples
  1406.  
  1407. @INVB(0) = 1
  1408.  
  1409. @INVB(1010,5) = 10101
  1410.  
  1411. @INVB(1100,5) = 10011
  1412.  
  1413. @INVH - Hexadecimal Bit Inversion
  1414.  
  1415. Syntax
  1416.  
  1417. @INVH(Hex, <Bits>)
  1418.  
  1419.  
  1420.  
  1421. Hex    Hexadecimal number.
  1422.  
  1423. 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.
  1424.  
  1425.  
  1426.  
  1427. @INVH inverts the binary bits of a hexadecimal number. All bits that are 1 change to 0, and all bits that are 0 change to 1.
  1428.  
  1429. Example
  1430.  
  1431. @INVH("A") = 5
  1432.  
  1433. @INVH("C",8) = F3
  1434.  
  1435. @INTXL - Integer
  1436.  
  1437. Syntax
  1438.  
  1439. @INTXL(X)
  1440.  
  1441.  
  1442.  
  1443. X    A numeric value.
  1444.  
  1445.  
  1446.  
  1447. @INTXL rounds X down to an integer value. @ROUND rounds X to the nearest integer. @INT drops the fractional portion of X, returning its integer value.
  1448.  
  1449. Examples
  1450.  
  1451. @INTXL(499.99) = 499
  1452.  
  1453. @INTXL(0.1245) = 0
  1454.  
  1455. @INTXL(-2.3) = -3
  1456.  
  1457. @INTXL(D4) = -6 if D4 contains a value between -5 and -6
  1458.  
  1459. @INTXL(C4) = 5 if C4 contains a value between 5 and 6
  1460.  
  1461. @IPAYMT - Interest Portion of Payment
  1462.  
  1463. Syntax
  1464.  
  1465. @IPAYMT(Rate, Per, Nper, Pv, <Fv>, <Type>)
  1466.  
  1467.  
  1468.  
  1469. Rate    A numeric value > -1, representing the periodic interest rate (the fixed interest rate per compounding period).
  1470.  
  1471. Per    The number of the loan period for which the interest is desired (where Nper is the total number of periods).
  1472.  
  1473. Nper    A numeric value > 0, representing the number of periods of the loan (the number of payments to be made) or investment (the number of compounding periods).
  1474.  
  1475. Pv    A numeric value representing the amount borrowed (the principal).
  1476.  
  1477. Fv    A numeric value representing the future value of an investment (the value the investment will reach at some point).
  1478.  
  1479. Type    An optional numeric value that indicates whether payments or cash flows occur at the beginning (1) or the end (0) of the period; default = 0.
  1480.  
  1481.  
  1482.  
  1483. @IPAYMT and @PPAYMT tell what portion of a particular loan payment is interest and what portion is principal, respectively. For each month in the transaction period,
  1484.  
  1485. @PAYMT(Rate, Nper, Pv, Fv, Type) = @IPAYMT(Rate, Per, Nper, Pv, Fv, Type) + @PPAYMT(Rate, Per, Nper, Pv, Fv, Type).
  1486.  
  1487. @IPAYMT is calculated by computing the simple interest on the outstanding principal from the previous month. @PPAYMT then gives the principal portion of the payment for the current month, and is computed by subtracting @IPAYMT from @PAYMT. The calculation starts by using Pv as the outstanding principal at the beginning of the first month:
  1488.  
  1489. @IPAYMT(Rate, Per, Nper, Pv, Fv, Type) = Rate * @FVAL(Rate, Per + (Type - 1), @PAYMT(Rate, Nper, PV, Fv, Type), Pv, Type)
  1490.  
  1491. The last two arguments, Fv and Type, are optional. If you omit one or both of them, their values are assumed to be zero.
  1492.  
  1493. Examples
  1494.  
  1495. If you are two years into a 30-year, 10% mortgage on a $100,000 loan and your interest payment is tax-deductible, then @IPAYMT(.1/12,2*12,30*12,100000) returns your current month's deduction: -824.03.
  1496.  
  1497. @IRATE - Interest Rate
  1498.  
  1499. Syntax
  1500.  
  1501. @IRATE(Nper, Pmt, Pv, <Fv>, <Type>)
  1502.  
  1503.  
  1504.  
  1505. Nper    A numeric value > 0, representing the number of periods of the loan (the number of payments to be made) or investment (the number of compounding periods).
  1506.  
  1507. Pmt    A numeric value representing the amount of the periodic payment.
  1508.  
  1509. Pv    A numeric value representing the current value of an investment (the present value).
  1510.  
  1511. Fv    A numeric value representing the future value of an investment (the value the investment will reach at some point).
  1512.  
  1513. Type    An optional numeric value that indicates whether payments or cash flows occur at the beginning (1) or the end (0) of the period; default = 0.
  1514.  
  1515.  
  1516.  
  1517. @IRATE calculates the interest rate required to pay off a principal (Pv) or reach an investment goal (Fv) in Nper payments of Pmt amount.
  1518.  
  1519. The last two arguments, Fv and Type, are optional. If you omit one or both of them, their values are assumed to be zero.
  1520.  
  1521. @IRATE requires that the initial cash flow (Pv + Type * Pmt) and the last cash flow (Fv + (1-Type) * Pmt) have opposite signs. Otherwise, @IRATE returns ERR because the transaction is not simple and there may not be a meaningful rate.
  1522.  
  1523. @IRATE is not compatible with 1-2-3. If your file must be compatible with 1-2-3, use @RATE instead.
  1524.  
  1525. Be sure to enter a negative number for money that is out of your pocket and a positive number for money that's coming in to you.
  1526.  
  1527. Examples
  1528.  
  1529. Assume you are negotiating to buy a $15,000 new car. The salesperson says you can have the car for $500 a month for the next five years. To calculate the monthly percentage rate:
  1530.  
  1531. @IRATE(5*12,-500,15000,0,0) = 0.02632
  1532.  
  1533. Another example: Assume that you plan to deposit $2000 a year into a savings account that currently contains only $2.38. What interest rate must the account earn to generate $15,000 at the end of 5 years? Use this formula:
  1534.  
  1535. @IRATE(5,-2000,-2.38,15000,0) = 0.203773
  1536.  
  1537. @IRR - Internal Rate of Return
  1538.  
  1539. Syntax
  1540.  
  1541. @IRR(Guess, Block)
  1542.  
  1543.  
  1544.  
  1545. Guess    A numeric value that estimates the internal rate of return on an investment.
  1546.  
  1547. Block    Cells (reference or name) containing cash flow information for the investment.
  1548.  
  1549.  
  1550.  
  1551. @IRR determines the internal rate of return on an investment. It references cells in your notebook that contains cash flow information and uses the supplied internal rate of return estimate to calculate the results.
  1552.  
  1553. Before using @IRR, you must set up a cash flow table, showing expected cash flow amounts over a period of time. Quattro Pro assumes that the amounts are received at regular intervals. Negative amounts are interpreted as cash outflows, and positive amounts as inflows. The first amount must be a negative number, to reflect the initial investment. These amounts can all be the same for each time period, or they can be different (including a mixture of negatives, positives, or zeros).
  1554.  
  1555. @IRR always returns ERR or a rate of return greater than or equal to -1. Some cash flows have no rate of return, and some have several. If it can be determined that the cash flow has a unique rate of return, then the Guess is ignored and @IRR gives that unique value.
  1556.  
  1557. Quattro Pro can determine unique rates of return for simple transactions or cash flow. A simple cash flow has two sets of values: a series of nonpositive values (negative values and zero) that is your cash outflow, and a series of nonnegative values (positive values and zero) that is your cash inflow. A simple cash flow must contain both a negative value (cash outflow) and a positive value (cash inflow).
  1558.  
  1559. Simple values have a unique rate of return, so you can safely use @NA as the Guess argument in most cases. Quattro Pro then tries to determine whether the root is unique and returns that rate without using a Guess argument. If Quattro Pro cannot find a unique root value, @IRR returns ERR.
  1560.  
  1561. Typically, you make an investment (a negative cash flow) and then receive several dividends (positive cash flows). This is an example of a simple transaction, and @IRR gives the unique rate of return for this without requiring a Guess. More complex transactions, in which the direction of money changes several times, often do not have a meaningful value for @IRR. For more information, see @IRR with Multiple Rates of Return.
  1562.  
  1563. @IRR(Guess,Block) gives the number Rate which satisfies @NPV(Rate,Block,0) = 0. For a simple transaction, @NPV(@IRR(Block),Block,0) will give a number close to 0 (it may not be exactly 0 due to how numbers are rounded off).
  1564.  
  1565. Guess can be any value greater than -1. Values that are NA or less than or equal to -1 are ignored. Use @NA for Guess unless your cash flow has multiple rates of return. If you use @NA, you will get ERR if your cash flow has more than one rate of return, rather than the rate of return that happens to be near your Guess.
  1566.  
  1567. There is no Type parameter to @IRR because the rate of return is the same regardless of whether the payments are at the end or the beginning of each period.
  1568.  
  1569. Examples
  1570.  
  1571.  
  1572.  
  1573.     A    B    C
  1574.  
  1575. 1    3000    -50000    -10000
  1576.  
  1577. 2    700    -8000    1000
  1578.  
  1579. 3    600    2000    1000
  1580.  
  1581. 4    750    4000    1200
  1582.  
  1583. 5    900    6000    2000
  1584.  
  1585.  
  1586.  
  1587. @IRR(0,A1..A5) = -1
  1588.  
  1589. @IRR(0,B1..B5) = -38.09%
  1590.  
  1591. @IRR(0,C1..C5) = -19.90%
  1592.  
  1593. @IRR with Multiple Rates of Return
  1594.  
  1595. In unusual cases, @IRR may have as many as N-1 roots, where N is the number of terms in the cells. Consider the selection that has the values ( -10, +150, -145). @IRR(@NA,Block) returns ERR because it is not simple. The two roots are 3.86% and 1296%, obtainable from guesses of 0 and 10, respectively. Both of these values are meaningful, if interpreted properly.
  1596.  
  1597. Maybe you invested $10 in an oil well. It struck oil, paying you $150, but then it ran into legal difficulties and required you to pay back $145. You had a net loss of $5, but your rate of return is quite large, as you had the use of a relatively large amount of money for a small investment. Or, maybe the real purpose of the transaction was to get a $150 loan from the bank. The bank required you to pay a $10 application fee ahead of time. After you got the loan, you paid back $145. Because you only paid back $155 on a $150 loan, the interest rate is fairly low. The difference in these two interpretations is that in one you're the lender, and in the other you're the borrower.
  1598.  
  1599. If you find a transaction with two roots, there is a mechanical way to determine which is the lender rate and which is the borrower rate. Pick a positive term in the Block, and increase it by a small amount. If the rate increases, it is a lender rate, and if the rate decreases, it is a borrower rate.
  1600.  
  1601. If Block has the values (-10,+150,-145), @IRR(0,Block) = 3.86%
  1602.  
  1603. If Block has the values (-10,+150,-145), @IRR(10,Block) = 1296%
  1604.  
  1605. If Block has the values (-10,+150.1,-145), @IRR(0,Block) = 3.78%
  1606.  
  1607. If Block has the values (-10,+150.1,-145), @IRR(10,Block) = 1297%
  1608.  
  1609. Because 3.78% < 3.86% and 1297 > 1296%, it follows from this rule that 3.86% is a borrower rate and 1296% is a lender rate.
  1610.  
  1611. Most uses of @IRR are for analyzing an investment in which the first cash flow is negative, and the rate is a lender rate.
  1612.  
  1613. Some transactions have no rate of return at all. @IRR(Guess,Block), with Block having the values (-1,+1,-1), returns ERR regardless of the Guess. There is no rate of return that is meaningful for this cash flow.
  1614.  
  1615. If there are more than two roots, the above analysis can still be used to determine if a particular root is a lender rate or a borrower rate. In some cases, it might still be possible to assign meaning to a root, but it is much more likely that the transaction should be interpreted as several transactions, with a rate of return for each. For example, the cash flow (-1,+6,-11,+6) has three roots, 0%, 100%, 200%. It is difficult to interpret such a transaction in terms of interest rates, and the roots are sensitive to small fluctuations.
  1616.  
  1617. @ISBDAY - Business Day Test
  1618.  
  1619. Syntax
  1620.  
  1621. @ISBDAY(Date, <Holidays>, <Saturday>, <Sunday>)
  1622.  
  1623.  
  1624.  
  1625. Date    Number representing a date. See "Using dates and times in Quattro Pro."
  1626.  
  1627. Holidays    Cells containing dates that are holidays or the date of a single holiday or 0 to indicate no holidays (the default is 0).
  1628.  
  1629. Saturday    0 to specify that Saturday is not a business day; 1 to specify that Saturday is a business day (the default is 0).
  1630.  
  1631. Sunday    0 to specify that Sunday is not a business day; 1 to specify that Sunday is a business day (the default is 0).
  1632.  
  1633.  
  1634.  
  1635. @ISBDAY tests whether Date is a business day. To qualify as a business day, Date cannot fall on a Saturday or Sunday (unless Saturday and Sunday are designated as business days by Saturday and Sunday), and cannot appear in the cells specified by Holidays. If Date is a business day, @ISBDAY returns 1; otherwise, @ISBDAY returns 0.
  1636.  
  1637. Example
  1638.  
  1639. Given the cells of holidays, A7..C9, and treating Saturday as a business day (except when it is a date included in A7..C9), this formula tests whether May 31, 1993 is a business day:
  1640.  
  1641. @ISBDAY(@DATE(93,5,31),A7..C9,1) = 0, since May 31, 1993 is Memorial Day.
  1642.  
  1643. @ISBLANK - Blank Test
  1644.  
  1645. Syntax
  1646.  
  1647. @ISBLANK(Location)
  1648.  
  1649.  
  1650.  
  1651. Location    Name or address of a cell.
  1652.  
  1653.  
  1654.  
  1655. @ISBLANK tests a specified cell to see if it is empty.
  1656.  
  1657. If the cell is empty, @ISBLANK returns 1 (true).
  1658.  
  1659. If the cell is not empty, @ISBLANK returns 0 (false).
  1660.  
  1661. Examples
  1662.  
  1663.  
  1664.  
  1665.     A    B
  1666.  
  1667. 1        Profits
  1668.  
  1669. 2    $90    
  1670.  
  1671.  
  1672.  
  1673. @ISBLANK(A1) = 1
  1674.  
  1675. @ISBLANK(B1) = 0
  1676.  
  1677. @ISBLANK(A2) = 0
  1678.  
  1679. @ISBLANK(B2) = 1
  1680.  
  1681. @ISBLANK(A1..B2) = returns the array {1|0|0|1} 
  1682.  
  1683. @ISBLOCK - Block Test
  1684.  
  1685. Syntax
  1686.  
  1687. @ISBLOCK(Block)
  1688.  
  1689.  
  1690.  
  1691. Block    Cell address or presumed cell name.
  1692.  
  1693.  
  1694.  
  1695. @ISBLOCK tests input to see if it is a defined cell name or valid address. Valid addresses have sheet name A to IV, column letters A to IV, and row numbers 1 to 8192. @ISBLOCK searches only files in memory.
  1696.  
  1697.   If Block is a defined cell name or valid address, @ISBLOCK returns 1 (true).
  1698.   
  1699.   If Block is not a defined cell name or valid address, @ISBLOCK returns 0 (false).
  1700.   
  1701. You can use @ISBLOCK with @IF to find out if an entry is a valid cell name for subroutine calls and branching with {DISPATCH}.
  1702.  
  1703. Examples
  1704.  
  1705. @ISBLOCK(C3) = 1
  1706.  
  1707. @ISBLOCK(3) = 0
  1708.  
  1709. @ISBLOCK(C3..C5) = 1
  1710.  
  1711. @ISBLOCK(PROFITS) = 1, if PROFITS is the name of a selection
  1712.  
  1713. @ISBLOCK("PROFITS") = 0, because the cell name is enclosed in quotation marks; arguments to @IS functions are not converted from text
  1714.  
  1715. @ISERR - Error Test
  1716.  
  1717. Syntax
  1718.  
  1719. @ISERR(X)
  1720.  
  1721.  
  1722.  
  1723. X    A cell address or expression.
  1724.  
  1725.  
  1726.  
  1727. @ISERR is normally used to check the contents of a cell for errors. If the cell contains ERR, 1 is returned; otherwise, 0 is returned. You can also use formulas or numeric values with @ISERR.
  1728.  
  1729. Examples
  1730.  
  1731. @ISERR(C2)=1 if C2 contains ERR; otherwise, 0
  1732.  
  1733. @ISERR(10/0)=1
  1734.  
  1735. @ISERR(45+C3)=1 if C3 is ERR; otherwise, 0
  1736.  
  1737. @ISERR(C2/B3)=1 if B3 is 0 or ERR, or if C2 is ERR; otherwise, 0
  1738.  
  1739. @IF(@ISERR(A2),0,A5)=0 if A2 is ERR; otherwise, it returns the value in A5
  1740.  
  1741. @ISEVEN - Even Number Test
  1742.  
  1743. Syntax
  1744.  
  1745. @ISEVEN(Number)
  1746.  
  1747.  
  1748.  
  1749. Number    Value to test.
  1750.  
  1751.  
  1752.  
  1753. @ISEVEN returns 1 (true) if a specified number is even, 0 (false) if it is odd.
  1754.  
  1755.   If Number is not an integer, it is truncated.
  1756.   
  1757.   If Number is non-numeric, @ISEVEN returns ERR.
  1758.   
  1759. Examples
  1760.  
  1761. @ISEVEN(4) = 1
  1762.  
  1763. @ISEVEN(4.9) = 1
  1764.  
  1765. @ISEVEN(5) = 0
  1766.  
  1767. @ISEVEN(-5) = 0
  1768.  
  1769. @ISLEGALPAGENAME - Legal Sheet Name Test
  1770.  
  1771. Syntax
  1772.  
  1773. @ISLEGALPAGENAME(PageName)
  1774.  
  1775.  
  1776.  
  1777. PageName    A string value.
  1778.  
  1779.  
  1780.  
  1781. @ISLEGALPAGENAME returns 1 if PageName is a valid sheet name (even if the sheet name does not currently exist). Otherwise, it returns 0.
  1782.  
  1783. Examples
  1784.  
  1785. @ISLEGALPAGENAME("A") = 1
  1786.  
  1787. @ISLEGALPAGENAME("1st Qtr") = 1
  1788.  
  1789. @ISLEGALPAGENAME("1st Qtr: Net Profit") = 0 (name contains a colon, an invalid character)
  1790.  
  1791. Files that contain custom spreadsheet names may not open in Quattro Pro if characters used in the names are not recognized by Quattro Pro. In this event, Quattro Pro displays a message warning you about the invalid spreadsheet name. You can change the spreadsheet name to make it compatible with Quattro Pro. Valid Quattro Pro characters include the following: ~ ` ! % _ | \ ' ?.
  1792.  
  1793. Spreadsheet names must not exceed 63 characters.
  1794.  
  1795. @ISLOGICAL - Logical Value Test
  1796.  
  1797. Syntax
  1798.  
  1799. @ISLOGICAL(Value)
  1800.  
  1801.  
  1802.  
  1803. Value    Empty cell, logical value, text, number, ERR, cell reference, or cell name to test.
  1804.  
  1805.  
  1806.  
  1807. @ISLOGICAL tests if the value is a logical value (0,1, TRUE, FALSE).; it returns 0 (false) if its argument refers to any other number.
  1808.  
  1809. Examples
  1810.  
  1811. @ISLOGICAL(A1) = 1 if Cell A1 evaluates to either 0 or 1
  1812.  
  1813. @ISLOGICAL(5) = 0
  1814.  
  1815. @ISNA - NA Test
  1816.  
  1817. Syntax
  1818.  
  1819. @ISNA(X)
  1820.  
  1821.  
  1822.  
  1823. X    A cell address or expression.
  1824.  
  1825.  
  1826.  
  1827. @ISNA tests for the special value NA in a cell. If the cell contains an NA value, it returns 1; otherwise, it returns 0. NA is considered a special value; it appears in the notebook only through the use of @NA. Cells containing the label "NA" typed directly (not produced by @NA) are not recognized by @ISNA.
  1828.  
  1829. Examples
  1830.  
  1831. @ISNA("NA") = 0
  1832.  
  1833. @ISNA(@NA) = 1
  1834.  
  1835. @ISNA(A18) = 1 if A18 contains NA produced by @NA
  1836.  
  1837. @ISNONTEXT - Nontext Test
  1838.  
  1839. Syntax
  1840.  
  1841. @ISNONTEXT(Value)
  1842.  
  1843.  
  1844.  
  1845. Value    Empty cell, logical value, text, number, ERR, cell reference, or cell name to test.
  1846.  
  1847.  
  1848.  
  1849. @ISNONTEXT tests if the argument is not text. @ISNONTEXT also returns 1 if Value refers to an empty cell.
  1850.  
  1851. Examples
  1852.  
  1853.  
  1854.  
  1855.     A    B
  1856.  
  1857. 1        Profits
  1858.  
  1859. 2    8/31/95    "8/31/95"
  1860.  
  1861.  
  1862.  
  1863. Cell A1 above is empty; Cell A2 contains the formula @TODAY().
  1864.  
  1865. @ISNONTEXT(A1) = 1
  1866.  
  1867. @ISNONTEXT(B1) = 0
  1868.  
  1869. @ISNONTEXT(A2) = 1
  1870.  
  1871. @ISNONTEXT(B2) = 0
  1872.  
  1873. @ISNONTEXT(A1..B2) = returns the array {1|0|1|0}
  1874.  
  1875. @ISNUMBER - Number Test
  1876.  
  1877. Syntax
  1878.  
  1879. @ISNUMBER(X)
  1880.  
  1881.  
  1882.  
  1883. X    A cell address or expression.
  1884.  
  1885.  
  1886.  
  1887. @ISNUMBER examines X and determines if it contains a numeric value. If X is blank or contains a numeric value, ERR, or NA, @ISNUMBER returns a 1. If X is a label or text, @ISNUMBER returns a 0. @ISNUMBER is usually used with @IF to determine whether an entry is a value.
  1888.  
  1889. Examples
  1890.  
  1891. @ISNUMBER(88) = 1
  1892.  
  1893. @ISNUMBER("88") = 0 (quotes signify a text string)
  1894.  
  1895. @ISNUMBER(9/15/87) = 1
  1896.  
  1897. @ISNUMBER(@ERR) = 1 (ERR and NA are numeric values)
  1898.  
  1899. @ISODD - Odd Number Test
  1900.  
  1901. Syntax
  1902.  
  1903. @ISODD(Number)
  1904.  
  1905.  
  1906.  
  1907. Number    Value to test.
  1908.  
  1909.  
  1910.  
  1911. @ISODD returns 1 (true) if a specified number is odd, 0 (false) if it is even.
  1912.  
  1913. If Number is not an integer, it is truncated.
  1914.  
  1915. If Number is non-numeric, @ISODD returns ERR.
  1916.  
  1917. Examples
  1918.  
  1919. @ISODD(4) = 0
  1920.  
  1921. @ISODD(4.9) = 0
  1922.  
  1923. @ISODD(5) = 1
  1924.  
  1925. @ISODD(-5) = 1
  1926.  
  1927. @ISSTRING - String Test
  1928.  
  1929. Syntax
  1930.  
  1931. @ISSTRING(X)
  1932.  
  1933.  
  1934.  
  1935. X    A cell address or expression.
  1936.  
  1937.  
  1938.  
  1939. @ISSTRING examines X and determines if it contains a label or text string. If X does (even if the string is empty), @ISSTRING returns 1. If X is blank or contains a numeric or date value, @ISSTRING returns 0.
  1940.  
  1941. Usually, @ISSTRING is used to test the contents of a cell. You can test any expression, however. Literal string arguments must be enclosed by double quotes.
  1942.  
  1943. Examples
  1944.  
  1945. @ISSTRING(55) = 0
  1946.  
  1947. @ISSTRING(2/5/88) = 0
  1948.  
  1949. @ISSTRING("Hello, world.") = 1
  1950.  
  1951. @ISSTRING("Hello, "&"world.") = 1
  1952.  
  1953. @ISSTRING("55") = 1
  1954.  
  1955. @ISSTRING(A15) = 1 if A15 contains a label or formula that results in a string, otherwise 0
  1956.  
  1957. @ISSTRING(A15&A16&"!!!") = 1 if A15 and A16 contain labels or formulas that result in strings
  1958.  
  1959. @ISSTRING("") = 1 ("" is an empty string)
  1960.  
  1961. @ISSTRING(@NA) = 0 (NA and ERR are considered numeric values) 
  1962.  
  1963.  
  1964.  
  1965.  
  1966.  
  1967.  
  1968.