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

  1. @N - Numeric Value of Upper Left Cell
  2.  
  3. Syntax
  4.  
  5. @N(Block) 
  6.  
  7.  
  8.  
  9. Block    A cell reference or name.
  10.  
  11.  
  12.  
  13. @N inspects Block and returns the numeric value of the upper left cell. If that cell contains a label or is blank, it returns a 0.
  14.  
  15. This @function is used by other spreadsheet programs to avoid unnecessary ERR values resulting from labels included in calculations. This is unnecessary with Quattro Pro, however, because labels are already considered zero values in calculations. @N is included in Quattro Pro only for compatibility with other products. 
  16.  
  17. @NA - NA Value (Not Available)
  18.  
  19. Syntax
  20.  
  21. @NA
  22.  
  23. @NA returns the special value NA (not available). Formulas that depend on a value entered as @NA return the value NA, unless there is an error, in which case they return ERR. NA is a unique number, not to be confused with the label NA.
  24.  
  25. @NA is used to indicate values not yet available (it will not work with labels). It ensures that formulas relying on information that is not provided do not display inaccurate data.
  26.  
  27. Examples
  28.  
  29.  
  30.  
  31.     A    B    C    D
  32.  
  33. 1    QTR    North    South    West
  34.  
  35. 2    1    $187,681    $151,136    $131,123
  36.  
  37. 3    2    $170,072    NA    $149,181
  38.  
  39. 4                
  40.  
  41. 5    YTD    $357,753    NA    $280,304
  42.  
  43. 6    AVG    $178,877    NA    $140,152
  44.  
  45.  
  46.  
  47. @NA has been entered for the South's Qtr 2 results. As you can see, the NA cascades through to the totals. When the @NA is replaced with a valid value, the totals will immediately reflect the correct figures.
  48.  
  49. @NA = NA
  50.  
  51. @IF(B3=0,@NA,B3) = NA if B3 = 0; otherwise, the value of B3
  52.  
  53. @NBDAY - Next Business Day
  54.  
  55. Syntax
  56.  
  57. @NBDAY(Date, <Holidays>, <Saturday>, <Sunday>)
  58.  
  59.  
  60.  
  61. Date    Number representing a date. See "Using dates and times in Quattro Pro."
  62.  
  63. Holidays    Cells containing dates that are holidays or the date of a single holiday or 0 to indicate no holidays (the default is 0).
  64.  
  65. Saturday    0 to specify that Saturday is not a business day; 1 to specify that Saturday is a business day (the default is 0).
  66.  
  67. Sunday    0 to specify that Sunday is not a business day; 1 to specify that Sunday is a business day (the default is 0).
  68.  
  69.  
  70.  
  71. @NBDAY returns the serial date number of the next business day after Date.
  72.  
  73. Examples
  74.  
  75. @NBDAY(@DATE(93,2,26)) = 34029 (March 1, 1993)
  76.  
  77. @NBDAY(@DATE(93,12,24),A7..C9,0,1) = 34329 (December 26, 1993), assuming that Saturdays and the dates in cells A7..C9 are holidays.
  78.  
  79. @NEGBINOMDIST - Negative Binomial Distribution
  80.  
  81. Syntax
  82.  
  83. @NEGBINOMDIST(Failures, Successes, Prob)
  84.  
  85.  
  86.  
  87. Failures    Number of failures.
  88.  
  89. Successes    Threshold of successes.
  90.  
  91. Prob    Probability of a success; 0 ú Prob ú 1.
  92.  
  93.  
  94.  
  95. @NEGBINOMDIST returns the negative binomial distribution. Use @NEGBINOMDIST to determine the distribution of the number of failures you experience before achieving a specified number of successes.
  96.  
  97. Example
  98.  
  99. A polling organization asks a sampling of voters if they favor Candidate A for reelection. Given that 55% of the city's voters favor Candidate A, this formula calculates the probability that the polling organization will contact 10 voters who do not favor her for reelection before contacting 1 voter who does favor her:
  100.  
  101. @NEGBINOMDIST(10,1,0.55) = 0.000187
  102.  
  103. @NENGO
  104.  
  105. Syntax
  106.  
  107. @NENGO(Date)
  108.  
  109.  
  110.  
  111. Date    The date, comprised of the elements Imperial Year, Month, and Day.
  112.  
  113.  
  114.  
  115. @NENGO converts a date to its kanji representation.
  116.  
  117. @NETPV - Net Present Value
  118.  
  119. Syntax
  120.  
  121. @NETPV(Discrate, Flows, <Initial>, <[Odd|Periods]>, <Simp>, <Pathdep>, <Filter>, <Start>, <End>)
  122.  
  123.  
  124.  
  125. Discrate    Discount rate or cells containing discount rates corresponding to cells of cash flows.
  126.  
  127. Flows    Cells containing cash flows.
  128.  
  129. Initial    Initial cash flow (the default is 0).
  130.  
  131. Odd|Periods    Delay between initial and first cash flow in number of periods (the default is 1) or cells containing lengths of periods between cash flows (the default is 1).
  132.  
  133. Simp    Flag specifying how to discount:
  134.  
  135. 0 = compounded discounting (default)
  136.  
  137. 1 = mixed compounded and simple discounting
  138.  
  139. 2 = simple discounting
  140.  
  141. Pathdep    Flag specifying whether to apply path-dependent compounding to each flow; 0 = no path (default); 1 = path.
  142.  
  143. Filter    Flag specifying filter type: 0 = no filter (default); 1 = cashflow < Start; 2 = cashflow ú Start; 3 = cashflow > Start; 4 = cashflow │ Start; 5 = Start < cashflow < End; 6 = Start ú cashflow ú End. 
  144.  
  145. Start    A starting cash flow amount to compare against individual flows.
  146.  
  147. End    An ending cash flow amount to compare against individual flows.
  148.  
  149.  
  150.  
  151. @NETPV computes the net present value of a stream of cash flows. 
  152.  
  153. Example
  154.  
  155. A firm is considering the purchase of two machines. Machine A requires an initial outlay of $40,000 and produces a cash flow of $23,000 for three years. Machine B requires an outlay of $50,000 and produces a cash flow of $22,000 for four years. The following formulas calculate the net present values of both machines, using the data shown in the next figure and a discount rate of 12%. The results are useful for determining which machine is a better purchase:
  156.  
  157. Machine A: @NETPV(0.12,A13..B14,B12) = $15,242.12
  158.  
  159. Machine B: @NETPV(0.12,C13..D14,D12) = $16,821.69
  160.  
  161.  
  162.  
  163.     A    B    C    D
  164.  
  165. 11    Machine A Income        Machine B Income    
  166.  
  167. 12    Initial    ($40,000)    Initial    ($50,000)
  168.  
  169. 13    3    $23,000    4    $22,000
  170.  
  171.  
  172.  
  173. The net present value of the flows associated with Machine B is greater, so it should be purchased.
  174.  
  175. @NETWORKDAYS - Number of Working Days
  176.  
  177. Syntax
  178.  
  179. @NETWORKDAYS(StartDate, EndDate, <Holidays>, <Weekends>)
  180.  
  181.  
  182.  
  183. StartDate    Date number representing start date. See "Using dates and times in Quattro Pro."
  184.  
  185. EndDate    Date number representing end date.
  186.  
  187. Holidays    Optional cell name or reference containing serial date numbers of holidays to exclude from the calculation.
  188.  
  189. Weekends    Optional argument, in quotation marks, to tell @NETWORKDAYS which days are weekend days. Use 0 through 6 (Monday through Sunday); for example, "45" means Friday and Saturday. The default, if you omit Weekends, is Saturday and Sunday. To specify no weekends, use "7".
  190.  
  191.  
  192.  
  193. @NETWORKDAYS returns the number of working days between StartDate and EndDate, including EndDate in the total, and excluding weekends and holidays. If StartDate and EndDate are two consecutive working days, the result is 1.
  194.  
  195. You cannot use any optional argument without using all the ones preceding it. To specify weekends but not holidays, refer to a blank cell for holidays.
  196.  
  197. Example
  198.  
  199. You want to know how many working days there will be between mid-November, 1996, and the project due date early the next January. Your company holidays are stored in a cell named Holidays, and your weekend days are Saturday and Sunday.
  200.  
  201.  
  202.  
  203.     A
  204.  
  205. 1    35397
  206.  
  207. 2    35398
  208.  
  209. 3    35424
  210.  
  211. 4    35425
  212.  
  213. 5    35426
  214.  
  215. 6    35431
  216.  
  217. 7    35432
  218.  
  219. 8    35433
  220.  
  221.  
  222.  
  223. @NETWORKDAYS(@DATE(96,11,16), @DATE(97,1,5),Holidays) = 27
  224.  
  225. @NOMINAL - Nominal Interest Rate
  226.  
  227. Syntax
  228.  
  229. @NOMINAL(EffectRate, Nper)
  230.  
  231.  
  232.  
  233. EffectRate    Effective interest rate.
  234.  
  235. NperY    Number of compounding periods per year, truncated to an integer.
  236.  
  237.  
  238.  
  239. @NOMINAL calculates the nominal annual interest rate for a specified effective rate and number of compounding periods a year.
  240.  
  241. @NOMINAL is related to @EFFECT in the following way:
  242.  
  243.  
  244.  
  245. where
  246.  
  247.  
  248.  
  249. Rn    nominal rate
  250.  
  251. Re    effective rate
  252.  
  253. Nper    number of compounding periods per year
  254.  
  255.  
  256.  
  257. @NOMINAL returns ERR if either argument is non-numeric, if EffectRate <= 0, or if NperY < 1.
  258.  
  259. Example
  260.  
  261. @NOMINAL(7.3756%,4) = 0.0718 or 7.18%
  262.  
  263. @NORMDIST - Normal Distribution
  264.  
  265. Syntax
  266.  
  267. @NORMDIST(X, Mean, SDev, Cum)
  268.  
  269.  
  270.  
  271. X    Value at which to evaluate function.
  272.  
  273. Mean    Mean of the normal distribution.
  274.  
  275. SDev    Standard deviation of the normal distribution; must be > 0.
  276.  
  277. Cum    1 to return the cumulative normal distribution function; 0 (the default) to return the probability density function.
  278.  
  279.  
  280.  
  281. @NORMDIST computes the normal distribution function. A normal distribution is one that is perfectly symmetrical about its mean, and its spread is determined by the value of the standard deviation. The normal distribution describes many statistical phenomena, including the distribution of population means.
  282.  
  283. @NORMDIST uses this formula to calculate the cumulative normal distribution function:
  284.  
  285.  
  286.  
  287. To calculate the probability mass function for a normal distribution, @NORMDIST uses this formula:
  288.  
  289.  
  290.  
  291. Examples
  292.  
  293. @NORMDIST(50,48,1.2,1) = 0.95221
  294.  
  295. @NORMDIST(50,48,1.2,0) = 0.082898
  296.  
  297. @NORMINV - Inverse of Normal Distribution
  298.  
  299. Syntax
  300.  
  301. @NORMINV(Prob, Mean, SDev)
  302.  
  303.  
  304.  
  305. Prob     Probability corresponding to the normal distribution; 0 < Prob < 1.
  306.  
  307. Mean    Mean of the normal distribution.
  308.  
  309. SDev    Standard deviation of the normal distribution; must be > 0.
  310.  
  311.  
  312.  
  313. @NORMINV returns the inverse of the cumulative normal distribution function.
  314.  
  315. Example
  316.  
  317. @NORMINV(0.95221,48,1.2) = 50
  318.  
  319. @NORMSDIST - Standard Normal Distribution
  320.  
  321. Syntax
  322.  
  323. @NORMSDIST(X)
  324.  
  325.  
  326.  
  327. X    Value at which to evaluate the function.
  328.  
  329.  
  330.  
  331. @NORMSDIST returns the standard normal cumulative distribution function. The standard normal cumulative distribution function has a mean of 0 and a standard deviation of 1.
  332.  
  333. @NORMSDIST uses this formula:
  334.  
  335.  
  336.  
  337. Example
  338.  
  339. @NORMSDIST(1.66667) = 0.95221
  340.  
  341. @NORMSINV - Inverse of Standard Normal Distribution
  342.  
  343. Syntax
  344.  
  345. @NORMSINV(Prob)
  346.  
  347.  
  348.  
  349. Prob    Probability corresponding to the normal distribution; must be > 0 and < 1.
  350.  
  351.  
  352.  
  353. @NORMSINV returns the inverse of the standard normal cumulative distribution function. The standard normal cumulative distribution function has a mean of 0 and a standard deviation of 1.
  354.  
  355. Example
  356.  
  357. @NORMSINV(0.95221) = 1.66667
  358.  
  359. @NOT - Logical Not
  360.  
  361. Syntax
  362.  
  363. @NOT(List)
  364.  
  365.  
  366.  
  367. List    Logical value or expression that can be evaluated to TRUE or FALSE.
  368.  
  369.  
  370.  
  371. @NOT reverses the value of its argument. If Logical is FALSE, @NOT returns TRUE; if Logical is TRUE, @NOT returns FALSE.
  372.  
  373. Use @NOT when you need to make sure a value is not equal to a certain value.
  374.  
  375. Example
  376.  
  377. Enter the following formula in Cell B2 and copy it into Cells B3 through B6. The relative cell address will change as you copy the function, to refer to the cell next to it.
  378.  
  379. @IF(@NOT(A2=100%),"Keep trying","HOORAY!!")
  380.  
  381.  
  382.  
  383.     A    B
  384.  
  385. 1    Grades    
  386.  
  387. 2    87%    Keep trying
  388.  
  389. 3    92%    Keep trying
  390.  
  391. 4    75%    Keep trying
  392.  
  393. 5    98%    Keep trying
  394.  
  395. 6    100%    HOORAY!!
  396.  
  397. @NOW - Current Date and Time
  398.  
  399. Syntax
  400.  
  401. @NOW
  402.  
  403. @NOW returns the serial number corresponding to the current date and time. To display the number as a date or time, right-click the cell, choose Cell Properties, then click Numeric Format.
  404.  
  405. The value generated by @NOW is updated to the current date and time each time you press the Calc key (F9), or perform any operation that recalculates the notebook.
  406.  
  407. The integer part of a date/time serial number pertains to the date; the decimal portion pertains to time. To extract just the date portion, use @INT(@NOW) or @TODAY. To extract just the time portion, use @MOD(@NOW,1).
  408.  
  409. Examples
  410.  
  411. @NOW = 31905.572338 (5/8/87, 1:45 PM)
  412.  
  413. @INT(@NOW) = 31905 (5/8/87)
  414.  
  415. @MOD(@NOW,1) = 0.572338 (1:45 PM)
  416.  
  417. @INT(@MOD(@NOW,7)) = 6 (the number of the day of the week)
  418.  
  419. @NPER - Number of Periods
  420.  
  421. Syntax
  422.  
  423. @NPER(Rate, Pmt, Pv, <Fv>, <Type>)
  424.  
  425.  
  426.  
  427. Rate    A numeric value > -1, representing the periodic interest rate (the fixed interest rate per compounding period).
  428.  
  429. Pmt    A numeric value representing the amount of the periodic payment.
  430.  
  431. Pv    A numeric value representing the current value of an investment (the present value).
  432.  
  433. Fv    A numeric value representing the future value of an investment (the value the investment will reach at some point).
  434.  
  435. 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.
  436.  
  437.  
  438.  
  439. @NPER calculates the number of time periods required for an investment, using an optional argument, Type, to indicate whether the investment is an ordinary annuity or an annuity due. Like @CTERM and @TERM, @NPER computes the number of payments needed to reach Fv, given Pv, Pmt, and Rate. The last two arguments of @NPER, Fv and Type, are optional. If you omit one or both of them, Quattro Pro assumes their values are zero.
  440.  
  441. Be sure to enter a negative number for money that is out of your pocket and a positive number for money that is coming in to you.
  442.  
  443. This @function is not compatible with 1-2-3. If your file must be compatible, use @CTERM or @TERM instead.
  444.  
  445. Examples
  446.  
  447. Assume you have an IRA account that earns 11.5% interest paid annually at the start of the year, and you deposit $2000 into the account at the end of each year. The present account balance is $633. To determine how many payment periods it will take to reach a nest egg of $50,000, use @NPER:
  448.  
  449. @NPER(11.5%,-2000,-633,50000,0) = 12.12
  450.  
  451. The fractional part of the answer is not very meaningful; you cannot be sure of having your nest egg until the end of the 13th year.
  452.  
  453. @NPV - Present Value of Future Cash Flow
  454.  
  455. Syntax
  456.  
  457. @NPV(Rate, Block, <Type>)
  458.  
  459.  
  460.  
  461. Rate    A numeric value > -1, representing the periodic interest rate (the fixed interest rate per compounding period).
  462.  
  463. Block    Cells (reference or name) containing cash flow information for the investment.
  464.  
  465. 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.
  466.  
  467.  
  468.  
  469. @NPV calculates the current value of estimated cash flow values (Block), discounted at the given interest rate (Rate). It is helpful in determining how much an investment is currently worth, based on expected earnings, although its accuracy is entirely dependent on the accuracy of the cash flow table.
  470.  
  471. The optional third argument, Type, can be 0 or 1, depending on whether the cash flows are at the beginning or the end of the period. The default value is 0, end of the period.
  472.  
  473. The formula for @NPV(Rate,Block,Type)--if Block consists of --is given by
  474.  
  475. If Type = 0
  476.  
  477.  
  478.  
  479. If Type = 1
  480.  
  481.  
  482.  
  483. The cash flow table in Block should show expected income and debits over a period of time. If Type is 0, Quattro Pro assumes that the amounts are received at the end of regular intervals. If Type is 1, it assumes the amounts are received at the beginning of regular intervals. Quattro Pro also assumes that the length of this interval is the same as the period on which interest is compounded. In other words, if monthly cash flow is estimated, Rate needs to show monthly interest. To convert annual interest to monthly interest, simply divide by 12.
  484.  
  485. Examples
  486.  
  487.  
  488.  
  489.     A    B    C    D    E
  490.  
  491. 1    1992    1993    1994    1995    1996
  492.  
  493. 2    -5000    +2000    +2000    +2000    +2000
  494.  
  495.  
  496.  
  497. Suppose you are considering investing $5000 this year, and you expect a return of $2000 in each of the next four years. Put the values -5000,+2000,+2000,+2000,+2000 in the cells A2..E2. The net present value, using a discount rate of 10%, is @NPV(.1,A2..E2,1) which equals $1,340. Or, combine the initial investment with the present value of the four returns with +A2+@NPV(.1,B2..E2,0). The result is the same.
  498.  
  499.  
  500.  
  501.     A    B    C    D
  502.  
  503. 1    Jan    8000    200    3500
  504.  
  505. 2    Feb    9000    350    4000
  506.  
  507. 3    Mar    8500    -300    3000
  508.  
  509. 4    Apr    9500    600    5000
  510.  
  511.  
  512.  
  513. @NPV(1.25%,B1..B4) = $33,908.92
  514.  
  515. @NPV(15%/12,C1..C4) = $820.83
  516.  
  517. @NPV(15%/12,D1..D4) = $15,006.51
  518.  
  519. -2000+@NPV(15%/12,D1..D4) = $13,006.51 (assumes an initial cash outflow of $2,000)
  520.  
  521. @NUMTOBIN - Decimal to Binary
  522.  
  523. Syntax
  524.  
  525. @NUMTOBIN(Decimal)
  526.  
  527.  
  528.  
  529. Decimal    Decimal number to convert.
  530.  
  531.  
  532.  
  533. @NUMTOBIN returns the binary string equivalent of a decimal number. To convert a negative number, precede Decimal with a minus sign.
  534.  
  535. Examples
  536.  
  537. @NUMTOBIN(10) = 1010
  538.  
  539. @NUMTOBIN(16) = 10000
  540.  
  541. @NUMTOBIN(30) = 11110
  542.  
  543. @NUMTOBIN64 - Decimal to Binary
  544.  
  545. Syntax
  546.  
  547. @NUMTOBIN64(Decimal, <Places>)
  548.  
  549.  
  550.  
  551. Decimal    Decimal number to convert.
  552.  
  553. Places    Number of characters to return; must be ú 64.
  554.  
  555.  
  556.  
  557. @NUMTOBIN64 returns the binary string equivalent of a decimal number (up to 64 bits).
  558.  
  559. Examples
  560.  
  561. @NUMTOBIN64(10) = 1010
  562.  
  563. @NUMTOBIN64(10,5) = 01010
  564.  
  565. @NUMTOBIN64(123000) = 11110000001111000
  566.  
  567. @NUMTOBIN64(123000,7) = 1111000
  568.  
  569. @NUMTOHEX - Decimal to Hexadecimal
  570.  
  571. Syntax
  572.  
  573. @NUMTOHEX(Decimal) 
  574.  
  575.  
  576.  
  577. Decimal    Decimal number to convert.
  578.  
  579.  
  580.  
  581. @NUMTOHEX converts the decimal number Decimal to its corresponding hexadecimal string value. @HEXTONUM performs the opposite conversion, from hexadecimal to decimal.
  582.  
  583. Examples
  584.  
  585. @NUMTOHEX(10) = 'A
  586.  
  587. @NUMTOHEX(16) = '10
  588.  
  589. @NUMTOHEX(65535) = 'FFFF
  590.  
  591. @NUMTOHEX64 - Decimal to Hexadecimal
  592.  
  593. Syntax
  594.  
  595. @NUMTOHEX64(Decimal, <Places>)
  596.  
  597.  
  598.  
  599. Decimal    Decimal number to convert.
  600.  
  601. Places    Number of characters to return; must be ú 16.
  602.  
  603.  
  604.  
  605. @NUMTOHEX64 returns the hexadecimal string equivalent of a decimal number (up to 64 bits).
  606.  
  607. Examples
  608.  
  609. @NUMTOHEX64(10) = A
  610.  
  611. @NUMTOHEX64(10,2) = 0A
  612.  
  613. @NUMTOHEX64(123000) = 1E078
  614.  
  615. @NUMTOHEX64(1000000000) = 3B9ACA00
  616.  
  617. @NUMTOOCT - Decimal to Octal
  618.  
  619. Syntax
  620.  
  621. @NUMTOOCT(Decimal)
  622.  
  623.  
  624.  
  625. Decimal    Decimal number to convert.
  626.  
  627.  
  628.  
  629. @NUMTOOCT returns the octal string equivalent of a decimal number. To convert a negative number, precede Decimal with a minus sign.
  630.  
  631. Examples
  632.  
  633. @NUMTOOCT(10) = 12
  634.  
  635. @NUMTOOCT(16) = 20
  636.  
  637. @NUMTOOCT(30) = 36
  638.  
  639. @NUMTOOCT64 - Decimal to Octal
  640.  
  641. Syntax
  642.  
  643. @NUMTOOCT64(Decimal, <Places>)
  644.  
  645.  
  646.  
  647. Decimal    Decimal number to convert.
  648.  
  649. Places    Number of characters to return; must be ú 22.
  650.  
  651.  
  652.  
  653. @NUMTOOCT64 returns the octal string equivalent of a decimal number (up to 64 bits).
  654.  
  655. Examples
  656.  
  657. @NUMTOOCT64(8) = 10
  658.  
  659. @NUMTOOCT64(10,3) = 012
  660.  
  661. @NUMTOOCT64(123000) = 360170
  662.  
  663. @NUMTOOCT64(123000,3) = 170
  664.  
  665. @NUMTOOCT64(2^63) = 1000000000000000000000
  666.  
  667. @NWKDAY - Nth Weekday in Month
  668.  
  669. Syntax
  670.  
  671. @NWKDAY(N, Wkday, Month, Year, <AuxWkday>)
  672.  
  673.  
  674.  
  675. N    Number from 1 to 5.
  676.  
  677. Wkday    Number from 1 (Saturday) to 7 (Friday).
  678.  
  679. Month    Number from 1 (January) to 12 (December).
  680.  
  681. Year    Number from 0 (1900) to 199 (2099) or a standard year like 1993.
  682.  
  683. AuxWkday    Auxiliary day of the week that must fall in the same week as Wkday; 0 for no auxiliary day or a number from 1 (Saturday) to 7 (Friday) indicating the auxiliary day (the default is 0).
  684.  
  685.  
  686.  
  687. @NWKDAY returns the serial date number for the date of the Nth occurrence of Wkday in Month. If there is not an Nth occurrence, @NWKDAY returns ERR.
  688.  
  689. See "Using dates and times in Quattro Pro."
  690.  
  691. You can use AuxWkday to specify another day that must fall in the same week and month as Wkdday; see the second example.
  692.  
  693. The valid date calculation range for this function is 01/01/1900 through 12/31/2099.
  694.  
  695. Examples
  696.  
  697. @NWKDAY(2,3,4,99) = 36262 (April 12, 1999), the date of the second Monday in April 1999.
  698.  
  699. @NWKDAY(1,7,12,93,3) = 34313 (December 10, 1993), the first Friday on which both the first Friday and a Monday fall in the same week of December 1993.
  700.  
  701. @OCTTOBIN - Octal to Binary
  702.  
  703. Syntax
  704.  
  705. @OCTTOBIN(Oct)
  706.  
  707.  
  708.  
  709. Oct    Octal number to convert; denote negative numbers using a minus sign.
  710.  
  711.  
  712.  
  713. @OCTTOBIN returns the binary string equivalent of an octal number.
  714.  
  715. Examples
  716.  
  717. @OCTTOBIN("12") = 1010
  718.  
  719. @OCTTOBIN("20") = 10000
  720.  
  721. @OCTTOBIN("36") = 11110
  722.  
  723. @OCTTOHEX - Octal to Hexadecimal
  724.  
  725. Syntax
  726.  
  727. @OCTTOHEX(Oct)
  728.  
  729.  
  730.  
  731. Oct    Octal number to convert; denote negative numbers using a minus sign.
  732.  
  733.  
  734.  
  735. @OCTTOHEX returns the hexadecimal string equivalent of an octal number.
  736.  
  737. Examples
  738.  
  739. @OCTTOHEX("12") = A
  740.  
  741. @OCTTOHEX("20") = 10
  742.  
  743. @OCTTOHEX("36") = 1E
  744.  
  745. @OCTTONUM - Octal to Decimal
  746.  
  747. Syntax
  748.  
  749. @OCTTONUM(Oct)
  750.  
  751.  
  752.  
  753. Oct    Octal number to convert; denote negative numbers using a minus sign.
  754.  
  755.  
  756.  
  757. @OCTTONUM returns the decimal equivalent of an octal number.
  758.  
  759. Examples
  760.  
  761. @OCTTONUM("12") = 10
  762.  
  763. @OCTTONUM("20") = 16
  764.  
  765. @OCTTONUM("36") = 30
  766.  
  767. @ODD - Round Up to Nearest Odd Integer
  768.  
  769. Syntax
  770.  
  771. @ODD(X)
  772.  
  773.  
  774.  
  775. X    Value to round.
  776.  
  777.  
  778.  
  779. @ODD rounds X up (away from zero) to the nearest odd integer. If X is already an odd integer, @ODD returns X.
  780.  
  781. Examples
  782.  
  783. @ODD(3.2) = 5
  784.  
  785. @ODD(3) = 3
  786.  
  787. @ODD(-3.2) = -5
  788.  
  789. @ODDFPRICE - Price of Bond with Odd First Period
  790.  
  791. Syntax
  792.  
  793. @ODDFPRICE(Settle, Maturity, Issue, FirstCpn, Coupon, Yield, <Redemption>, <Freq>, <Calendar>)
  794.  
  795.  
  796.  
  797. Settle    Number representing the settlement date.
  798.  
  799.              Maturity    Number representing the maturity date.
  800.  
  801. Issue    Number representing the issue date.
  802.  
  803. FirstCpn    Number representing the first coupon date.
  804.  
  805. Coupon    Coupon rate; must be │ 0.
  806.  
  807. Yield    Annual yield; 0 < Yield ú 1.
  808.  
  809. Redemption    Redemption value per 100 face value (must be > 0; the default is 100).
  810.  
  811. Freq    Frequency of coupon payments in number of payments per year (can be 1, 2, 3, 4, 6, or 12; the default is 2).
  812.  
  813. Calendar    Flag specifying which calendar to observe (0 = 30/360, 1 = actual/actual, 2 = actual/360, 3 = actual/365; the default is 0).
  814.  
  815.  
  816.  
  817. @ODDFPRICE returns the price per 100 face value of a bond having an odd (short or long) first period. In an odd first coupon period, the first coupon payment is a prorated multiple of a normal coupon payment.
  818.  
  819. Dates for @ODDFPRICE must follow this pattern:
  820.  
  821. Issue < Settle < Maturity
  822.  
  823. Issue < FirstCpn < Maturity
  824.  
  825. Example
  826.  
  827. This formula returns the price per 100 face value of a bond with the following terms: Settle is March 15, 1993, Maturity is November 15, 1995, Issue is January 4, 1992, FirstCpn is May 15, 1993, Coupon is 8.5%, Yield is 8.7%, Redemption is 100, Freq 2, and Calendar is 0 (30/360).
  828.  
  829. @ODDFPRICE(@DATE(93,3,15),@DATE(95,11,15),@DATE(92,1,4),@DATE(93,5,15),0.085, 0.087,100,2,0) = 99.40933
  830.  
  831. @ODDFYIELD - Yield of Bond with Odd First Period
  832.  
  833. Syntax
  834.  
  835. @ODDFYIELD(Settle, Maturity, Issue, FirstCpn, Coupon, Price, <Redemption>, <Freq>, <Calendar>)
  836.  
  837.  
  838.  
  839. Settle    Number representing the settlement date.
  840.  
  841.              Maturity    Number representing the maturity date.
  842.  
  843. Issue    Number representing the issue date.
  844.  
  845. FirstCpn    Number representing the first coupon date.
  846.  
  847. Coupon    Coupon rate; must be │ 0.
  848.  
  849. Price    Price of the security; must be > 0.
  850.  
  851. Redemption    Redemption value per 100 face value (must be > 0; the default is 100).
  852.  
  853. Freq    Frequency of coupon payments in number of payments per year (can be 1, 2, 3, 4, 6, or 12; the default is 2).
  854.  
  855. Calendar    Flag specifying which calendar to observe (0 = 30/360, 1 = actual/actual, 2 = actual/360, 3 = actual/365; the default is 0).
  856.  
  857.  
  858.  
  859. @ODDFYIELD returns the yield of a security having an odd (short or long) first period. In an odd first coupon period, the first coupon payment is a prorated multiple of a normal coupon payment.
  860.  
  861. Dates for @ODDFYIELD must follow this pattern:
  862.  
  863. Issue < Settle < Maturity
  864.  
  865. Issue < FirstCpn < Maturity
  866.  
  867. Example
  868.  
  869. This formula calculates the yield for a security with the following terms: Settle is March 15, 1993, Maturity is November 15, 1995, Issue is January 4, 1992, FirstCpn is May 15, 1993, Coupon is 8.5%, Price is 100, Redemption is 100, Freq is 2, and Calendar is 0 (30/360).
  870.  
  871. @ODDFYIELD(@DATE(93,3,15),@DATE(95,11,15),@DATE(92,1,4),@DATE(93,5,15),0.085, 100,100,2,0) = 0.084487
  872.  
  873. @ODDLPRICE - Price of Bond with Odd Last Period
  874.  
  875. Syntax
  876.  
  877. @ODDLPRICE(Settle, Maturity, LastCpn, Coupon, Yield, <Redemption>, <Freq>, <Calendar>)
  878.  
  879.  
  880.  
  881. Settle    Number representing the settlement date; must be < Maturity.
  882.  
  883. Maturity    Number representing the maturity date.
  884.  
  885. LastCpn    Number representing the last coupon date; must be < Maturity.
  886.  
  887. Coupon    Coupon rate; must be │ 0.
  888.  
  889. Yield    Annual yield; 0 < Yield ú 1.
  890.  
  891. Redemption    Redemption value per 100 face value (must be > 0; the default is 100).
  892.  
  893. Freq    Frequency of coupon payments in number of payments per year (can be 1, 2, 3, 4, 6, or 12; the default is 2).
  894.  
  895. Calendar    Flag specifying which calendar to observe (0 = 30/360, 1 = actual/actual, 2 = actual/360, 3 = actual/365; the default is 0).
  896.  
  897.  
  898.  
  899. @ODDLPRICE returns the price per 100 face value of a bond having an odd (short or long) last period. In an odd last coupon period, the last coupon payment is a prorated multiple of a normal coupon payment.
  900.  
  901. Example
  902.  
  903. This formula calculates the price per 100 face value of a bond with the following terms: Settle is June 1, 1992, Maturity is December 15, 2012, LastCpn is September 15, 2012, Coupon is 7.5%, and Yield is 5.25%.
  904.  
  905. @ODDLPRICE(@DATE(92,6,1),@DATE(112,12,15),@DATE(112,9,15), 0.075,0.0525) = 128.0663
  906.  
  907. @ODDLYIELD - Yield of Bond with Odd Last Period
  908.  
  909. Syntax
  910.  
  911. @ODDLYIELD(Settle, Maturity, LastCpn, Coupon, Price, <Redemption>, <Freq>, <Calendar>)
  912.  
  913.  
  914.  
  915. Settle    Number representing the settlement date; must be < Maturity.
  916.  
  917. Maturity    Number representing the maturity date.
  918.  
  919. LastCpn    Number representing the last coupon date; must be < Maturity.
  920.  
  921. Coupon    Coupon rate; must be │ 0.
  922.  
  923. Price    Price; must be > 0.
  924.  
  925. Redemption    Redemption value per 100 face value (must be > 0; the default is 10 0).
  926.  
  927. Freq    Frequency of coupon payments in number of payments per year (can be 1, 2, 3, 4, 6, or 12; the default is 2).
  928.  
  929. Calendar    Flag specifying which calendar to observe (0 = 30/360, 1 = actual/actual, 2 = actual/360, 3 = actual/365; the default is 0).
  930.  
  931.  
  932.  
  933. @ODDLYIELD returns the yield of a bond having an odd (short or long) last period. In an odd last coupon period, the last coupon payment is a prorated multiple of a normal coupon payment.
  934.  
  935. Example
  936.  
  937. This formula calculates the yield of a bond with the following terms: Settle is June 1, 1992, Maturity is December 15, 2012, LastCpn is September 15, 2012, Coupon is 7.5%, and Price is 128.0663.
  938.  
  939. @ODDLYIELD(@DATE(92,6,1),@DATE(112,12,15),@DATE(112,9,15),0.075, 128.0663) = 0.0525
  940.  
  941. @OFFSET - Offset Reference
  942.  
  943. Syntax
  944.  
  945. @OFFSET(Reference, Rows, Cols, <Height>, <Width>)
  946.  
  947.  
  948.  
  949. Reference    Reference on which you want to base the offset; cannot refer to non-contiguous areas.
  950.  
  951. Rows    Number of rows from Reference you want the offset to refer to. If Rows = 5, the upper left cell in the offset is five rows below the upper left cell in Reference. Negative Rows are above, positive are below.
  952.  
  953. Cols    Number of columns from Reference you want the offset to refer to. If Cols =  5, the upper left cell in the offset is five columns to the right of the upper left cell in Reference. Negative Cols  are to the left, positive are to the right.
  954.  
  955. Height    Height (optional) of the returned offset, in rows. Height must be a positive number. If omitted, Height is the same height as Reference.
  956.  
  957. Width    Width (optional) of the returned offset, in columns. Width must be a positive number. If omitted, Width is the same width as Reference.
  958.  
  959.  
  960.  
  961. @OFFSET returns a reference that is offset from another reference by a specified number of rows and columns; dimensions of the offset can also be specified. The upper left cell of the returned reference is offset from the upper left cell of Reference by the number of Cols and Rows you specify.
  962.  
  963. @OFFSET does not actually move cells or change the selection; it just returns a reference. Use @OFFSET with any function that expects a reference argument.
  964.  
  965. If Reference is a selection and you do not specify Height = 1 and Width = 1, you must select a selection of the appropriate size to display the result before entering @OFFSET as an array.
  966.  
  967. @OFFSET returns ERR if Rows and Cols offset Reference over the edge of the notebook sheet.
  968.  
  969. Examples
  970.  
  971. The notebook EXPENSES.QPW contains the following cells:
  972.  
  973.  
  974.  
  975.     A    B    C
  976.  
  977. 1    January    February    March
  978.  
  979. 2    $652    $833    $599
  980.  
  981. 3    $456    $305    $522
  982.  
  983. 4    $68    $59    $73
  984.  
  985.  
  986.  
  987. @OFFSET(A1,2,1,1,1) = [EXPENSES.qpw]A:B3..B3
  988.  
  989. @OFFSET(A1..C1,3,0,1,3) = [EXPENSES.qpw]A:A4..C4
  990.  
  991. @OR - Logical Or
  992.  
  993. Syntax
  994.  
  995. @OR(List)
  996.  
  997.  
  998.  
  999. List    True-or-false conditions to test.
  1000.  
  1001.  
  1002.  
  1003. @OR returns 1 (true) if any argument is true, 0 (false) only if all arguments are false.
  1004.  
  1005. Arguments must be logical values, or references or arrays that contain logical values.
  1006.  
  1007. @OR ignores text or empty cells.
  1008.  
  1009. You can use an @OR array formula to see if a certain value occurs in a list of cells.
  1010.  
  1011. Examples
  1012.  
  1013. Given the following data:
  1014.  
  1015.  
  1016.  
  1017.     A    B
  1018.  
  1019. 1    $2    $101
  1020.  
  1021. 2    $50    $115
  1022.  
  1023. 3    $127    $130
  1024.  
  1025.  
  1026.  
  1027. @OR(A1>10,A2>10,A3>10) = 1 (true)
  1028.  
  1029. @OR(A1>200,A2>200,A3>200) = 0 (false)
  1030.  
  1031. 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.
  1032.  
  1033. Suppose a $5 service charge is deducted if the daily account balance falls below the $100 minimum. Use @OR to test the true-or-false conditions in A4..A6 and B4..B6, and @IF to subtract $5 or not, depending on the results:
  1034.  
  1035. For account A, @IF(@OR(A4..A6), "$5","$0") = $5
  1036.  
  1037. For account B, @IF(@OR(B4..B6), "$5","$0") = $0 (no service charge)
  1038.  
  1039. @ORB - Binary OR
  1040.  
  1041. Syntax
  1042.  
  1043. @ORB(Binary1, <Binary2>, <Bits>)
  1044.  
  1045.  
  1046.  
  1047. Binary1    First binary number.
  1048.  
  1049. Binary2    Second binary number.
  1050.  
  1051. 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.
  1052.  
  1053.  
  1054.  
  1055. @ORB performs a bit-by-bit logical OR of each bit in Binary1 and Binary2. Any bit that is set to 1 in either Binary1 or Binary2 causes the resulting output bit to be set to 1.
  1056.  
  1057. If only one number is specified, then @ORB performs an any-ones test, or OR reduction, on Binary1; @ORB returns 1 if any bits in Binary1 are set to 1; otherwise, it returns 0.
  1058.  
  1059. Examples
  1060.  
  1061. @ORB(10,1) = 11
  1062.  
  1063. @ORB(10,10) = 10
  1064.  
  1065. @ORB(10) = 1
  1066.  
  1067. @ORB(1100,1,5) = 01101
  1068.  
  1069. @ORH - Hexadecimal OR
  1070.  
  1071. Syntax
  1072.  
  1073. @ORH(Hex1, <Hex2>, <Bits>)
  1074.  
  1075.  
  1076.  
  1077. Hex1    First hexadecimal number.
  1078.  
  1079. Hex2    Second hexadecimal number.
  1080.  
  1081. 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.
  1082.  
  1083.  
  1084.  
  1085. @ORH performs a bit-by-bit logical OR of each bit in Hex1 and Hex2. Any binary bit that is set to 1 in either Hex1 or Hex2 causes the resulting output bit to be set to 1.
  1086.  
  1087. If only one number is specified, then @ORH performs an any-ones test, or OR reduction, on Hex1; @ORH returns 1 if any bits in Hex1 are set to 1; otherwise, it returns 0.
  1088.  
  1089. Examples
  1090.  
  1091. @ORH("A","F") = F
  1092.  
  1093. @ORH("A") = 1
  1094.  
  1095. @ORH("C","1",8) = 0D
  1096.  
  1097. @PAGEINDEX - Index Number for Notebook Sheet
  1098.  
  1099. Syntax
  1100.  
  1101. @PAGEINDEX(Name)
  1102.  
  1103.  
  1104.  
  1105. Name    A string corresponding to the name of a sheet; must be enclosed in quotation marks.
  1106.  
  1107.  
  1108.  
  1109. @PAGEINDEX returns the index number (from 0 to 255) for a specified sheet name. If no sheet names match the string Name, @PAGEINDEX returns ERR.
  1110.  
  1111. To return the index number for a sheet in another notebook, use @PAGEINDEX2.
  1112.  
  1113. Example
  1114.  
  1115. @PAGEINDEX("EXPENSES") = 0 (the index number for the sheet named EXPENSES is 0)
  1116.  
  1117. @PAGEINDEX2 - Index Number for Sheet in Another Notebook
  1118.  
  1119. Syntax
  1120.  
  1121. @PAGEINDEX2(NotebookLink, Name)
  1122.  
  1123.  
  1124.  
  1125. NotebookLink    A reference to a sheet, cell, or cells in another notebook (for example, [BUDGET]A:A1).
  1126.  
  1127. Name    A string corresponding to the name of a sheet; must be enclosed in quotation marks.
  1128.  
  1129.  
  1130.  
  1131. @PAGEINDEX2 returns the index number (from 0 to 255) for a specified sheet name in a notebook specified by NotebookLink. If no sheet names match the string Name, @PAGEINDEX2 returns ERR.
  1132.  
  1133. Example
  1134.  
  1135. @PAGEINDEX2([BUDGET]A:A1,"EXPENSES") = 0 (the index number for the sheet named EXPENSES in notebook BUDGET is 0)
  1136.  
  1137. @PAGENAME - Name of a Notebook Sheet
  1138.  
  1139. Syntax
  1140.  
  1141. @PAGENAME(Index)
  1142.  
  1143.  
  1144.  
  1145. Index    A number from 0 to 255 inclusive.
  1146.  
  1147.  
  1148.  
  1149. @PAGENAME returns the name of a sheet specified by Index. If there is not a name for the specified sheet, @PAGENAME returns ERR.
  1150.  
  1151. To return a sheet name from another notebook, use @PAGENAME2.
  1152.  
  1153. Example
  1154.  
  1155. @PAGENAME(3) = EXPENSES (the sheet with index number 3 is named EXPENSES)
  1156.  
  1157. @PAGENAME2 - Name of Sheet in Another Notebook
  1158.  
  1159. Syntax
  1160.  
  1161. @PAGENAME2(NotebookLink, Index)
  1162.  
  1163.  
  1164.  
  1165. NotebookLink    A reference to a sheet, cell, or cells in another notebook (for example, [BUDGET]A:A1).
  1166.  
  1167. Index    A number from 0 to 255 inclusive.
  1168.  
  1169.  
  1170.  
  1171. @PAGENAME2 returns the name of a sheet specified by Index in a notebook specified by NotebookLink. If there is not a name for the specified sheet, @PAGENAME2 returns ERR.
  1172.  
  1173. Example
  1174.  
  1175. @PAGENAME2([BUDGET]A:A1,3) = EXPENSES (the sheet with index number 3 in notebook BUDGET is named EXPENSES)
  1176.  
  1177. @PAGENAMES - Table of Sheet Names
  1178.  
  1179. Syntax
  1180.  
  1181. @PAGENAMES(<ExcludedNames>)
  1182.  
  1183.  
  1184.  
  1185. ExcludedNames    A optional argument specifying sheet names to exclude from the table; enclose each sheet name in quotation marks, and separate sheet names with a comma.
  1186.  
  1187.  
  1188.  
  1189. @PAGENAMES returns a two-column table showing the sheet letters and corresponding sheet names for the active notebook. The left column of the table contains sheet letters (from A to IV), and the right column contains corresponding sheet names.
  1190.  
  1191. Because @PAGENAMES returns an array, it is automatically enclosed within an @ARRAY @function.
  1192.  
  1193. If the active notebook does not have any named sheets, @PAGENAMES returns ERR.
  1194.  
  1195. Make sure there is enough room for a two-column table, with one row for each sheet name. Quattro Pro overwrites existing data in cells it uses for the table.
  1196.  
  1197. To return sheet names for another notebook, use @PAGENAMES2.
  1198.  
  1199. Example
  1200.  
  1201. The active notebook consists of five named sheets, Qtr1, Qtr2, Qtr3, Qtr4, and Totals, whose sheet letters are A, B, C, D, and E, respectively.
  1202.  
  1203. @ARRAY(@PAGENAMES) = table in A1..B5 shown in the next figure
  1204.  
  1205.  
  1206.  
  1207.     A    B
  1208.  
  1209. 1    A    Qtr1
  1210.  
  1211. 2    B    Qtr2
  1212.  
  1213. 3    C    Qtr3
  1214.  
  1215. 4    D    Qtr4
  1216.  
  1217. 5    E    Totals
  1218.  
  1219. @PAGENAMES2 - Table of Sheet Names in Another Notebook
  1220.  
  1221. Syntax
  1222.  
  1223. @PAGENAMES2(NotebookLink, <ExcludedNames>)
  1224.  
  1225.  
  1226.  
  1227. NotebookLink    A reference to a sheet, cell, or cells in another notebook (for example, [BUDGET]A:A1).
  1228.  
  1229. ExcludedNames    A optional argument specifying sheet names to exclude from the table; enclose each sheet name in quotation marks, and separate sheet names with a comma.
  1230.  
  1231.  
  1232.  
  1233. @PAGENAMES2 returns a two-column table showing the sheet letters and corresponding sheet names for the notebook specified by NotebookLink. The left column of the table contains sheet letters (from A to IV), and the right column contains corresponding sheet names.
  1234.  
  1235. Because @PAGENAMES2 returns an array, it is automatically enclosed within an @ARRAY @function.
  1236.  
  1237. If the active notebook does not have any named sheets, @PAGENAMES2 returns ERR.
  1238.  
  1239. Make sure there is enough room for a two-column table, with one row for each sheet name. Quattro Pro overwrites existing data in cells it uses for the table.
  1240.  
  1241. Example
  1242.  
  1243. A notebook named BUDGET consists of five named sheets, Qtr1, Qtr2, Qtr3, Qtr4, and Totals, whose sheet letters are A, B, C, D, and E, respectively.
  1244.  
  1245. @ARRAY(@PAGENAMES2([BUDGET]F:A1)) = table in A1..B5 shown in the next figure
  1246.  
  1247.  
  1248.  
  1249.     A    B
  1250.  
  1251. 1    A    Qtr1
  1252.  
  1253. 2    B    Qtr2
  1254.  
  1255. 3    C    Qtr3
  1256.  
  1257. 4    D    Qtr4
  1258.  
  1259.  5    E    Totals
  1260.  
  1261. @PBDAY - Prior Business Day
  1262.  
  1263. Syntax
  1264.  
  1265. @PBDAY(Date, <Holidays>, <Saturday>, <Sunday>)
  1266.  
  1267.  
  1268.  
  1269. Date    Number representing a date. See "Using dates and times in Quattro Pro."
  1270.  
  1271. Holidays    Cells containing dates that are holidays or the date of a single holiday or 0 to indicate no holidays (the default is 0).
  1272.  
  1273. Saturday    0 to specify that Saturday is not a business day; 1 to specify that Saturday is a business day (the default is 0).
  1274.  
  1275. Sunday    0 to specify that Sunday is not a business day; 1 to specify that Sunday is a business day (the default is 0).
  1276.  
  1277.  
  1278.  
  1279. @PBDAY returns the serial date number of the first business day before Date.
  1280.  
  1281. Examples
  1282.  
  1283. @PBDAY(@DATE(93,3,1)) = 34026 (February 26, 1993)
  1284.  
  1285. @PBDAY(@DATE(93,12,26),A7..C9,0,1) = 34325 (December 22, 1993), assuming that Saturdays and the dates in the cells A7..C9 are holidays.
  1286.  
  1287. @PAYMT - Amortized Payment
  1288.  
  1289. Syntax
  1290.  
  1291. @PAYMT(Rate, Nper, Pv, <Fv>, <Type>)
  1292.  
  1293.  
  1294.  
  1295. Rate    A numeric value > -1, representing the periodic interest rate (the fixed interest rate per compounding period).
  1296.  
  1297. 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).
  1298.  
  1299. Pv    A numeric value representing the amount borrowed (the principal).
  1300.  
  1301. Fv    A numeric value representing the future value of an investment (the value the investment will reach at some point).
  1302.  
  1303. 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.
  1304.  
  1305.  
  1306.  
  1307. @PAYMT calculates the periodic payment needed to reach Fv, given Rate, Nper, and Pv. The last two arguments of @PAYMT, Fv and Type, are optional. If you omit the last one or both of them, Quattro Pro assumes that their values are zero. Enter negative numbers for out-of-pocket money and positive numbers for money coming in.
  1308.  
  1309. Related @function @PMT is not as flexible, but can be used if your file must be compatible with 1-2-3.
  1310.  
  1311. Examples
  1312.  
  1313. Assume you want to take out a 30-year $175,000 mortgage with a 17.5% annual interest rate with 12 payments a year, and you would like to see the difference in your monthly payments if you paid at the start or at the end of the month. All you have to do is enter these two @functions:
  1314.  
  1315. @PAYMT(17.5%/12,12*30,175000,0,0) = -2566.07
  1316.  
  1317. @PAYMT(17.5%/12,12*30,175000,0,1) = -2529.19
  1318.  
  1319. If, on the other hand, your mortgage has a "balloon payment" that leaves you with unpaid principal at the end of the mortgage, you can still calculate the payment. Just insert the balloon payment amount (say, $80,000) as the future value component:
  1320.  
  1321. @PAYMT(17.5%/12,12*30,175000,-80000,0) = -2559.68
  1322.  
  1323. @PEARSON - Correlation
  1324.  
  1325. Syntax
  1326.  
  1327. @PEARSON(Array1, Array2) 
  1328.  
  1329.  
  1330.  
  1331. Array1    Array of independent values.
  1332.  
  1333. Array2    Array of dependent values.
  1334.  
  1335.  
  1336.  
  1337. @PEARSON returns the Pearson product moment correlation coefficient, which measures the linear association of two data sets. Array1 and Array2 must have the same number of values. @PEARSON uses this formula:
  1338.  
  1339.  
  1340.  
  1341. A value of r near or equal to 0 implies little or no linear relationship exists between the two lists of numbers. A value of r near or equal to 1 or -1 indicates a very strong linear relationship.
  1342.  
  1343. Example
  1344.  
  1345. This example refers to cells in the next figure.
  1346.  
  1347. @PEARSON(B2..B16,C2..C16) = 0.989324
  1348.  
  1349.  
  1350.  
  1351.     A    B    C
  1352.  
  1353. 1    Date    Advertising    Sales
  1354.  
  1355. 2    04/30/93    $435    $7,000
  1356.  
  1357. 3    05/07/93    $400    $6,000
  1358.  
  1359. 4    05/14/93    $505    $7,767
  1360.  
  1361. 5    05/21/93    $470    $7,800
  1362.  
  1363. 6    05/28/93    $610    $9,534
  1364.  
  1365. 7    06/04/93    $540    $7,750
  1366.  
  1367. 8    06/11/93    $575    $8,945
  1368.  
  1369. 9    06/18/93    $715    $11,301
  1370.  
  1371. 10    06/25/93    $645    $9,465
  1372.  
  1373. 11    07/02/93    $680    $10,760
  1374.  
  1375. 12    07/09/93    $785    $13,000
  1376.  
  1377. 13    07/16/93    $750    $11,890
  1378.  
  1379. 14    07/23/93    $855    $12,980
  1380.  
  1381. 15    07/30/93    $820    $13,068
  1382.  
  1383. 16    08/06/93    $890    $14,246
  1384.  
  1385. @PERCENTILE - Percentile
  1386.  
  1387. Syntax
  1388.  
  1389. @PERCENTILE(Array, X)
  1390.  
  1391.  
  1392.  
  1393. Array    A numeric array or cells of values.
  1394.  
  1395. X    A percentile value between 0 and 1, inclusive.
  1396.  
  1397.  
  1398.  
  1399. @PERCENTILE returns a number from Array at the percentile indicated by X.
  1400.  
  1401. Examples
  1402.  
  1403. @PERCENTILE({4,5,7,9,10,12,13,16},0) = 4
  1404.  
  1405. @PERCENTILE({4,5,7,9,10,12,13,16},0.25) = 6.5
  1406.  
  1407. @PERCENTILE({4,5,7,9,10,12,13,16},0.50) = 9.5
  1408.  
  1409. @PERCENTILE({4,5,7,9,10,12,13,16},0.75) = 12.25
  1410.  
  1411. @PERCENTILE({4,5,7,9,10,12,13,16},1) = 16
  1412.  
  1413. The examples above return values from percentile increments of 0.25, which are equal to quartiles. See @QUARTILE.
  1414.  
  1415. @PERCENTRANK - Percentage Rank
  1416.  
  1417. Syntax
  1418.  
  1419. @PERCENTRANK(Array, X, <Digits>)
  1420.  
  1421.  
  1422.  
  1423. Array    A numeric array or cells of values.
  1424.  
  1425. X    Number to rank in Array; if X does not match a value in Array, @PERCENTRANK interpolates to return a percentage rank.
  1426.  
  1427. Digits    Number of significant digits for returned percentage value; must be │ 1 (the default is 3).
  1428.  
  1429.  
  1430.  
  1431. @PERCENTRANK returns the percentage rank of X in Array. Use @PERCENTRANK to see where a value stands within a list of values based on a percentage.
  1432.  
  1433. Example
  1434.  
  1435. This example refers to cells in the next figure. This formula returns the rank of a student's score among the scores of all test takers in the cells A2..A11, where the student's score is in A4:
  1436.  
  1437. @PERCENTRANK(A2..A11,A4,3) = 0.222
  1438.  
  1439. @PERCENTRANK sample data
  1440.  
  1441.  
  1442.  
  1443.     A
  1444.  
  1445. 1    Test Scores
  1446.  
  1447. 2    78
  1448.  
  1449. 3    80
  1450.  
  1451. 4    85
  1452.  
  1453. 5    85
  1454.  
  1455. 6    86
  1456.  
  1457. 7    87
  1458.  
  1459. 8    91
  1460.  
  1461. 9    92
  1462.  
  1463. 10    95
  1464.  
  1465. 11    98
  1466.  
  1467. @PERMUT - Permutations
  1468.  
  1469. Syntax
  1470.  
  1471. @PERMUT(N, R)
  1472.  
  1473.  
  1474.  
  1475. N    Number of different objects; n │ 0.
  1476.  
  1477. R    Number of objects taken at a time; R ú N.
  1478.  
  1479.  
  1480.  
  1481. @PERMUT returns the total number of arrangements of objects taken R at a time from a set of N objects. The formula @PERMUT uses is:
  1482.  
  1483.  
  1484.  
  1485. @PERMUT is similar to @COMB except that it takes into account the order that objects are selected.
  1486.  
  1487. Example
  1488.  
  1489. Given 11 different colored marbles, this formula calculates how many different ways an ordered subset of five marbles can be constructed such that no two constructions contain the same five marbles in the same order. (Different constructions can contain the same five marbles, but they cannot share the same ordering.)
  1490.  
  1491. @PERMUT(11,5) = 55,440
  1492.  
  1493. @PI
  1494.  
  1495. Syntax
  1496.  
  1497. @PI
  1498.  
  1499. @PI returns the value of pi (3.141592653589794...), the classic ratio of a circle's circumference to its diameter.
  1500.  
  1501. To figure the area of a circle, given the radius in cell A1, enter this formula:
  1502.  
  1503. @PI*A1^2
  1504.  
  1505. Examples
  1506.  
  1507. @PI*13 = 40.84 (circumference of circle with a diameter of 13) 
  1508.  
  1509. @PI*(7.5)^2 = 176.7146 (area of circle with a radius of 7.5) 
  1510.  
  1511. @PI*B3 = the circumference of a circle whose diameter is in B3
  1512.  
  1513. @PIRATE - Internal Rate of Return
  1514.  
  1515. Syntax
  1516.  
  1517. @PIRATE(Npv, Flows, <Initial>, <[Odd|Periods]>, <Simp>, <Pathdep>, <Guess>, <Precision>, <Maxiter>, <Filter>, <Start>, <End>)
  1518.  
  1519.  
  1520.  
  1521. Npv    Net present value.
  1522.  
  1523. Flows    Cells containing cash flows.
  1524.  
  1525. Initial    Initial cash flow (the default is 0).
  1526.  
  1527. Odd|Periods     Delay between initial and first cash flow, in number of periods (the default is 1) or cells containing lengths of periods between cash flows (the default is 1).
  1528.  
  1529. Simp    Flag specifying how to discount:
  1530.  
  1531. 0 = compounded discounting (default)
  1532.  
  1533. 1 = mixed compounded and simple discounting
  1534.  
  1535. 2 = simple discounting
  1536.  
  1537. Pathdep    Flag specifying whether to apply path-dependent compounding to each flow; 0 = no path (default); 1 = path.
  1538.  
  1539. Guess    IRR guess for numerical search (useful for locating multiple roots); must be > -100%; the default is 0.10.
  1540.  
  1541. Precision    Minimum required precision; Precision > 0; the default is 0.000001.
  1542.  
  1543. Maxiter    Maximum number of iterations for search; Maxiter > 0; the default is 50.
  1544.  
  1545. Filter    Flag specifying filter type: 0 = no filter (default); 1 = cashflow < Start; 2 = cashflow ú Start; 3 = cashflow > Start; 4 = cashflow │ Start; 5 = Start < cashflow < End; 6 = Start ú cashflow ú End.
  1546.  
  1547. Start    A starting cash flow amount to compare against individual flows.
  1548.  
  1549. End    An ending cash flow amount to compare against individual flows.
  1550.  
  1551.  
  1552.  
  1553. @PIRATE computes the internal rate of return for a stream of cash flows. It is similar to @IRR, but @PIRATE accommodates more complex cash flow structures.
  1554.  
  1555. The initial Guess for the discount rate is 10%. For some cash flow streams, particularly those with both positive and negative flows, multiple solutions are possible. By specifying a different Guess, it is possible to locate other solutions. If no solution exists, @PIRATE returns ERR.
  1556.  
  1557. The default value of Precision is 0.000001; smaller values need more search iterations and may require a larger value for Maxiter, which specifies the maximum number of iterations to use when attempting to find a solution. If the net present value of the cash flows does not converge within Precision to the target value specified by Npv (within Maxiter iterations), @PIRATE returns ERR.
  1558.  
  1559. Example
  1560.  
  1561. In the next figure, the stream consists of four flows, specified in cells A12..A15. The time lengths of the periods preceding each flow are specified in cells C12..C15. The Npv is $98.34. This formula calculates the internal rate of return, assuming compounded interest:
  1562.  
  1563. @PIRATE(B17,A12..A15,0,C12..C15) = 0.050041
  1564.  
  1565.  
  1566.  
  1567.     A    B    C
  1568.  
  1569. 11    Cash Flows        Periods
  1570.  
  1571. 12    $4.50        0.3455
  1572.  
  1573. 13    $4.50        1.2
  1574.  
  1575. 14    $4.50        1
  1576.  
  1577. 15    $104.50        1.5
  1578.  
  1579. 16            
  1580.  
  1581. 17    npv    $98.34    
  1582.  
  1583. @PMT - Amortized Payment
  1584.  
  1585. Syntax
  1586.  
  1587. @PMT(Pv, Rate, Nper)
  1588.  
  1589.  
  1590.  
  1591. Pv    A numeric value representing the amount borrowed (the principal).
  1592.  
  1593. Rate    A numeric value > -1, representing the periodic interest rate (the fixed interest rate per compounding period).
  1594.  
  1595. 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).
  1596.  
  1597.  
  1598.  
  1599. @PMT calculates the fully amortized periodic payment needed to repay a loan with a principal of Pv dollars at Rate percent per period over Nper periods. It assumes that interest is paid at the end of each period and the investment is an ordinary annuity (not an annuity due).
  1600.  
  1601. @PMT uses this formula:
  1602.  
  1603.  
  1604.  
  1605. where
  1606.  
  1607.  
  1608.  
  1609. P    principal
  1610.  
  1611. R    periodic interest rate
  1612.  
  1613. N    number of periods
  1614.  
  1615.  
  1616.  
  1617. An equivalent for this formula using @PAYMT is
  1618.  
  1619. @PAYMT(Rate, Nper, - Pv, 0)
  1620.  
  1621. You can enter the value for Rate as a percent or a decimal; for example, 9.5% or .095. The amount you specify for Rate must correlate with the unit used for Nper. In other words, if payments are made and interest calculated annually, the amount entered for Nper must represent years. If monthly, Nper must represent the number of months the loan covers. To calculate monthly payments using an annual interest rate, divide the interest rate by 12.
  1622.  
  1623. @PMT assumes that the investment is an ordinary annuity. Related @functions @PAYMT, @IPAYMT, and @PPAYMT let you use an optional argument, Type, to indicate whether the investment is an ordinary annuity or an annuity due. @PMTC calculates payments based on semi-annual compounding.
  1624.  
  1625. Examples
  1626.  
  1627. To calculate a monthly payment (paid on the last day of the month) for a three-year loan of $10,000 at an annual 15% interest rate, enter
  1628.  
  1629. @PMT(10000,15%/12,3*12) = $346.65
  1630.  
  1631. You can also use @PAYMT to figure this payment (the negative result means the money is out of your pocket):
  1632.  
  1633. PAYMT(15%/12,3*12,10000,0,0) = $-346.65
  1634.  
  1635. Other examples:
  1636.  
  1637. @PMT(1000,0.12,5) = $277.41 
  1638.  
  1639. @PMT(500,0.16,12) = $96.21 
  1640.  
  1641. @PMT(5000,16%/12,12) = $453.65 
  1642.  
  1643. @PMT(12000,0.11,15) = $1,668.78
  1644.  
  1645. @PMT(10000,15%/12,36) calculates a monthly payment for a three-year loan of $10,000 at an annual 15% interest rate
  1646.  
  1647. @PMTC - Monthly Loan Payment
  1648.  
  1649. Syntax
  1650.  
  1651. @PMTC(Pv,Rate,Nper)
  1652.  
  1653.  
  1654.  
  1655. Pv    A numeric value representing the amount borrowed (the principal).
  1656.  
  1657. Rate    A numeric value > -1, representing the yearly interest rate (the fixed interest rate per compounding period).
  1658.  
  1659. Nper    A numeric value > 0, representing the number of months of the loan (the number of payments to be made).
  1660.  
  1661.  
  1662.  
  1663. @PMTC calculates the monthly loan payments according to Canadian mortgage conventions.
  1664.  
  1665. @PMTC uses this formula:
  1666.  
  1667. P*((R/12) / (1-(1+(R/12))^-(N*12)))
  1668.  
  1669. where
  1670.  
  1671.  
  1672.  
  1673. P    principal
  1674.  
  1675. R    yearly interest rate
  1676.  
  1677. N    number of months
  1678.  
  1679.  
  1680.  
  1681. Example
  1682.  
  1683. @PMTC(10000,15%,36) = 344.46
  1684.  
  1685. @POISSON - Poisson Probability Distribution
  1686.  
  1687. Syntax
  1688.  
  1689. @POISSON(N, Mean, Cum)
  1690.  
  1691.  
  1692.  
  1693. N    Number of events; must be │ 0.
  1694.  
  1695. Mean    Expected numeric value for the mean over the distribution; must be > 0.
  1696.  
  1697. Cum    1 to return the cumulative Poisson probability distribution that the number of random events will be in the range from zero to N; 0 to return the Poisson probability mass function that the number of events will be N.
  1698.  
  1699.  
  1700.  
  1701. @POISSON returns the Poisson probability distribution, that is, the probability that N number of events will occur over a specified time period. The Poisson distribution function uses this formula:
  1702.  
  1703.  
  1704.  
  1705. with
  1706.  
  1707. r │ 0
  1708.  
  1709. Example
  1710.  
  1711. On average, Company Z receives 30 customer service phone calls per hour. What is the probability that Company Z will receive 35 calls in one hour?
  1712.  
  1713. @POISSON(35,30,0) = 0.045308
  1714.  
  1715. @POWER - Number Raised to a Power
  1716.  
  1717. Syntax
  1718.  
  1719. @POWER(Num, Power)
  1720.  
  1721.  
  1722.  
  1723. Num    Number (base) to be raised to a power; can be any real number.
  1724.  
  1725. Power    Power (exponent), to which Num is to be raised.
  1726.  
  1727.  
  1728.  
  1729. @POWER calculates the result of a specified number raised to a power.
  1730.  
  1731. Examples
  1732.  
  1733. @POWER(4,3) = 64
  1734.  
  1735. @POWER(3.14159,2) = 9.8695877
  1736.  
  1737. @POWER(2,1/2) = 1.4142136
  1738.  
  1739. @PPAYMT - Principal Portion of Payment
  1740.  
  1741. Syntax
  1742.  
  1743. @PPAYMT(Rate, Per, Nper, Pv, <Fv>, <Type>)
  1744.  
  1745.  
  1746.  
  1747. Rate    A numeric value > -1, representing the periodic interest rate (the fixed interest rate per compounding period).
  1748.  
  1749. Per    The number of the loan period for which the principal is desired (where Nper is the total number of periods).
  1750.  
  1751. 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).
  1752.  
  1753. Pv    A numeric value representing the amount borrowed (the principal).
  1754.  
  1755. Fv    A numeric value representing the future value of an investment (the value the investment will reach at some point).
  1756.  
  1757. 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.
  1758.  
  1759.  
  1760.  
  1761. @PPAYMT calculates the amount of a particular payment that is going toward the loan principal or investment Pv and is not interest.
  1762.  
  1763. @IPAYMT gives the part of the payment which is interest; @PAYMT calculates the total payment for each period.
  1764.  
  1765. Examples
  1766.  
  1767. Assume you are two years into a 30-year, 10% mortgage on a $100,000 loan. To determine what portion of this month's payment is principal, enter
  1768.  
  1769. @PPAYMT(.1/12,2*12,30*12,100000) = $-53.54
  1770.  
  1771. The negative result indicates the money is out of your pocket.
  1772.  
  1773. Another example:
  1774.  
  1775. @PPAYMT (.15/4,24,40,10000,0,1) = $-250.83 quarterly payments for a $10,000 loan at 15% annual percentage rate adjusted to a quarterly basis over a 10-year term
  1776.  
  1777. @PRICE - Price of a Bond
  1778.  
  1779. Syntax
  1780.  
  1781. @PRICE(Settle, Maturity, Coupon, Yield, <Redemption>, <Freq>, <Calendar>)
  1782.  
  1783.  
  1784.  
  1785. Settle    Number representing the settlement date; must be < Maturity.
  1786.  
  1787. Maturity    Number representing the maturity date; must be > Settle.
  1788.  
  1789. Coupon    Coupon rate; must be │ 0.
  1790.  
  1791. Yield    Annual yield; must be > 0 and ú 1.
  1792.  
  1793. Redemption    Redemption value per 100 face value; must be > 0; the default is 100.
  1794.  
  1795. Freq    Frequency of coupon payments in number of payments per year (can be 1, 2, 3, 4, 6, or 12; the default is 2).
  1796.  
  1797. Calendar    Flag specifying which calendar to observe (0 = 30/360, 1 = actual/actual, 2 = actual/360, 3 = actual/365; the default is 0).
  1798.  
  1799.  
  1800.  
  1801. @PRICE returns the price per 100 face value of a security that pays periodic interest.
  1802.  
  1803. Example
  1804.  
  1805. An 8.85% bond that matures August 17, 2017 has a yield-to-maturity of 7.5% for September 22, 1993 settlement. This formula calculates the price of the bond:
  1806.  
  1807. @PRICE(@DATE(93,9,22),@DATE(117,8,17),0.0885,0.075) = 114.8902
  1808.  
  1809. @PRICEDISC - Price of a Bill
  1810.  
  1811. Syntax
  1812.  
  1813. @PRICEDISC(Settle, Maturity, Discount, <Redemption>, <Calendar>)
  1814.  
  1815.  
  1816.  
  1817. Settle    Number representing the settlement date; must be < Maturity.
  1818.  
  1819. Maturity    Number representing the maturity date; must be > Settle.
  1820.  
  1821. Discount    Rate of discount; 0 ú Discount ú 1.
  1822.  
  1823. Redemption    Redemption value per 100 face value (must be > 0; the default is 100).
  1824.  
  1825. Calendar    Flag specifying which calendar to observe (0 = 30/360, 1 = actual/actual, 2 = actual/360, 3 = actual/365; the default is 0).
  1826.  
  1827.  
  1828.  
  1829. @PRICEDISC returns the dollar price per 100 face value of a discounted security. The dollar price of a bill is its value less the applicable dollar discount. The discount is the product of the redemption value and the quoted discount rate, prorated for the number of days between settlement and maturity. @PRICEDISC uses this formula:
  1830.  
  1831.  
  1832.  
  1833.  
  1834.  
  1835. P    price
  1836.  
  1837. R    redemption
  1838.  
  1839. D    discount
  1840.  
  1841. M    maturity
  1842.  
  1843. S    settle
  1844.  
  1845. b    basis
  1846.  
  1847.  
  1848.  
  1849. tb is the number of days over which the discount rate applies (360 or 365).
  1850.  
  1851. Example
  1852.  
  1853. This formula calculates the dollar price of a bill with the following terms: Settle is January 17, 1993, Maturity is August 15, 1993, Discount is 8.897%, Redemption is 100, and Calendar is 2 (actual/360).
  1854.  
  1855. @PRICEDISC(@DATE(93,1,17),@DATE(93,8,15),0.08897,100,2) = 94.81008
  1856.  
  1857. @PRICEMAT - Price of a CD
  1858.  
  1859. Syntax
  1860.  
  1861. @PRICEMAT(Settle, Maturity, Issue, Coupon, Yield, <Calendar>)
  1862.  
  1863.  
  1864.  
  1865. Settle    Number representing the settlement date; must be < Maturity.
  1866.  
  1867. Maturity    Number representing the maturity date; must be > Settle.
  1868.  
  1869. Issue    Number representing the issue date; must be < Settle.
  1870.  
  1871. Coupon    Coupon rate; 0 ú Coupon ú 1.
  1872.  
  1873. Yield    Annual yield; 0 ú Yield ú 1.
  1874.  
  1875. Calendar    Flag specifying which calendar to observe (0 = 30/360, 1 = actual/actual, 2 = actual/360, 3 = actual/365; the default is 0).
  1876.  
  1877.  
  1878.  
  1879. @PRICEMAT returns the price per 100 face value (not including accrued interest) of a security that pays interest at maturity. The invoice price of a security that pays interest at maturity is the sum of the quoted price and accrued interest between issue and settlement dates.
  1880.  
  1881. Example
  1882.  
  1883. This formula calculates the price per 100 face value of a security with the following terms: Settle is February 1, 1993, Maturity is April 1, 1993, Issue is January 2, 1993, Coupon is 10%, Yield is 10%, and Calendar is 2 (actual/360).
  1884.  
  1885. @PRICEMAT(@DATE(93,2,1),@DATE(93,4,1),@DATE(93,1,2),0.10,0.10,2) = 99.986
  1886.  
  1887. @PROB - Probability
  1888.  
  1889. Syntax
  1890.  
  1891. @PROB(XData, ProbRange, LowerLimit, <UpperLimit>)
  1892.  
  1893.  
  1894.  
  1895. Xdata    Values of X associated with the probabilities.
  1896.  
  1897. ProbRange    Cells or an array of probability values associated with XData; each value in ProbRange must be │ 0 and ú 1; the sum of ProbRange values must equal 1.
  1898.  
  1899. LowerLimit    Lower limit on the value for the desired probability.
  1900.  
  1901. UpperLimit    Upper limit on the value for the desired probability. (optional) (default = lower limit)
  1902.  
  1903.  
  1904.  
  1905. @PROB determines the probability that XData values are between two limits. If XData and ProbRange do not have the same number of values, @PROB returns ERR.
  1906.  
  1907. Example
  1908.  
  1909. @PROB({10,13,15,18,25},{0.1,0.2,0.4,0.2,0.1},10,13) = 0.3
  1910.  
  1911. @PROPER - Initial Capital Letters
  1912.  
  1913. Syntax
  1914.  
  1915. @PROPER(String)
  1916.  
  1917.  
  1918.  
  1919. String    A string value.
  1920.  
  1921.  
  1922.  
  1923. @PROPER converts the first letter of every word in String to uppercase, and the rest of the characters to lowercase. A word is defined as an unbroken string of alphabetic characters. Any blank spaces, punctuation symbols, or numbers mark the end of a word.
  1924.  
  1925. Examples
  1926.  
  1927. @PROPER("GEORGE washINGTON") = George Washington 
  1928.  
  1929. @PROPER("FIRST QUARTER") = First Quarter 
  1930.  
  1931. @PROPER("JOHN J.  SMITH") = John J. Smith 
  1932.  
  1933. @PROPER("1979's results") = 1979'S Results 
  1934.  
  1935. @PROPER(A1) = John J. Smith (where cell A1 contains JOHN J. SMITH) 
  1936.  
  1937. @PROPERTY - Current Property Setting
  1938.  
  1939. Syntax
  1940.  
  1941. @PROPERTY(Object.Property)
  1942.  
  1943.  
  1944.  
  1945. Object    The name of the object whose property settings you are requesting.
  1946.  
  1947. Property    The property whose settings you are requesting.
  1948.  
  1949.  
  1950.  
  1951. Returns the current setting of Property for an Object. See Property Reference for lists of objects and properties you can enter as arguments.
  1952.  
  1953. @PROPERTY returns a string, even if the setting is a number. Object.Property must be enclosed in double quotes.
  1954.  
  1955. Examples
  1956.  
  1957. @PROPERTY("Active_Block.Selection")
  1958.  
  1959. Returns: the coordinates of the currently selected cells.
  1960.  
  1961. @PROPERTY("Sales:A1..D12.Protection")
  1962.  
  1963. Returns: Protect if cells A1..D12 on sheet Sales is protected; otherwise, it returns Unprotect.
  1964.  
  1965. @PUREAVG - Average, Ignoring Labels and Blanks
  1966.  
  1967. Syntax
  1968.  
  1969. @PUREAVG(List)
  1970.  
  1971.  
  1972.  
  1973. List    One or more numeric or cell values.
  1974.  
  1975.  
  1976.  
  1977. @PUREAVG calculates the average of values in a list, ignoring blank cells and labels. Compare this to @AVG, which calculates the average of all values in a list.
  1978.  
  1979. @Functions that ignore blank cells and labels are extremely important when using a spreadsheet for statistical analysis.
  1980.  
  1981. Examples
  1982.  
  1983.  
  1984.  
  1985.     A
  1986.  
  1987. 1    Sales
  1988.  
  1989. 2    $80,000
  1990.  
  1991. 3    $90,000
  1992.  
  1993. 4    $95,000
  1994.  
  1995. 5    $105,000
  1996.  
  1997.  
  1998.  
  1999. @PUREAVG(A1..A5) = $92,500
  2000.  
  2001. @AVG(A1..A5) = $74,000, because @AVG includes the column heading and divides the total by 5
  2002.  
  2003. @AVG(A2..A5) = $92,500, when only the 4 cells containing numbers are in the list
  2004.  
  2005. @PURECOUNT - Counts Non-Blank Cells, Ignoring Labels
  2006.  
  2007. Syntax
  2008.  
  2009. @PURECOUNT(List)
  2010.  
  2011.  
  2012.  
  2013. List    One or more numeric or string values, cell addresses, and cell references or names, separated by commas.
  2014.  
  2015.  
  2016.  
  2017. @PURECOUNT returns the number of entries and cells in a list, excluding blank cells and labels. Compare this to @COUNT, which returns the number of nonblank cells in a list. @COUNT includes cells with entries of any kind, including labels, a label-prefix character, or the values ERR and NA.
  2018.  
  2019. You can use both @PURECOUNT and @COUNT to divert or stop a macro that performs a task on a series of selections when the cell pointer reaches an empty cell.
  2020.  
  2021. @Functions that ignore blank cells and labels are extremely important when using a spreadsheet for statistical analysis.
  2022.  
  2023. Examples
  2024.  
  2025.  
  2026.  
  2027.     A
  2028.  
  2029. 1    Sales
  2030.  
  2031. 2    $80,000
  2032.  
  2033. 3    $90,000
  2034.  
  2035. 4    $95,000
  2036.  
  2037. 5    $105,000
  2038.  
  2039.  
  2040.  
  2041. @PURECOUNT(A1..A6) = 4
  2042.  
  2043. @COUNT(A1..A6) = 5 (includes the label)
  2044.  
  2045. @PURECOUNT(1,"hello",A1..A3) = 3
  2046.  
  2047. @COUNT(1,"hello",A1..A3) = 5
  2048.  
  2049. @PUREMAX - Maximum Value, Ignoring Labels and Blanks
  2050.  
  2051. Syntax
  2052.  
  2053. @PUREMAX(List)
  2054.  
  2055.  
  2056.  
  2057. List    One or more numeric or string values, cell addresses, and cell references or names, separated by commas.
  2058.  
  2059.  
  2060.  
  2061. @PUREMAX returns the largest numeric value in a list, ignoring blank cells and labels. Compare this to @MAX, which returns the largest numeric or data value in a list.
  2062.  
  2063. @Functions that ignore blank cells and labels are extremely important when using a spreadsheet for statistical analysis.
  2064.  
  2065. Examples
  2066.  
  2067.  
  2068.  
  2069.     A
  2070.  
  2071. 1    Expenses
  2072.  
  2073. 2    ($80)
  2074.  
  2075. 3    ($90)
  2076.  
  2077. 4    ($95)
  2078.  
  2079. 5    ($105)
  2080.  
  2081.  
  2082.  
  2083. @PUREMAX(A1..A6) = ($80)
  2084.  
  2085. @MAX(A1..A6) = 0, the value of the label, Expenses
  2086.  
  2087. @PUREMIN - Minimum Value, Ignoring Labels and Blanks
  2088.  
  2089. Syntax
  2090.  
  2091. @PUREMIN(List)
  2092.  
  2093.  
  2094.  
  2095. List    One or more numeric or string values, cell addresses, and cell references or names, separated by commas.
  2096.  
  2097.  
  2098.  
  2099. @PUREMIN returns the smallest numeric value in a list, ignoring blank cells and labels. Compare this to @MIN, which returns the smallest numeric or data value in a list.
  2100.  
  2101. @Functions that ignore blank cells and labels are extremely important when using a spreadsheet for statistical analysis.
  2102.  
  2103. Examples
  2104.  
  2105.  
  2106.  
  2107.     A
  2108.  
  2109. 1    Sales
  2110.  
  2111. 2    $80,000
  2112.  
  2113. 3    $90,000
  2114.  
  2115. 4    $95,000
  2116.  
  2117. 5    $105,000
  2118.  
  2119.  
  2120.  
  2121. @PUREMIN(A1..A6) = $80,000
  2122.  
  2123. @MIN(A1..A6) = 0, the value of the label, Expenses
  2124.  
  2125. @PURESTD - Population Standard Deviation, Ignoring Labels and Blanks
  2126.  
  2127. Syntax
  2128.  
  2129. @PURESTD(List)
  2130.  
  2131.  
  2132.  
  2133. List    One or more numeric or string values, cell addresses, and cell references or names, separated by commas.
  2134.  
  2135.  
  2136.  
  2137. @PURESTD returns the population standard deviation (square root of the population variance) of numeric values in a list, ignoring blank cells and labels. Compare this to @STD, which returns the population standard deviation of all values in a list. @PURESTDS and @STDS return sample standard deviation.
  2138.  
  2139. @STD and @PURESTD use the n method to calculate standard deviation of population data. This method assumes that the sample reflects the entire population. If the sample is small, the standard deviation is biased because of sampling errors, so @STDS or @PURESTDS should be used instead.
  2140.  
  2141. @Functions that ignore blank cells and labels are extremely important when using a spreadsheet for statistical analysis.
  2142.  
  2143. Examples
  2144.  
  2145.  
  2146.  
  2147.     A
  2148.  
  2149. 1    Grades
  2150.  
  2151. 2    4.0
  2152.  
  2153. 3    3.4
  2154.  
  2155. 4    3.7
  2156.  
  2157. 5    3.6
  2158.  
  2159.  
  2160.  
  2161. @PURESTD(A1..A6) = 0.216506, ignoring the label and the blank
  2162.  
  2163. @STD(A1..A6) = 1.4827, because the argument includes the label, which to @STD = 0
  2164.  
  2165. @STD(A2..A6) = 0.216506, excluding the label from the argument
  2166.  
  2167. @PURESTDS(A1..A6) = 0.25, the sample standard deviation
  2168.  
  2169. @PURESTDS - Sample Standard Deviation, Ignoring Labels and Blanks
  2170.  
  2171. Syntax
  2172.  
  2173. @PURESTDS(List)
  2174.  
  2175.  
  2176.  
  2177. List    One or more numeric or string values, cell addresses, and cell references or names, separated by commas.
  2178.  
  2179.  
  2180.  
  2181. @PURESTDS returns the sample standard deviation (square root of the sample variance) of numeric values in a list, ignoring blank cells and labels. Compare this to @STDS, which returns the sample standard deviation of all values in a list. @PURESTD and @STD return population standard deviation.
  2182.  
  2183. @STDS and @PURESTDS use the n-1 method to calculate standard deviation of sample population data. This method compensates for sampling errors, returning a slightly larger standard deviation. If the sample is large enough, @STD or @PURESTD can be used.
  2184.  
  2185. Examples
  2186.  
  2187.  
  2188.  
  2189.     A
  2190.  
  2191. 1    Grades
  2192.  
  2193. 2    4.0
  2194.  
  2195. 3    3.4
  2196.  
  2197. 4    3.7
  2198.  
  2199. 5    3.6
  2200.  
  2201.  
  2202.  
  2203. @PURESTDS(A1..A6) = 0.25, ignoring the label and the blank
  2204.  
  2205. @STDS(A1..A6) = 1.657709, because the argument includes the label, which to @STDS = 0
  2206.  
  2207. @STDS(A2..A6) = 0.25, excluding the label from the argument
  2208.  
  2209. @PURESTD(A1..A6) = 0.216506, the population standard deviation
  2210.  
  2211. @PUREVAR - Population Variance, Ignoring Labels and Blanks
  2212.  
  2213. Syntax
  2214.  
  2215. @PUREVAR(List)
  2216.  
  2217.  
  2218.  
  2219. List    One or more numeric or string values, cell addresses, and cell references or names, separated by commas.
  2220.  
  2221.  
  2222.  
  2223. @PUREVAR calculates the population variance of numeric values in a list, ignoring blank cells and labels. Compare this to @VAR, which calculates the population variance of all values in a list. @PUREVARS and @VARS calculate sample population variance.
  2224.  
  2225. Variance @functions perform a statistical test called analysis of variance (anova). @VAR and @PUREVAR use the n method to calculate variance. This method assumes that the sample reflects the entire population. If the sample is small, the variance is biased because of sampling errors, so @VARS and @PUREVARS should be used instead.
  2226.  
  2227. @Functions that ignore blank cells and labels are extremely important when using a spreadsheet for statistical analysis.
  2228.  
  2229. Examples
  2230.  
  2231.  
  2232.  
  2233.     A
  2234.  
  2235. 1    Grades
  2236.  
  2237. 2    4.0
  2238.  
  2239. 3    3.4
  2240.  
  2241. 4    3.7
  2242.  
  2243. 5    3.6
  2244.  
  2245.  
  2246.  
  2247. @PUREVAR(A1..A6) = 0.046875, ignoring the label and the blank
  2248.  
  2249. @VAR(A1..A6) = 2.1984, because the argument includes the label, which to @VAR = 0
  2250.  
  2251. @VAR(A2..A6) = 0.046875, excluding the label from the argument
  2252.  
  2253. @PUREVARS(A1..A6) = 0.0625, the sample population variance
  2254.  
  2255. @PUREVARS - Sample Population Variance, Ignoring Labels and Blanks
  2256.  
  2257. Syntax
  2258.  
  2259. @PUREVARS(List)
  2260.  
  2261.  
  2262.  
  2263. List    One or more numeric or string values, cell addresses, and cell references or names, separated by commas.
  2264.  
  2265.  
  2266.  
  2267. @PUREVARS calculates the sample population variance of numeric values in a list, ignoring blank cells and labels. Compare this to @VARS, which calculates the sample population variance of all values in a list. @PUREVAR and @VAR calculate population variance.
  2268.  
  2269. Variance @functions perform a statistical test called analysis of variance (anova). @VARS and @PUREVARS use the n-1 method to calculate variance. This method compensates for sampling errors, returning a slightly larger variance. If the sample is large enough, @VAR or @PUREVAR can be used.
  2270.  
  2271. @Functions that ignore blank cells and labels are extremely important when using a spreadsheet for statistical analysis.
  2272.  
  2273. Examples
  2274.  
  2275.  
  2276.  
  2277.     A
  2278.  
  2279. 1    Grades
  2280.  
  2281. 2    4.0
  2282.  
  2283. 3    3.4
  2284.  
  2285. 4    3.7
  2286.  
  2287. 5    3.6
  2288.  
  2289.  
  2290.  
  2291. @PUREVARS(A1..A6) = 0.0625, ignoring the label and the blank
  2292.  
  2293. @VARS(A1..A6) = 2.748, because the argument includes the label, which to @VARS = 0
  2294.  
  2295. @VARS(A2..A6) = 0.0625, excluding the label from the argument
  2296.  
  2297. @PUREVAR(A1..A6) = 0.046875, the population variance
  2298.  
  2299. @PV - Present Value
  2300.  
  2301. Syntax
  2302.  
  2303. @PV(Pmt, Rate, Nper)
  2304.  
  2305.  
  2306.  
  2307. Pmt    A numeric value representing the amount of the periodic payment.
  2308.  
  2309. Rate    A numeric value > -1, representing the periodic interest rate (the fixed interest rate per compounding period).
  2310.  
  2311. 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).
  2312.  
  2313.  
  2314.  
  2315. @PV calculates the present value of an investment where Pmt is received for Nper periods and is discounted at the rate of Rate per period. Present value is calculated using this formula:
  2316.  
  2317.  
  2318.  
  2319. where
  2320.  
  2321.  
  2322.  
  2323. P    amount of periodic payment
  2324.  
  2325. R    periodic interest rate
  2326.  
  2327. N    number of periods
  2328.  
  2329.  
  2330.  
  2331. An equivalent for this formula using @PVAL is
  2332.  
  2333. @PVAL(Rate, Nper, - Pmt, 0)
  2334.  
  2335. @PV assumes that the investment is an ordinary annuity. Related @function @PVAL lets you use an optional argument, Type, to indicate whether the investment is an ordinary annuity or an annuity due.
  2336.  
  2337. Examples
  2338.  
  2339. Assume you want to buy a new van that costs $12,000. The dealer presents two offers: Pay $12,000 cash up front, or pay $350 per month for the next five years with 7% interest. The present value of the loan is
  2340.  
  2341. @PV(350,7%/12,5*12) = $17,675.70
  2342.  
  2343. The loan is worth over $5000 more than paying the cost all at once.
  2344.  
  2345. You can also use @PVAL. The car loan example becomes
  2346.  
  2347. @PVAL(7%/12,5*12,-350,0,0) = $17,675.70
  2348.  
  2349. Other examples:
  2350.  
  2351. @PV(277,0.12,5) = $998.52 
  2352.  
  2353. @PV(600,0.17,10) = $2,795.16 
  2354.  
  2355. @PV(100,0.11,12) = $649.24
  2356.  
  2357. @PVAL - Present Value
  2358.  
  2359. Syntax
  2360.  
  2361. @PVAL(Rate, Nper, Pmt, <Fv>, <Type>)
  2362.  
  2363.  
  2364.  
  2365. Rate    A numeric value > -1, representing the periodic interest rate (the fixed interest rate per compounding period).
  2366.  
  2367. 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).
  2368.  
  2369. Pmt    A numeric value representing the amount of the periodic payment.
  2370.  
  2371. Fv    A numeric value representing the future value of an investment (the value the investment will reach at some point).
  2372.  
  2373. 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.
  2374.  
  2375.  
  2376.  
  2377. @PVAL calculates the present value of an investment where Pmt is received for Nper periods and is discounted at the rate of Rate per period. 
  2378.  
  2379. Enter negative numbers for money that is out of your pocket and positive numbers for money coming in to you. The last two arguments, Fv and Type, are optional. If you omit the last one or both of them, Quattro Pro assumes their values are zero. 
  2380.  
  2381. This @function is not compatible with 1-2-3. If your file must be compatible, use the related @function @PV instead.
  2382.  
  2383. Examples
  2384.  
  2385. Your grandfather leaves you $24,000 in cash over the next 12 years ($2000 a year) or you can have all his government bonds, which mature in 15 years to a worth of $30,000. To determine which is worth more, compute the present value of the $24,000. Assume you can invest the money as you accumulate it in a 10% money market account.
  2386.  
  2387. @PVAL(10%,12,2000,0,0) = -13,627.38
  2388.  
  2389. The result is negative because the money you invest is considered an outgoing cash flow. Now compare this figure with the present value of the $30,000, which you will not receive for 15 years:
  2390.  
  2391. @PVAL(10%,15,0,30000,0) = -7,181.76
  2392.  
  2393. These results tell you that the $24,000 spread over 12 years is the more valuable choice.
  2394.  
  2395.  
  2396.  
  2397.  
  2398.