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

  1. @BASE - Convert Number to Another Base
  2.  
  3. Syntax
  4.  
  5. @BASE(Decimal, <Base>, <Precision>)
  6.  
  7.  
  8.  
  9. Decimal    Any decimal value to convert.
  10.  
  11. Base    Indicates the target base in which to express Decimal; can be any integer from 2 to 36, inclusive (the default is 16).
  12.  
  13. Precision    Indicates the number of desired digits after the decimal point; can be any integer from 0 to 15, inclusive (the default is 0).
  14.  
  15.  
  16.  
  17. @BASE converts a number from base-10 to a string value in a target base from 2 to 36.
  18.  
  19. Examples
  20.  
  21. @BASE(128,8) = 200
  22.  
  23. @BASE(123.47,16,6) = 7B.7851EB
  24.  
  25. @BDAYS - Business Days
  26.  
  27. Syntax
  28.  
  29. @BDAYS(StartDate, EndDate, <Holidays>, <Saturday>, <Sunday>)
  30.  
  31.  
  32.  
  33. StartDate    Number representing the start date. See "Using dates and times in Quattro Pro."
  34.  
  35. EndDate    Number representing the end date.
  36.  
  37. Holidays    Cells containing dates that are holidays or the date of a single holiday or 0 to indicate no holidays (the default is 0).
  38.  
  39. Saturday    0 to specify that Saturday is not a business day; 1 to specify that Saturday is a business day (the default is 0).
  40.  
  41. Sunday    0 to specify that Sunday is not a business day; 1 to specify that Sunday is a business day (the default is 0).
  42.  
  43.  
  44.  
  45. @BDAYS returns the number of business days between StartDate and EndDate, including EndDate in the total. If EndDate is less than StartDate, the result is negative.
  46.  
  47. If neither StartDate nor EndDate falls on a weekend or holiday, @BDAYS returns the number of business days from StartDate to EndDate, including EndDate.
  48.  
  49. If StartDate and EndDate are two consecutive business days, the result is 1. If StartDate and EndDate both fall on weekends or holidays, @BDAYS returns the number of business days between the two dates, excluding EndDate.
  50.  
  51. If StartDate or EndDate (but not both) falls on a weekend or holiday, the result depends on which date falls on a business day. If StartDate falls on the weekend, the result includes EndDate. For example, if StartDate is a Saturday and EndDate is the following Thursday, the result includes the Thursday and is 4. If EndDate falls on the weekend, the result does not include EndDate. For example, if StartDate is a Thursday and EndDate is the following Saturday, the result is 1.
  52.  
  53. Examples
  54.  
  55. This formula calculates how many business days pass from November 30, 1993 to November 14, 1993, assuming that the dates in the cells A7..C9 are holidays:
  56.  
  57. @BDAYS(@DATE(93,11,30),@DATE(93,11,14),A7..C9) = -9
  58.  
  59. This formula calculates how many business days pass from June 2, 1993 to June 10, 1993, assuming no holidays other than weekends:
  60.  
  61. @BDAYS(@DATE(93,6,2),@DATE(93,6,10)) = 6
  62.  
  63. @BESSELI - Modified Bessel In(x)
  64.  
  65. Syntax
  66.  
  67. @BESSELI(x, n)
  68.  
  69.  
  70.  
  71. x    Numeric value at which to evaluate the function.
  72.  
  73. n    Number │ 0 representing the order of the Bessel function; if n is not an integer, it is truncated to an integer.
  74.  
  75.  
  76.  
  77. @BESSELI calculates the nth order modified Bessel function of the variable x. It uses this formula:
  78.  
  79.  
  80.  
  81. @BESSELI is equivalent to the Bessel function , but is evaluated for purely imaginary arguments.
  82.  
  83. Example
  84.  
  85. @BESSELI(1.5,0) = 1.646723
  86.  
  87. @BESSELJ - Bessel Jn(x)
  88.  
  89. Syntax
  90.  
  91. @BESSELJ(x, n)
  92.  
  93.  
  94.  
  95. x    Numeric value at which to evaluate the function.
  96.  
  97. n    Number │ 0 representing the order of the Bessel function; if n is not an integer, it is truncated to an integer.
  98.  
  99.  
  100.  
  101. @BESSELJ calculates the Bessel function Jn(x). It uses this formula:
  102.  
  103. , where  is the gamma function.
  104.  
  105. Example
  106.  
  107. @BESSELJ(1.5,0) = 0.511828
  108.  
  109. @BESSELK - Modified Bessel Kn(x)
  110.  
  111. Syntax
  112.  
  113. @BESSELK(x, n)
  114.  
  115.  
  116.  
  117. x    Numeric value at which to evaluate the function; must be > 0.
  118.  
  119. n    Integer │ 0 representing the order of the Bessel function; if n is not an integer, it is truncated to an integer.
  120.  
  121.  
  122.  
  123. @BESSELK calculates the nth order modified Bessel function of the variable x. It uses this formula:
  124.  
  125.  
  126.  
  127. where Jn and Yn are @BESSELJ and @BESSELY, respectively.
  128.  
  129. Example
  130.  
  131. @BESSELK(1.5,0) = 0.213806
  132.  
  133. @BESSELY - Bessel Yn(x)
  134.  
  135. Syntax
  136.  
  137. @BESSELY(x, n)
  138.  
  139.  
  140.  
  141. x    Non-negative numeric value at which to evaluate the function.
  142.  
  143. n    Integer │ 0 representing the order of the Bessel function; if n is not an integer, it is truncated to an integer.
  144.  
  145.  
  146.  
  147. @BESSELY calculates the Bessel function Yn(x) (also called the Neumann or Weber function). It uses this formula:
  148.  
  149.  
  150.  
  151. where:
  152.  
  153.  
  154.  
  155. Example
  156.  
  157. @BESSELY(1.5,0) = 0.382449
  158.  
  159. @BETA - Beta Function
  160.  
  161. Syntax
  162.  
  163. @BETA(Z, W)
  164.  
  165.  
  166.  
  167. Z    a parameter to the function; must be > 0.
  168.  
  169. W    b parameter to the function; must be > 0.
  170.  
  171.  
  172.  
  173. @BETA returns the value of the beta function, which is widely used in mathematics and statistics. @BETA uses this formula:
  174.  
  175.  
  176.  
  177. Examples
  178.  
  179. @BETA(4,3) = 0.016667
  180.  
  181. @BETA(2,3) = 0.083333
  182.  
  183. @BETA(9,0.4) = 0.93348
  184.  
  185. @BETA(12,0.3) = 1.432072
  186.  
  187. @BETADIST - Beta Distribution
  188.  
  189. Syntax
  190.  
  191. @BETADIST(X, Z, W, <A>, <B>)
  192.  
  193.  
  194.  
  195. X    Value at which to evaluate the function over the interval A ú X ú B.
  196.  
  197. Z    a distribution parameter; Z > 0.
  198.  
  199. W    b distribution parameter; W > 0.
  200.  
  201. A    Optional lower bound to the interval of X (the default is 0); A cannot equal B and must be ú X.
  202.  
  203. B    Optional upper bound to the interval of X (the default is 1); B cannot equal A and must be │ X.
  204.  
  205.  
  206.  
  207. @BETADIST returns the cumulative beta probability density function. The cumulative beta probability density function is a bounded distribution that is useful for studying variables such as percentages that may only take on values within a restricted range. The optional arguments A and B set those bounds.
  208.  
  209. Examples
  210.  
  211. @BETADIST(0.5,3,4,0,1) = 0.65625
  212.  
  213. @BETADIST(0.4,3,4,0,1) = 0.45568
  214.  
  215. @BETAI - Incomplete Beta Function
  216.  
  217. Syntax
  218.  
  219. @BETAI(Z, W, X)
  220.  
  221.  
  222.  
  223. Z    a parameter to the function; if W = 0, Z > 0.
  224.  
  225. W    b parameter to the function; if Z = 0, W > 0.
  226.  
  227. X    Value at which to evaluate the function; cannot exceed 1.
  228.  
  229.  
  230.  
  231. @BETAI computes the incomplete beta function, that is, the probability that a standard beta-distributed variable will be less than X. @BETAI uses this formula:
  232.  
  233.  
  234.  
  235. Examples
  236.  
  237. @BETAI(3,4,0.5) = 0.65625
  238.  
  239. @BETAI(3,4,0.1) = 0.01585
  240.  
  241. @BETAI(3,4,0.98) = 0.999998
  242.  
  243. @BETAI(7,8,0.7) = 0.968531
  244.  
  245. @BETAINV - Inverse of Beta Distribution
  246.  
  247. Syntax
  248.  
  249. @BETAINV(Prob, Z, W, <A>, <B>)
  250.  
  251.  
  252.  
  253. Prob    Cumulative probability value; 0 ú Prob ú 1.
  254.  
  255. Z    a parameter to the Beta distribution; must be > 0.
  256.  
  257. W    b parameter to the Beta distribution; must be > 0.
  258.  
  259. A    Optional lower bound to the interval of X (the default is 0); A cannot equal B and must be ú X.
  260.  
  261. B    Optional upper bound to the interval of X (the default is 1); B cannot equal A and must be │ X.
  262.  
  263.  
  264.  
  265. @BETAINV computes the inverse of the cumulative beta distribution function. If Prob = @BETADIST(X...), then @BETAINV(Prob...) = X.
  266.  
  267. Examples
  268.  
  269. @BETAINV(0.65625,3,4,0,1) = 0.5
  270.  
  271. @BETAINV(0.45568,3,4,0,1) = 0.4
  272.  
  273. @BINOMDIST - Binomial Distribution
  274.  
  275. Syntax
  276.  
  277. @BINOMDIST(Successes, Trials, Prob, Cumulative)
  278.  
  279.  
  280.  
  281. Successes    Number of successes in number of trial runs; must be │ 0.
  282.  
  283. Trials    Number of independent trial runs in sample; must be > Successes.
  284.  
  285. Prob    Probability of a success on each trial run; must be │ 0 and ú 1.
  286.  
  287. Cumulative    1 to return the cumulative distribution function; 0 to return the probability that there are exactly Successes successes.
  288.  
  289.  
  290.  
  291. @BINOMDIST returns the binomial probability mass function, which is the probability that the number of successes in the independent trials equals Successes. Use @BINOMDIST when the outcome of experiments is success or failure, when the experiments are independent of one another, and when the probability of success does not change in successive trials. For example, a coin toss experiment is a binomial experiment.
  292.  
  293. Example
  294.  
  295. Using a random sample, a polling organization asks 50 voters if they favor Candidate A for reelection. Given that 55% of the city's voters favor Candidate A, this formula returns the probability that 40 people from the sample will favor her:
  296.  
  297. @BINOMDIST(40,50,.55,0) = 0.000144
  298.  
  299. @BINTOHEX - Binary to Hexadecimal
  300.  
  301. Syntax
  302.  
  303. @BINTOHEX(Binary)
  304.  
  305. @BINTOHEX("1010") = A 
  306.  
  307.  
  308.  
  309. Binary    Binary number to convert; denote negative numbers using a minus sign.
  310.  
  311.  
  312.  
  313. @BINTOHEX returns the hexadecimal string equivalent of a binary number.
  314.  
  315. Examples
  316.  
  317. @BINTOHEX("10000") = 10
  318.  
  319. @BINTOHEX("11110") = 1E
  320.  
  321. @BINTOHEX64 -Binary to Hexadecimal
  322.  
  323. Syntax
  324.  
  325. @BINTOHEX64(Binary, <Places>)
  326.  
  327.  
  328.  
  329. Binary    Binary number to convert; must be positive.
  330.  
  331. Places    Number of characters to return; must be ú 16.
  332.  
  333.  
  334.  
  335. @BINTOHEX64 returns the hexadecimal string equivalent of a binary number (up to 64 bits).
  336.  
  337. Examples
  338.  
  339. @BINTOHEX64(1001) = 9
  340.  
  341. @BINTOHEX64(1010,2) = 0A
  342.  
  343. @BINTOHEX64("11110000001111000") = 1E078
  344.  
  345. @BINTOHEX64("11110000001111000",2) = 78
  346.  
  347. @BINTONUM - Binary to Decimal
  348.  
  349. Syntax
  350.  
  351. @BINTONUM(Binary)
  352.  
  353.  
  354.  
  355. Binary    Binary number to convert; denote negative numbers using a minus sign.
  356.  
  357.  
  358.  
  359. @BINTONUM returns the decimal equivalent of a binary number.
  360.  
  361. Examples
  362.  
  363. @BINTONUM("1010") = 10
  364.  
  365. @BINTONUM("10000") = 16
  366.  
  367. @BINTONUM("11110") = 30
  368.  
  369. @BINTONUM64 - Binary to Decimal
  370.  
  371. Syntax
  372.  
  373. @BINTONUM64(Binary, <Signed>)
  374.  
  375.  
  376.  
  377. Binary    Binary number to convert.
  378.  
  379. Signed    1 if the most significant bit of Binary is a sign bit; 0 (the default) if Binary is positive.
  380.  
  381.  
  382.  
  383. @BINTONUM64 returns the decimal equivalent of a binary number (up to 64 bits).
  384.  
  385. If Signed is 1, the most significant bit of Binary is the sign bit. If the sign bit is 0, the number is positive; if it is 1, the number is negative.
  386.  
  387. Examples
  388.  
  389. @BINTONUM64(100) = 4
  390.  
  391. @BINTONUM64(1010) = 10
  392.  
  393. @BINTONUM64("11110000001111000") = 123000
  394.  
  395. @BINTONUM64("11110000001111000",1) = -8072
  396.  
  397. @BINTOOCT - Binary to Octal
  398.  
  399. Syntax
  400.  
  401. @BINTOOCT(Binary)
  402.  
  403.  
  404.  
  405. Binary    Binary number to convert; denote negative numbers using a minus sign.
  406.  
  407.  
  408.  
  409. @BINTOOCT returns the octal string equivalent of a binary number.
  410.  
  411. Examples
  412.  
  413. @BINTOOCT("1010") = 12
  414.  
  415. @BINTOOCT("10000") = 20
  416.  
  417. @BINTOOCT("11110") = 36
  418.  
  419. @BINTOOCT64 - Binary to Octal
  420.  
  421. Syntax
  422.  
  423. @BINTOOCT64(Binary, <Places>)
  424.  
  425.  
  426.  
  427. Binary    Binary number to convert; must be positive.
  428.  
  429. Places    Number of characters to return; must be ú 22.
  430.  
  431.  
  432.  
  433. @BINTOOCT returns the octal string equivalent of a binary number (up to 64 bits).
  434.  
  435. Examples
  436.  
  437. @BINTOOCT64("0111") = 07
  438.  
  439. @BINTOOCT64("1000",3) = 010
  440.  
  441. @BINTOOCT64("11110000001111000") = 360170
  442.  
  443. @BINTOOCT64("11110000001111000",3) = 170
  444.  
  445. @BINTOOCT64("000001010011100101110111") = 01234567
  446.  
  447. @BITRB - Binary Bit Reset
  448.  
  449. Syntax
  450.  
  451. @BITRB(Binary, Position)
  452.  
  453.  
  454.  
  455. Binary    Binary number.
  456.  
  457. Position    Bit position; must be │ 0 and ú number of bits in Binary - 1.
  458.  
  459.  
  460.  
  461. @BITRB resets to 0 the specified Position bit of a binary value.
  462.  
  463. Examples
  464.  
  465. @BITRB(1010,1) = 1000
  466.  
  467. @BITRB(1010,3) = 0010
  468.  
  469. @BITRB(1100,2) = 1000
  470.  
  471. @BITRH - Hexadecimal Bit Reset
  472.  
  473. Syntax
  474.  
  475. @BITRH(Hex, Position)
  476.  
  477.  
  478.  
  479. Hex    Hexadecimal number.
  480.  
  481. Position    Bit position; must be │ 0 and ú number of bits in Hex - 1.
  482.  
  483.  
  484.  
  485. @BITRH resets to 0 the specified Position bit of a hexadecimal value.
  486.  
  487. Examples
  488.  
  489. @BITRH("A",1) = 8
  490.  
  491. @BITRH("A",3) = 2
  492.  
  493. @BITRH("C",2) = 8
  494.  
  495. @BITSB - Binary Bit Set
  496.  
  497. Syntax
  498.  
  499. @BITSB(Binary, Position)
  500.  
  501.  
  502.  
  503. Binary    Binary number.
  504.  
  505. Position    Bit position; must be │ 0 and ú number of bits in Binary - 1.
  506.  
  507.  
  508.  
  509. @BITSB sets to 1 the specified Position bit of a binary number.
  510.  
  511. Examples
  512.  
  513. @BITSB(1010,2) = 1110
  514.  
  515. @BITSB(1010,0) = 1011
  516.  
  517. @BITSB(1100,0) = 1101
  518.  
  519. @BITSH - Hexadecimal Bit Set
  520.  
  521. Syntax
  522.  
  523. @BITSH(Hex, Position)
  524.  
  525.  
  526.  
  527. Hex    Hexadecimal number.
  528.  
  529. Position    Bit position; must be │ 0 and ú number of bits in Hex - 1.
  530.  
  531.  
  532.  
  533. @BITSH sets to 1 the specified Position bit of a hexadecimal number.
  534.  
  535. Examples
  536.  
  537. @BITSH("A",2) = E
  538.  
  539. @BITSH("C",0) = D
  540.  
  541. @BITTB - Binary Bit Test
  542.  
  543. Syntax
  544.  
  545. @BITTB(Binary, Position)
  546.  
  547.  
  548.  
  549. Binary    Binary number.
  550.  
  551. Position    Bit position; must be │ 0 and ú number of bits in Binary - 1.
  552.  
  553.  
  554.  
  555. @BITTB returns the value of the bit of a binary number in the specified Position.
  556.  
  557. Examples
  558.  
  559. @BITTB(1010,2) = 0
  560.  
  561. @BITTB(1001,0) = 1
  562.  
  563. @BITTB(1100,1) = 0
  564.  
  565. @BITTH - Hexadecimal Bit Test
  566.  
  567. Syntax
  568.  
  569. @BITTH(Hex, Position)
  570.  
  571.  
  572.  
  573. Hex    Hexadecimal number.
  574.  
  575. Position    Bit position; must be │ 0 and ú number of bits in Hex - 1.
  576.  
  577.  
  578.  
  579. @BITTH returns the value of the bit of a hexadecimal number in the specified Position.
  580.  
  581. Examples
  582.  
  583. @BITTH("A",2) = 0
  584.  
  585. @BITTH("9",0) = 1
  586.  
  587. @BITTH("C",0) = 0
  588.  
  589. @BLOCKNAME
  590.  
  591. Syntax
  592.  
  593. @BLOCKNAME(Block)
  594.  
  595.  
  596.  
  597. Block    Cell or reference (for example, A1 or B1..B5).
  598.  
  599.  
  600.  
  601. @BLOCKNAME returns the name of a cell or selection specified by Block. If Block does not contain a name, @BLOCKNAME returns ERR; if Block contains more than one name, @BLOCKNAME arbitrarily returns one of the names.
  602.  
  603. If the name for a selection was created in another notebook, use @BLOCKNAME2.
  604.  
  605. Example
  606.  
  607. @BLOCKNAME(D2..D15) = SALES (selection D2..D15 is named SALES)
  608.  
  609. @BLOCKNAME2
  610.  
  611. Syntax
  612.  
  613. @BLOCKNAME2(NotebookLink, Block)
  614.  
  615.  
  616.  
  617. NotebookLink    A reference to a sheet, cell, or cells in another notebook (for example, [BUDGET]A:A1).
  618.  
  619. Block    Cell or reference (for example, A1 or B1..B5).
  620.  
  621.  
  622.  
  623. @BLOCKNAME2 returns the cell name created in the notebook specified by NotebookLink that refers to Block, which can be in another notebook. If Block does not contain a name, @BLOCKNAME2 returns ERR; if Block contains more than one name, @BLOCKNAME2 arbitrarily returns one of the names.
  624.  
  625. Example
  626.  
  627. @BLOCKNAME2([BUDGET]A:A1,A:D2..D15) = SALES (selection A:D2..D15 of the active notebook is named SALES in the name table of notebook BUDGET)
  628.  
  629. @BLOCKNAMES
  630.  
  631. Syntax
  632.  
  633. @BLOCKNAMES(Block)
  634.  
  635.  
  636.  
  637. Block    Cell or reference (for example, A1 or B1..B5).
  638.  
  639.  
  640.  
  641. @BLOCKNAMES returns a two-column table showing the cell names that intersect with Block. The left column of the table contains cell names, and the right column contains corresponding coordinates.
  642.  
  643. If Block does not contain a name, @BLOCKNAMES returns ERR.
  644.  
  645. Because @BLOCKNAMES returns an array, it is automatically enclosed within an @ARRAY @function.
  646.  
  647. Make sure there is enough room for a two-column table, with one row for each cell name. Quattro Pro overwrites existing data in cells it uses for the table.
  648.  
  649. If cell names for a notebook were created in another notebook, use @BLOCKNAMES2.
  650.  
  651. Example
  652.  
  653. This example refers to cells in the next figure. Selections B3..B7, C3..C7, D3..D7, and B3..D7 are named HOTEL, TRANS, MEALS, and TOTAL, respectively. The example is entered in cell A12.
  654.  
  655. @ARRAY(@BLOCKNAMES(B3..D7)) = table in A12..B15 shown in the next figure.
  656.  
  657.  
  658.  
  659.     A    B    C    D
  660.  
  661. 1    WEEKLY EXPENSE REPORT            
  662.  
  663. 2    DATE    HOTEL    TRANS    MEALS
  664.  
  665. 3    05/11    $99.70    $774.23    $67.34
  666.  
  667. 4    05/12    $99.70    $15.00    $89.50
  668.  
  669. 5    05/13    $99.70    $23.00    $97.78
  670.  
  671. 6    05/14    $99.70    $13.00    $75.41
  672.  
  673. 7    05/15    $99.70    $32.00    $63.20
  674.  
  675. 8        $498.50    $857.23    $393.23
  676.  
  677. 9                
  678.  
  679. 10            TOTAL    $1,748.96
  680.  
  681. 11                
  682.  
  683. 12    HOTEL    [C:\COREL\QUATTRO\EXPENSES.QPW]A:B3..B7        
  684.  
  685. 13    TRANS    [C:\COREL\QUATTRO\EXPENSES.QPW]A:C3..C7        
  686.  
  687. 14    MEALS    [C:\COREL\QUATTRO\EXPENSES.QPW]A:D3..D7        
  688.  
  689. 15    TOTAL    [C:\COREL\QUATTRO\EXPENSES.QPW]A:B3..D7        
  690.  
  691. @BLOCKNAMES2
  692.  
  693. Syntax
  694.  
  695. @BLOCKNAMES2(NotebookLink, Block)
  696.  
  697.  
  698.  
  699. NotebookLink    A reference to a sheet, cell, or cells in another notebook (for example, [BUDGET]A:A1).
  700.  
  701. Block    Cell or reference (for example, A1 or B1..B5).
  702.  
  703.  
  704.  
  705. @BLOCKNAMES2 returns a two-column table showing the cell names created in the notebook specified by NotebookLink that refer to selections that intersect with Block. Use @BLOCKNAMES2 instead of @BLOCKNAMES if the cell names for a notebook were created in another notebook. The left column of the output table contains cell names, and the right column contains corresponding cell coordinates.
  706.  
  707. If Block does not contain a name, @BLOCKNAMES2 returns ERR.
  708.  
  709. Because @BLOCKNAMES2 returns an array, it is automatically enclosed within an @ARRAY @function.
  710.  
  711. Make sure there is enough room for a two-column table, with one row for each cell name. Quattro Pro overwrites existing data in cells it uses for the table.
  712.  
  713. Example
  714.  
  715. This example refers to cells in the next figure. Selections B3..B7, C3..C7, D3..D7, and B3..D7 in the active notebook EXPENSES are named HOTEL, TRANS, MEALS, and TOTAL, respectively, in the notebook TRAVEL. The example is entered in cell A12.
  716.  
  717. @ARRAY(@BLOCKNAMES2([TRAVEL]A:A1,B3..D7)) = table in A12..B15 shown in the next figure
  718.  
  719.  
  720.  
  721.     A    B    C    D
  722.  
  723. 1    WEEKLY EXPENSE REPORT            
  724.  
  725. 2    DATE    HOTEL    TRANS    MEALS
  726.  
  727. 3    05/11    $99.70    $774.23    $67.34
  728.  
  729. 4    05/12    $99.70    $15.00    $89.50
  730.  
  731. 5    05/13    $99.70    $23.00    $97.78
  732.  
  733. 6    05/14    $99.70    $13.00    $75.41
  734.  
  735. 7    05/15    $99.70    $32.00    $63.20
  736.  
  737. 8        $498.50    $857.23    $393.23
  738.  
  739. 9                
  740.  
  741. 10            TOTAL    $1,748.96
  742.  
  743. 11                
  744.  
  745. 12    HOTEL    [C:\COREL\QUATTRO\EXPENSES.QPW]A:B3..B7        
  746.  
  747. 13    TRANS    [C:\COREL\QUATTRO\EXPENSES.QPW]A:C3..C7        
  748.  
  749. 14    MEALS    [C:\COREL\QUATTRO\EXPENSES.QPW]A:D3..D7        
  750.  
  751. 15    TOTAL    [C:\COREL\QUATTRO\EXPENSES.QPW]A:B3..D7        
  752.  
  753. @BUSDAY - Closest Business Day
  754.  
  755. Syntax
  756.  
  757. @BUSDAY(Date, <Direction>, <Holidays>, <Saturday>, <Sunday>)
  758.  
  759.  
  760.  
  761. Date    Number representing a date. See "Using dates and times in Quattro Pro."
  762.  
  763. Direction    Flag specifying direction of adjustment; 0 = forward; 1 = backward; 2 = forward if in same month as Date, otherwise backward (the default is 0).
  764.  
  765. Holidays    Cells containing dates that are holidays or the date of a single holiday or 0 to indicate no holidays (the default is 0).
  766.  
  767. Saturday    0 to specify that Saturday is not a business day; 1 to specify that Saturday is a business day (the default is 0).
  768.  
  769. Sunday    0 to specify that Sunday is not a business day; 1 to specify that Sunday is a business day (the default is 0).
  770.  
  771.  
  772.  
  773. @BUSDAY returns Date if it is a valid business day. If Date falls on a Saturday (and Saturday is set to 0 or omitted), Sunday (and Sunday is set to 0 or omitted), or holiday, @BUSDAY returns the date of the closest valid business day in the direction specified by Direction.
  774.  
  775. Example
  776.  
  777. This formula calculates the closest business day after December 25, 1993, assuming that the 25th is a holiday:
  778.  
  779. @BUSDAY(@DATE(93,12,25),0,@DATE(93,12,25)) = 34330 (December 27, 1993)
  780.  
  781.  
  782.  
  783.  
  784.