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

  1. @D360 - Difference Between Dates
  2.  
  3. Syntax
  4.  
  5. @D360(StartDate, EndDate)
  6.  
  7.  
  8.  
  9. StartDate    Date number. See "Using dates and times in Quattro Pro."
  10.  
  11. EndDate    Date number.
  12.  
  13.  
  14.  
  15. @D360 returns the number of days between two dates, based on a 360-day year (twelve 30-day months). Use this function to help compute payments if your accounting system is based on this calendar. The formula conforms to the 1990 modifications to the Securities Industry Association's 1986 edition of Standard Security Calculation Methods.
  16.  
  17. A similar function, @DAYS360, differs from @D360 by adding a third argument, Method. When you specify Method as FALSE (the default), you can in some cases get a different result using @DAYS360 from the one returned by @D360. See @DAYS360 for details.
  18.  
  19. For a conventional year of 365 days (366 in leap years), use @DATEDIF or subtraction.
  20.  
  21. Examples
  22.  
  23. To calculate the number of days between March 3 and May 31 of 1996:
  24.  
  25. @D360(@DATE(96,3,3), @DATE(96,5,31)) = 87
  26.  
  27. The same calculation using date values: @D360(35127, 35216) = 87
  28.  
  29. However, @DAYS360 gives a different result when no Method is specified:
  30.  
  31. @DAYS360(@DATE(96,3,3), @DATE(96,5,31)) = 88
  32.  
  33. @DATE
  34.  
  35. Syntax
  36.  
  37. @DATE(Yr, Mo, Day)
  38.  
  39.  
  40.  
  41. Yr    For years 1900 through 3199, the four-digit year is valid. Or, use a numeric value between -300 and 1299 (-300 = 1600, 0 = 1900, 1299 = 3199)
  42.  
  43. Mo    A numeric value between 1 and 12.
  44.  
  45. Day    A numeric value between 1 and 31.
  46.  
  47.  
  48.  
  49. @DATE(40,12,31) and @DATE(1940,12,31) both return 14976 (31-Dec-1940).
  50.  
  51. @DATE(140,12,31) and @DATE(2040,12,31) both return 51501 (31-Dec-2040)
  52.  
  53. @DATE returns the date/time "serial number" of the date specified with year, month, and day arguments. This serial number can range from -109,571 (January 1,1600) to 474,816 (December 31, 3199). December 30, 1899 is 0, so a positive number represents the number of days from December 30, 1899 up to the date referenced in the formula.
  54.  
  55. Date/time serial numbers are used in notebook calculations. (The fractional portion of a serial number is used for the time @functions.)
  56.  
  57. To display a date/time serial number in a date format, right-click cells, click Cell Properties, then click Numeric Format. This shows the date in its more common form (for example, Jan-1-94 instead of 34335).
  58.  
  59. Any illegal dates return ERR as their value, for example, @DATE(87,2,29). (This date corresponds to February 29, 1987, which is impossible; 1987 was not a leap year.) See "Using dates and times in Quattro Pro."
  60.  
  61. Examples
  62.  
  63. @DATE(1940,12,31)= 14976 (December 31, 1940)
  64.  
  65. @DATE(2040,12,31)= 51501 (December 31, 2040)
  66.  
  67. @DATE(93,1,1) = 33970 (January 1, 1993)
  68.  
  69. @DATE(91,9,13) = 33494 (September 13, 1991)
  70.  
  71. @DATE(0,1,1) = 2 (January 1, 1900)
  72.  
  73. @DATE(-300,1,1) = -109571 (January 1, 1600)
  74.  
  75. @DATE(1299,12,31) = 474816 (December 31, 3199)
  76.  
  77. @DATEDIF - Days, Months, or Years Between Dates
  78.  
  79. Syntax
  80.  
  81. @DATEDIF(StartDate, EndDate, Format)
  82.  
  83.  
  84.  
  85. StartDate    Date number. See "Using dates and times in Quattro Pro."
  86.  
  87. EndDate    Date number.
  88.  
  89. Format    Code, entered as text, specifying format of the result:
  90.  
  91. y = Years
  92.  
  93. m = Months
  94.  
  95. d = Days
  96.  
  97. md = Days, disregarding months and years
  98.  
  99. ym = Months, disregarding years
  100.  
  101. yd = Days, disregarding years
  102.  
  103.  
  104.  
  105. @DATEDIF calculates the number of years, months, or days between two dates. @DATEDIF uses a 365-day year and a 366-day leap year.
  106.  
  107. To find the number of days between two dates using a 360-day financial year, use @D360 or @DAYS360.
  108.  
  109. Examples
  110.  
  111. @DATEDIF(@DATE(96,3,3), @DATE(96,5,31),"d") = 89
  112.  
  113. Similarly, @DATE(96,5,31)- @DATE(96,3,3) = 89
  114.  
  115. @DATEDIF(@DATE(94,3,3), @DATE(96,5,31),"md") = 28, the number of days from the 3rd to and the 31st of any month, disregarding the difference in years
  116.  
  117. @DATEDIF(@DATE(94,3,3), @DATE(96,5,31),"ym") = 2, the number of months from March to May, disregarding the difference in years
  118.  
  119. @DATEINFO - Information About a Date
  120.  
  121. Syntax
  122.  
  123. @DATEINFO(Date, Attribute)
  124.  
  125.  
  126.  
  127. Date    Date number. See "Using dates and times in Quattro Pro."
  128.  
  129. Attribute    Code for the type of information you want:
  130.  
  131. 1 = Day of the week as a label, in short format (Mon)
  132.  
  133. 2 = Day of the week as a label, long format (Monday)
  134.  
  135. 3 = Day of the week as an integer from 0 (Monday) through 6 (Sunday)
  136.  
  137. 4 = Week of the year as an integer from 1 to 53
  138.  
  139. 5 = Month of the year as a label, in short format (Jan)
  140.  
  141. 6 = Month of the year as a label, in long format (January)
  142.  
  143. 7 = Number of days in the month specified by date
  144.  
  145. 8 = Number of days left in the month specified by date
  146.  
  147. 9 = Last day of the month specified by date
  148.  
  149. 10 = The Quarter date is in, as an integer from 1 (Q1) through 4 (Q4)
  150.  
  151. 11 = 1 if the year specified by date is a leap year; 0 if the year is not a leap year
  152.  
  153. 12 = Day of the year specified by date, as a number from 1 to 366
  154.  
  155. 13 = Days left in the year specified by date, as a number
  156.  
  157.  
  158.  
  159. @DATEINFO returns information about a date number. @DATEINFO uses a 365-day year and a 366-day leap year.
  160.  
  161. @DATEINFO supports dates ranging from 1900-2099.
  162.  
  163. The valid date calculation range for this function is 01/01/1900 through 12/31/2099.
  164.  
  165. Examples
  166.  
  167. @DATEINFO(@DATE(96,3,3),2) = Sunday
  168.  
  169. @DATEINFO(@DATE(96,3,3),4) = 9, because March 3, 1996 is in the 9th week of the year; weeks start on Monday and end on Sunday.
  170.  
  171. @DATEINFO(@DATE(96,3,3),13) = 303, the number of days left in the year 1996
  172.  
  173. @DATEVALUE - Value Corresponding to Date
  174.  
  175. Syntax
  176.  
  177. @DATEVALUE(DateString)
  178.  
  179.  
  180.  
  181. DateString    A numeric or string value in any valid date format, enclosed by quotation marks (or coordinates or a cell name for a selection that contains a date string).
  182.  
  183.  
  184.  
  185. @DATEVALUE returns a serial date value that corresponds to the value in DateString. If the value in DateString is not in the correct format or is not enclosed in quotes, ERR or a syntax error message is returned. If DateString is entered using the international format, the year, month, and day must be in the same order as the current international date format (set in Tools  Settings  International) and the separator character must also agree.
  186.  
  187. You can display resulting date string values in standard date formats by right-clicking cells, clicking Cell Properties, then clicking Numeric Format.
  188.  
  189. There are five valid formats for DateString:
  190.  
  191.   DD-MMM-YY ("04-Jul-92").
  192.   
  193.   DD-MMM ("04-Jul") (assumes the current year).
  194.   
  195.   MMM-YY ("Jul-92") (assumes the first of the month).
  196.   
  197.   DD-MMM-YYYY ("04-Jul-1992").
  198.   
  199.   MM-YYYY ("Jul-1992") (assumes the first of the month).
  200.   
  201.   The Long International date format specified as the system default, two of which are MM/DD/YY ("07/04/92") and MM/DD/YYYY ("07/04/1992").
  202.   
  203.   The Short International date format specified as the system default, one of which are MM/DD ("07/18"). This assumes the current year. See "Using dates and times in Quattro Pro."
  204.   
  205. @DATEVALUE is included for compatibility with other products.
  206.  
  207. Examples
  208.  
  209. @DATEVALUE("12-Mar-2010") = 40249
  210.  
  211. @DATEVALUE("07/04/92") = 33789
  212.  
  213. @DATEVALUE("JUL-92") = 33786 (July 1, 1992) 
  214.  
  215. @DATEVALUE("04-may-93") = 34093
  216.  
  217. @DATEVALUE(07/04/94) = 0.018617 (no quotes makes Quattro Pro divide the numbers) 
  218.  
  219. @DATEVALUE("May-04-1992") = ERR
  220.  
  221. @DAVG - Database Average
  222.  
  223. Syntax
  224.  
  225. @DAVG(Block, Column, Criteria)
  226.  
  227.  
  228.  
  229. Block    The 2-D cells (reference or name) containing the database, including field names.
  230.  
  231. Column    The number of the column containing the field you want to average (the first column in Block is 0, the second is 1, and so on).
  232.  
  233. Criteria    2-D cells containing search criteria; the first row must be field names.
  234.  
  235.  
  236.  
  237. @DAVG averages selected field entries in a database. It includes only those entries in Column whose records meet the criteria specified in Criteria.
  238.  
  239. The field specified in your criteria and the field being averaged need not be the same. The field averaged is that contained within the column you specify as Column.
  240.  
  241. You can specify all or part of your database as Block, but field names must be included for each field you include in the cells.
  242.  
  243. Examples
  244.  
  245. These examples refer to the database and criteria tables.
  246.  
  247.  
  248.  
  249.     A    B    C    D
  250.  
  251. 1                
  252.  
  253. 2    DATE    LOCATION    REP    AMOUNT
  254.  
  255. 3    Jul-91    San Fran    CJ    $14,999
  256.  
  257. 4    Jul-91    LA    RX    $28,725
  258.  
  259. 5    Jul-91    Chicago    RX    $18,600
  260.  
  261. 6    Jul-91    NY    CJ    $15,600
  262.  
  263. 7    Aug-91    Chicago    CJ    $23,769
  264.  
  265. 8    Aug-91    LA    RX    $34,345
  266.  
  267. 9                
  268.  
  269. 10        Criteria Table        
  270.  
  271. 11    Date    Location    Rep    
  272.  
  273. 12    Jul-91    San Fran    CJ    
  274.  
  275. 13        LA        
  276.  
  277.  
  278.  
  279. @DAVG(A2..D8,3,A11..A12) = $19,481 (average of July sales)
  280.  
  281. @DAVG(A2..D8,3,B11..B13) = $26,023 (average of California sales)
  282.  
  283. @DAVG(A2..D8,3, C11..C12) = $18,123 (average of CJ's sales)
  284.  
  285. @DAVG(A2..D8,4,A11..C13) = ERR (Column figure too high)
  286.  
  287. @DAVG(A2..D8,2,A11..A12) = 0 (labels are treated as 0)
  288.  
  289. @DAY - Day Portion of Date Serial Number
  290.  
  291. Syntax
  292.  
  293. @DAY(DateTimeNumber)
  294.  
  295.  
  296.  
  297. DateTimeNumber    A numeric value between -109571 and 474816.9999999, representing a date/time serial number: -109571 = January 1, 1600; 0 = December 31, 1899; 474816 = December 31, 3199; the decimal = time (24 hr).
  298.  
  299.  
  300.  
  301. @DAY converts the date/time serial number you supply as DateTimeNumber into the number associated with that day (1-31). Decimal (time) portions of the number are ignored. See "Using dates and times in Quattro Pro."
  302.  
  303. Examples
  304.  
  305. @DAY(33508) = 27 (9/27/91)
  306.  
  307. @DAY(32134) = 23 (12/23/87)
  308.  
  309. @DAY(@DATE(93,9,10)) = 10
  310.  
  311. @DAY(474817) = ERR because the number you entered was larger than 474816.9999999
  312.  
  313. @DAYS360 - Difference Between Dates
  314.  
  315. Syntax
  316.  
  317. @DAYS360(StartDate, EndDate, <Method>)
  318.  
  319.  
  320.  
  321. StartDate    Date number. See "Using dates and times in Quattro Pro."
  322.  
  323. EndDate    Date number.
  324.  
  325. Method    Optional logical value that specifies US or European method:
  326.  
  327. FALSE or 0 = US (NASD); the default if you do not specify a method
  328.  
  329. TRUE or 1 = European method
  330.  
  331.  
  332.  
  333. @DAYS360 returns the number of days between two dates based on a 360-day year (twelve 30-day months). Use this function to help compute payments if your accounting system is based on this calendar. The formula conforms to the 1990 modifications to the Securities Industry Association's 1986 edition of Standard Security Calculation Methods.
  334.  
  335. You can express dates either as text strings or date values.
  336.  
  337.   Method affects the result only in some cases when StartDate or EndDate is the 31st of the month:
  338.   
  339.   Using the US method, if StartDate is the 31st, @DAYS360 makes it the 30th of the same month. If the EndDate is the 31st and the StartDate is less than the 30th of a month, @DAYS360 makes EndDate the 1st of the next month; otherwise it makes EndDate the 30th of the same month.
  340.   
  341.   Using the European method, if StartDate or EndDate is the 31st, @DAYS360 makes it the 30th of the same month.
  342.   
  343. If StartDate occurs after EndDate, DAYS360 returns a negative number.
  344.  
  345. A similar function, @D360, is available. It omits the optional Method argument and will in some cases give a different result from the one returned by @DAYS360.
  346.  
  347. For a conventional year of 365 days (366 in leap years), use @DATEDIF or subtraction.
  348.  
  349. Examples
  350.  
  351. @DAYS360(@DATE(96,3,3), @DATE(96,5,31),FALSE) = 88
  352.  
  353. @DAYS360(@DATE(96,3,3), @DATE(96,5,31)) = 88
  354.  
  355. @DAYS360(@DATE(96,3,3), @DATE(96,5,31),1) = 87
  356.  
  357. The same calculation using date values:
  358.  
  359. DAYS360(35127, 35216,TRUE) = 87
  360.  
  361. Using subtraction, 
  362.  
  363. @DATE(96,5,31) - @DATE(96,3,3) = 89, using a 364-day year
  364.  
  365. @DB - Declining Balance Depreciation
  366.  
  367. Syntax
  368.  
  369. @DB(Cost, Salvage, Life, Period,<Month>)
  370.  
  371.  
  372.  
  373. Cost    Amount originally paid for an asset.
  374.  
  375. Salvage    Estimated value at end of asset life.
  376.  
  377. Life    Number of periods the asset takes to depreciate to its salvage value.
  378.  
  379. Period    Length of time for which you want to know the depreciation allowance.
  380.  
  381. Month    Number of months in the first year (optional); If Month is omitted, @DB uses 12.
  382.  
  383.  
  384.  
  385. @DB calculates the depreciation of an asset over a specified period using the fixed-declining balance method. @DB uses the following formulas to calculate depreciation for a period:
  386.  
  387. (cost - total depreciation from prior periods) * rate
  388.  
  389. rate = , rounded to three decimal places
  390.  
  391. where
  392.  
  393.  
  394.  
  395. S    salvage
  396.  
  397. C    cost
  398.  
  399. L    life
  400.  
  401.  
  402.  
  403. Depreciation for the first and last periods are special cases:
  404.  
  405. For the first period, DB uses the formula cost * rate * month / 12
  406.  
  407. For the last period, DB uses this formula:
  408.  
  409. ((cost - total depreciation from prior periods) * rate * (12 - month)) / 12
  410.  
  411.   Cost can be any positive value, including 0. If Cost is 0, the result of @DB is 0.
  412.   
  413.   Salvage can be any positive value, but must be greater than 0, since assets should have a salvage value. If Salvage is greater than Cost, the result of @DB is negative.
  414.   
  415.   Life and Period can be any positive value, but not 0. They must be in the same units, usually years. Life cannot be greater than Period.
  416.   
  417. The fixed-declining balance method slows the rate of depreciation in comparison to the double-declining balance method, so more depreciation expense can be written off in later periods. Depreciation ends when the asset's book value (asset cost minus accumulated depreciation) reaches its salvage value.
  418.  
  419. Example
  420.  
  421. Your office uses a machine purchased on July 29, 1993, for $13,250. It has an expected life of 10 years and expected salvage value of $100. Your fiscal years ends December 31, so the first period has 5 months. To calculate fourth-period depreciation for 1996:
  422.  
  423. @DB(13250,100,10,4,5) = 1616.145
  424.  
  425. @DCOUNT - Database Count
  426.  
  427. Syntax
  428.  
  429. @DCOUNT(Block, Column, Criteria)
  430.  
  431.  
  432.  
  433. Block    The 2-D cells (reference or name) containing the database, including field names.
  434.  
  435. Column    The number of the column containing the field you want to count (the first column in Block is 0, the second is 1, and so on).
  436.  
  437. Criteria    2-D cells containing search criteria; the first row must be field names.
  438.  
  439.  
  440.  
  441. @DCOUNT counts selected field entries in a database. It includes only those non-blank entries in Column whose records meet the criteria specified in Criteria. (If you specifically want to count blank cells, use @COUNTBLANK instead of @DCOUNT.)
  442.  
  443. The field specified in your criteria and the field being counted need not be the same. The field counted is that contained within the column you specify as Column.
  444.  
  445. You can specify all or part of your database as Block, but field names must be included for each field you include in the cells.
  446.  
  447. Examples
  448.  
  449.  
  450.  
  451.     A    B    C    D
  452.  
  453. 1                
  454.  
  455. 2    DATE    LOCATION    REP    AMOUNT
  456.  
  457. 3    Jul-91    San Fran    CJ    $14,999
  458.  
  459. 4    Jul-91    San Jose    RX    $25,000
  460.  
  461. 5    Jul-91    Chicago    RX    $18,998
  462.  
  463. 6    Jul-91    NY    CJ    $15,600
  464.  
  465. 7    Aug-91    Chicago    CJ    $23,769
  466.  
  467. 8    Aug-91    LA    RX    $34,345
  468.  
  469. 9                
  470.  
  471. 10        CRITERIA TABLE         
  472.  
  473. 11    Date    Location    Rep    
  474.  
  475. 12    Jul-91    San Fran    CJ    
  476.  
  477. 13        LA        
  478.  
  479.  
  480.  
  481. These examples refer to the database and criteria tables.
  482.  
  483. @DCOUNT(A2..D8,3,A11..A12) = 4 (number of July sales)
  484.  
  485. @DCOUNT(A2..D8,3,B11..B13) = 2 (number of San Fran and LA sales)
  486.  
  487. @DCOUNT(A2..D8,3,C11..C12) = 3 (number of CJ's sales)
  488.  
  489. @DCOUNT(A2..D8,4,A11..C13) = ERR (Column figure too high)
  490.  
  491. @DCOUNT(A3..D8,3,A11..A12) = 6 (incorrect--field names not included)
  492.  
  493. @DDB - Double-Declining Balance Depreciation
  494.  
  495. Syntax
  496.  
  497. @DDB(Cost, Salvage, Life, Period)
  498.  
  499.  
  500.  
  501. Cost    A numeric value representing the amount paid for an asset.
  502.  
  503. Salvage    A numeric value representing the value of an asset at the end of its useful life.
  504.  
  505. Life    A numeric value representing the expected useful life of an asset (in years).
  506.  
  507. Period    A numeric value representing the time period for which you want to calculate depreciation.
  508.  
  509.  
  510.  
  511. @DDB determines accelerated depreciation values for an asset, given the initial cost, life expectancy, end value, and depreciation period. It calculates depreciation using the double-declining balance method.
  512.  
  513. Depreciation value (DDB) and book value (BV) are calculated by:
  514.  
  515.  
  516.  
  517. BV    Cost
  518.  
  519. DDB    2BV/Life
  520.  
  521. BV    BV - DDB
  522.  
  523.  
  524.  
  525. These statements must be true:
  526.  
  527. Life │ Period │ 1
  528.  
  529. Life and Period must be integers
  530.  
  531. Cost │ Salvage │ 0
  532.  
  533. @SLN and @SYD offer other depreciation methods. @VDB uses the variable-rate declining balance method.
  534.  
  535. Examples
  536.  
  537. Suppose you just bought a new $4000 computer. The dealer says you can sell it back to the store for $350 after eight years, but no one would want to buy it after that. In other words, Salvage is $350 and Life is 8. To calculate the double-declining depreciation allowance of this computer by the second year, enter this formula:
  538.  
  539. @DDB(4000,350,8,2) = $750
  540.  
  541. These examples show depreciation values for the first five years of a $15,000 investment with a salvage value of $3000 and a life of 10 years:
  542.  
  543. @DDB(15000,3000,10,1) = $3,000
  544.  
  545. @DDB(15000,3000,10,2) = $2,400
  546.  
  547. @DDB(15000,3000,10,3) = $1,920
  548.  
  549. @DDB(15000,3000,10,4) = $1,536
  550.  
  551. @DDB(15000,3000,10,5) = $1,229
  552.  
  553. @DDELINK
  554.  
  555. Syntax
  556.  
  557. @DDELINK([AppName|Topic]"DataToReceive", <nCols>, <nRows>, <nSheets>)
  558.  
  559.  
  560.  
  561. AppName    The DDE-server application to contact. The entire path to each file must be included.
  562.  
  563. Topic    The table, spreadsheet, document, or other file in the DDE-server application from which to retrieve data. The entire path to each file must be included.
  564.  
  565. DataToReceive    The field, cells, bookmark, or other information to receive from the application (DDE Item string).
  566.  
  567. nCols    The number of columns in the data cells (optional).
  568.  
  569. nRows    The number of rows in the data cells (optional).
  570.  
  571. nSheets    The number of sheets in the data cells (optional).
  572.  
  573.  
  574.  
  575. @DDELINK creates a "live" data link from another Windows application that supports DDE (Dynamic Data Exchange). Using @DDELINK is equivalent to choosing Edit|Paste special with data from another application copied to the Clipboard, and then choosing Paste Link from the Paste special dialog box.
  576.  
  577. AppName and Topic are the same arguments used in the macro {INITIATE} except that "System" is not accepted as a substitute for Topic. DataToReceive is a string indicating the location of the target data in the server application.
  578.  
  579. When you enter @DDELINK into a cell, the linked data appears there. Unless you indicate otherwise, the data takes up as much space as it did in the original application. You can use nCols, nRows, and nSheets to specify smaller dimensions. If any of the arguments is 0 or omitted, the original dimension applies.
  580.  
  581. @DDELINK sets up a zone of cells that can be overwritten whenever data changes in the DDE-server application. Avoid storing other data near @DDELINK, and consider using the limit arguments.
  582.  
  583. Examples
  584.  
  585. The maximum size of the data cells for the following formula is 5 cells by 5 cells:
  586.  
  587. @DDELINK([EXCEL|FILE1]"R1C1:R5C5")
  588.  
  589. With nRows = 3, the maximum size of the data cells drops to 5 cells by 3 cells:
  590.  
  591. @DDELINK([EXCEL|FILE1]"R1C1:R5C5",0,3)
  592.  
  593. @DEGREES - Convert Radians to Degrees
  594.  
  595. Syntax
  596.  
  597. @DEGREES(X)
  598.  
  599.  
  600.  
  601. X    A numeric value representing radians.
  602.  
  603.  
  604.  
  605. @DEGREES converts the given number of radians to degrees. It uses this formula:
  606.  
  607. 180 times X divided by pi
  608.  
  609. Examples
  610.  
  611. @DEGREES(0.5) = 28.64789 
  612.  
  613. @DEGREES(0.017) = 0.974028 
  614.  
  615. @DEGREES(@PI/2) = 90
  616.  
  617. @DELTA - Test If Two Numbers are Equal
  618.  
  619. Syntax
  620.  
  621. @DELTA(X, <Y>)
  622.  
  623.  
  624.  
  625. X    Numeric value to check.
  626.  
  627. Y    Numeric value that X must equal for the function to return 1 (if omitted, assumed to be zero).
  628.  
  629.  
  630.  
  631. @DELTA tests whether X and Y are equal. If they are, @DELTA returns 1 (True); if not, @DELTA returns 0 (False).
  632.  
  633. Examples
  634.  
  635. @DELTA(1,2) = 0
  636.  
  637. @DELTA(2,2) = 1
  638.  
  639. @IF(@DELTA(2,2),"Equal","Not Equal") = Equal
  640.  
  641. @DEVSQ - Sum of the Squares of the Deviations
  642.  
  643. Syntax
  644.  
  645. @DEVSQ(List)
  646.  
  647.  
  648.  
  649. List    One or more numeric or cell values.
  650.  
  651.  
  652.  
  653. @DEVSQ returns the sum of the squares of the deviations of the numbers in List from their mean value.
  654.  
  655. @DEVSQ uses this formula:
  656.  
  657.  
  658.  
  659. Example
  660.  
  661. @DEVSQ(9,10,12,14,15) = 26
  662.  
  663. @DFRAC - Decimal to Fraction
  664.  
  665. Syntax
  666.  
  667. @DFRAC(Dec, Denom)
  668.  
  669.  
  670.  
  671. Dec    Number to be converted, expressed as a decimal.
  672.  
  673. Denom    Denominator; must be an integer > 0.
  674.  
  675.  
  676.  
  677. @DFRAC converts a number expressed as a decimal to a fraction using the specified denominator. @DFRAC reverses the effect of @FRACD.
  678.  
  679. The result looks like a decimal, but the portion to the right of the decimal point is actually the numerator of the fraction using the specified denominator. For example, you can use @DFRAC to convert a decimal to 32nds. Converting 99.375 to 32nds results in 99.12, representing 99 .
  680.  
  681. Format the cell that contains the @function to show the same number of decimal places as the number of digits in the desired Denom. For example, if Denom is 32, set the cell format to display two decimal places.
  682.  
  683. Example
  684.  
  685. @DFRAC(106.4375,32) = 106.14; the 14 to the right of the decimal place signifies .
  686.  
  687. @DGET - Database Value
  688.  
  689. Syntax
  690.  
  691. @DGET(database-block,column,criteria-block)
  692.  
  693.  
  694.  
  695. Block    The 2-D cells (reference or name) containing the database, including field names.
  696.  
  697. Column    The number of the column containing the field for which you want to return a value or label (the first column in Block is 0, the second is 1, and so on).
  698.  
  699. Criteria    2-D cells containing search criteria; the first row must be field names.
  700.  
  701.  
  702.  
  703. @DGET returns a value or label from a field of a database table that meets specified criteria.
  704.  
  705. If no record matches the criteria, @DGET returns ERR.
  706.  
  707. If more than one record matches the criteria, @DGET returns ERR.
  708.  
  709. Examples
  710.  
  711.  
  712.  
  713.     A    B    C    D
  714.  
  715. 1                
  716.  
  717. 2    DATE    LOCATION    REP    AMOUNT
  718.  
  719. 3    Jul-91    San Fran    CJ    $14,999
  720.  
  721. 4    Jul-91    LA    RX    $28,725
  722.  
  723. 5    Jul-91    Chicago    RX    $18,600
  724.  
  725. 6    Jul-91    NY    CJ    $15,600
  726.  
  727. 7    Aug-91    Chicago    CJ    $23,769
  728.  
  729. 8    Aug-91    LA    RX    $34,345
  730.  
  731. 9                
  732.  
  733. 10        CRITERIA TABLE         
  734.  
  735. 11    Date    Location    Rep    
  736.  
  737. 12    Jul-91    San Fran    CJ    
  738.  
  739. 13        LA        
  740.  
  741.  
  742.  
  743. @DGET(A2..D8,3,B11..B12) = $14,999 (Amount for San Fran)
  744.  
  745. @DGET(A2..D8,3,C11..C12) = ERR (Returns ERR because CJ has more than one Amount entry)
  746.  
  747. @DGET(A2..D8,3,B11..C12) = $14,999 (Amount in July for San Fran)
  748.  
  749. @DISC - Discount Rate
  750.  
  751. Syntax
  752.  
  753. @DISC(Settle, Maturity, Price, <Redemption>, <Calendar>)
  754.  
  755.  
  756.  
  757. Settle    Number representing the settlement date; must be < Maturity.
  758.  
  759. Maturity    Number representing the maturity date; must be > Settle.
  760.  
  761. Price    Settlement price per 100 face value; must be │ 0 and ú 100.
  762.  
  763. Redemption    Redemption value per 100 face value (must be > 0; the default is 100).
  764.  
  765. Calendar    Flag specifying which calendar to observe (0 = 30/360, 1 = actual/actual, 2 = actual/360, 3 = actual/365; the default is 0).
  766.  
  767.  
  768.  
  769. @DISC computes the discount rate for a security, which is the percentage discount offered on a security for a 360-day or 365-day term.
  770.  
  771. @DISC computes the discount rate using this formula:
  772.  
  773.  
  774.  
  775.  
  776.  
  777. D    discount rate
  778.  
  779. P    price
  780.  
  781. R    redemption
  782.  
  783. b    basis
  784.  
  785. M     maturity
  786.  
  787. S    settle
  788.  
  789.  
  790.  
  791. tb is the number of days over which the discount rate applies (360 or 365).
  792.  
  793. Example
  794.  
  795. This formula calculates the discount rate for a bond with the following terms: Settle is May 27, 1995, Maturity is November 24, 1995, Price is 96.2492, Redemption is 100, and Calendar is 2 (actual/360).
  796.  
  797. @DISC(@DATE(95,5,27),@DATE(95,11,24),96.2492,100,2) = 0.074602
  798.  
  799. @DMAX - Database Maximum Value
  800.  
  801. Syntax
  802.  
  803. @DMAX(Block, Column, Criteria)
  804.  
  805.  
  806.  
  807. Block    The 2-D cell cells (reference or name) containing the database, including field names.
  808.  
  809. Column    The number of the column containing the field for which you want to find the maximum value (the first column in Block is 0, the second is 1, and so on).
  810.  
  811. Criteria    2-D cells containing search criteria; the first row must be field names.
  812.  
  813.  
  814.  
  815. @DMAX finds the maximum value of selected field entries in a database. It includes only those entries in Column whose records meet the criteria specified in Criteria.
  816.  
  817. The field specified in your criteria and the field you are finding the maximum value for need not be the same. The field you are finding the maximum value for is that contained within the column you specify as Column.
  818.  
  819. You can specify all or part of your database as Block, but field names must be included for each field you include in the cells.
  820.  
  821. Examples
  822.  
  823.  
  824.  
  825.     A    B    C    D
  826.  
  827. 1                
  828.  
  829. 2    DATE    LOCATION    REP    AMOUNT
  830.  
  831. 3    Jul-91    San Fran    CJ    $14,999
  832.  
  833. 4    Jul-91    LA    RX    $28,725
  834.  
  835. 5    Jul-91    Chicago    RX    $18,600
  836.  
  837. 6    Jul-91    NY    CJ    $15,600
  838.  
  839. 7    Aug-91    Chicago    CJ    $23,769
  840.  
  841. 8    Aug-91    LA    RX    $34,345
  842.  
  843. 9                
  844.  
  845. 10        CRITERIA TABLE         
  846.  
  847. 11    Date    Location    Rep    
  848.  
  849. 12    Jul-91    San Fran    CJ    
  850.  
  851. 13        LA        
  852.  
  853.  
  854.  
  855. @DMAX(A2..D8,3,A11..A12) = $28,725 (highest July sale)
  856.  
  857. @DMAX(A2..D8,3,B11..B13) = $34,345 (highest California sale)
  858.  
  859. @DMAX(A2..D8,3,C11..C12) = $23,769 (highest of CJ's sales)
  860.  
  861. @DMAX(A2..D8,4,A11..C13) = ERR (Column figure too high)
  862.  
  863. @DMAX(A3..D8,3,A11..A12) = $34,345 (incorrect--field names not included)
  864.  
  865. @DMIN - Database Minimum Value
  866.  
  867. Syntax
  868.  
  869. @DMIN(Block, Column, Criteria) 
  870.  
  871.  
  872.  
  873. Block    Cells (reference or name) containing the database, including field names.
  874.  
  875. Column    The number of the column containing the field for which you want to find the minimum value (the first column in Block is 0, the second is 1, and so on).
  876.  
  877. Criteria    Cells containing search criteria; the first row must be field names.
  878.  
  879.  
  880.  
  881. @DMIN finds the minimum value of selected field entries in a database. It includes only those entries in Column whose records meet the criteria specified in Criteria.
  882.  
  883. The field specified in your criteria and the field for which you are finding the minimum value need not be the same. The field for which you are finding the minimum value is that contained within the column you specify as Column.
  884.  
  885. You can specify all or part of your database as Block, but field names must be included for each field you include in the cells.
  886.  
  887. Examples
  888.  
  889.  
  890.  
  891.     A    B    C    D
  892.  
  893. 1                
  894.  
  895. 2    DATE    LOCATION    REP    AMOUNT
  896.  
  897. 3    Jul-91    San Fran    CJ    $14,999
  898.  
  899. 4    Jul-91    LA    RX    $28,725
  900.  
  901. 5    Jul-91    Chicago    RX    $18,600
  902.  
  903. 6    Jul-91    NY    CJ    $15,600
  904.  
  905. 7    Aug-91    Chicago    CJ    $23,769
  906.  
  907. 8    Aug-91    LA    RX    $34,345
  908.  
  909. 9                
  910.  
  911. 10        CRITERIA TABLE         
  912.  
  913. 11    Date    Location    Rep    
  914.  
  915. 12    Jul-91    San Fran    CJ    
  916.  
  917. 13        LA        
  918.  
  919.  
  920.  
  921. @DMIN(A2..D8,3,A11..A12) = $14,999 (smallest July sale)
  922.  
  923. @DMIN(A2..D8,3,B11..B13) = $14,999 (smallest California sale)
  924.  
  925. @DMIN(A2..D8,3,C11..C12) = $14,999 (smallest of CJ's sales)
  926.  
  927. @DMIN(A3..D8,3,A11..A12) = $15,600 (incorrect--field names not included)
  928.  
  929. @DMIN(A2..D8,4,A11..C13) = ERR (Column figure too high)
  930.  
  931. @DOLLAR - Dollars as Text
  932.  
  933. Syntax
  934.  
  935. @DOLLAR(Num, <Dec>)
  936.  
  937.  
  938.  
  939. Num    Numeric value, reference to a cell that contains a numeric value, or formula that returns a numeric value.
  940.  
  941. Dec    How many digits you want to display to the right of the decimal point. If Dec is negative, @DOLLAR rounds off Num to the left of the decimal point. If you omit Dec, @DOLLAR rounds off to 2 decimal places.
  942.  
  943.  
  944.  
  945. @DOLLAR converts a numeric value to text, using currency format. Decimals are rounded to the specified place:
  946.  
  947.  
  948.  
  949. 0    $##,###
  950.  
  951. 2    $##,###.##
  952.  
  953. -3    $##,000
  954.  
  955.  
  956.  
  957. You can also format numeric values by right-clicking the cell and choosing Cell Properties, then Currency. The result looks the same, but the value remains a numeric value when you use Cell Properties, while @DOLLAR converts it to text.
  958.  
  959. Examples
  960.  
  961. @DOLLAR(9449.985, 2) = "$9449.99"
  962.  
  963. @DOLLAR(9449.985, 0) = "$9450"
  964.  
  965. @DOLLAR(9449.985, -3) = "$9000"
  966.  
  967. @DOLLAR(9449.985) = "$9449.99"
  968.  
  969. @DOLLARDE - Fractional Price Into Dollars
  970.  
  971. Syntax
  972.  
  973. @DOLLARDE(FracDollar, Denom)
  974.  
  975.  
  976.  
  977. FracDollar    Number and numerator of the fraction, expressed as number.numerator.
  978.  
  979. Denom    Denominator of the fraction:
  980.  
  981.  Denom must be a numeric value >0
  982.  
  983.  If Denom is not an integer, @DOLLARDE truncates it
  984.  
  985.  
  986.  
  987. @DOLLARDE converts a fractional price into dollars. Use @DOLLARDE to convert fractional values like stock prices into dollars.
  988.  
  989. Examples
  990.  
  991. @DOLLARDE(12.3,4) = 12.75
  992.  
  993. @DOLLARDE(12.5,8) = 12.625
  994.  
  995. @DOLLARFR - Dollar Price Into Fraction
  996.  
  997. Syntax
  998.  
  999. @DOLLARFR(DecDollar, Denom)
  1000.  
  1001.  
  1002.  
  1003. DecDollar    Dollar price.
  1004.  
  1005. Denom    Denominator of the fraction:
  1006.  
  1007.  Denom must be a numeric value >0
  1008.  
  1009.  If Denom is not an integer, @DOLLARFR truncates it
  1010.  
  1011.  
  1012.  
  1013. @DOLLARFR converts a dollar price into a fractional price. Use @DOLLARFR to convert dollars into fractional values like stock prices. The result is expressed in the format dollar.numerator; the denominator is the number you specified for Denom.
  1014.  
  1015. Examples
  1016.  
  1017. @DOLLARFR(12.75,4) = 12.3, meaning "12 and 3/4"
  1018.  
  1019. @DOLLARFR(12.625,8) = 12.5, meaning "12 and 5/8"
  1020.  
  1021. @DOLLARTEXT - Dollar Numeric Value Into Dollar Text
  1022.  
  1023. Syntax
  1024.  
  1025. @DOLLARTEXT(Number, <Format>)
  1026.  
  1027.  
  1028.  
  1029. Number    Numeric value, reference to a cell that contains a numeric value, or formula that returns a numeric value.
  1030.  
  1031. Format    1 = Displays dollar value in text; ignores decimal values.
  1032.  
  1033. 2 = Displays dollar value in text, followed by "Dollars".
  1034.  
  1035. 3 = Displays dollar value in text, followed by cent value in numbers.  The decimal is rounded to two decimal places.
  1036.  
  1037. 4 = Displays dollar value in text, followed by cent value in numbers, followed by "Dollars". This is the default if no Format is specified.
  1038.  
  1039. 5 = Displays dollar value in text, followed by "Dollars",  followed by cent value in text, followed by "Cents".
  1040.  
  1041.  
  1042.  
  1043. @DOLLARTEXT converts the numeric value to a cardinal number in text, similar to how numbers are written out on checks or official documents.
  1044.  
  1045. Examples
  1046.  
  1047. @DOLLARTEXT(100.25,1) = One Hundred
  1048.  
  1049. @DOLLARTEXT(100.25,2) = One Hundred Dollars
  1050.  
  1051. @DOLLARTEXT(956600.55,3) =  Nine Hundred Fifty-Six Thousand Six Hundred and 55/100
  1052.  
  1053. @DOLLARTEXT(66500.70,4) =  Sixty-Six Thousand Five Hundred and 70/100 Dollars
  1054.  
  1055. @DOLLARTEXT(66500.70,5) =  Sixty-Six Thousand Five Hundred Dollars and Seventy Cents
  1056.  
  1057. @DPURECOUNT - Database count numbers
  1058.  
  1059. Syntax
  1060.  
  1061. @DPURECOUNT (database-block,column,criteria-block)
  1062.  
  1063.  
  1064.  
  1065. Block    The 2-D cells (reference or name) containing the database, including field names.
  1066.  
  1067. Column    The number of the column containing the field for which you want to count all number field entries (the first column in Block is 0, the second is 1, and so on).
  1068.  
  1069. Criteria    2-D cells containing search criteria; the first row must be field names.
  1070.  
  1071.  
  1072.  
  1073. @DPURECOUNT counts all number field entries in a database that match the criteria.
  1074.  
  1075. You can specify all or part of your database as Block, but field names must be included for each field you include in the cells.
  1076.  
  1077. The field specified in your criteria and the field to be counted do not need to be the same. The field that is counted is the column you specify for Column.
  1078.  
  1079. Examples
  1080.  
  1081.  
  1082.  
  1083.     A    B    C    D
  1084.  
  1085. 1                
  1086.  
  1087. 2    DATE    LOCATION    REP    AMOUNT
  1088.  
  1089. 3    Jul-91    San Fran    CJ    $14,999
  1090.  
  1091. 4    Jul-91    LA    RX    $28,725
  1092.  
  1093. 5    Jul-91    Chicago    RX    $18,600
  1094.  
  1095. 6    Jul-91    NY    CJ    $15,600
  1096.  
  1097. 7    Aug-91    Chicago    CJ    $23,769
  1098.  
  1099. 8    Aug-91    LA    RX    $34,345
  1100.  
  1101. 9                
  1102.  
  1103. 10        CRITERIA TABLE         
  1104.  
  1105. 11    Date    Location    Rep    
  1106.  
  1107. 12    Jul-91    San Fran    CJ    
  1108.  
  1109. 13        LA        
  1110.  
  1111.  
  1112.  
  1113. @DPURECOUNT(A2..D8,3,B11..B12) = 1 (number of San Fran sales)
  1114.  
  1115. @DPURECOUNT(A2..D8,3,B11..B13) = 3 (number of San Fran and LA sales)
  1116.  
  1117. @DPURECOUNT(A2..D8,3,A11..A12) = 4 (number of July sales)
  1118.  
  1119. @DPURECOUNT(A2..D8,3,C11..C12) = 3 (number of CJ's sales)
  1120.  
  1121. @DPURECOUNT(A2..D8,3,A11..C13)= 2 (number of CJ's sales in San Fran in July and LA sales)
  1122.  
  1123. @DPURECOUNT(A2..D9,3,A11..B13)= 2 (same as above example because it ignores blank cells)
  1124.  
  1125. @DPURECOUNT(A2..D8,1,A11..B13)= 0 (no numbers in the column to count)
  1126.  
  1127. @DPURECOUNT(A3..D8,3,A11..A12)= 5 (incorrect, no field names were included)
  1128.  
  1129. @DPRODUCT - Database product value
  1130.  
  1131. Syntax
  1132.  
  1133. @DPRODUCT(database-block,column,criteria-block)
  1134.  
  1135.  
  1136.  
  1137. Block    The 2-D cells (reference or name) containing the database, including field names.
  1138.  
  1139. Column    The number of the column containing the field for which you want to multiply all matching values (the first column in Block is 0, the second is 1, and so on).
  1140.  
  1141. Criteria    2-D cells containing search criteria; the first row must be field names.
  1142.  
  1143.  
  1144.  
  1145. @DPRODUCT multiplies the values in a specified field from all records in a database that match the specified criteria.
  1146.  
  1147. @DSTD - Database Standard Deviation
  1148.  
  1149. Syntax
  1150.  
  1151. @DSTD(Block, Column, Criteria)
  1152.  
  1153.  
  1154.  
  1155. Block    Cells (reference or name) containing the database, including field names.
  1156.  
  1157. Column    The number of the column containing the field for which you want to find the standard deviation (the first column in Block is 0, the second is 1, and so on).
  1158.  
  1159. Criteria    Cells containing search criteria; the first row must be field names.
  1160.  
  1161.  
  1162.  
  1163. @DSTD finds the population standard deviation for selected field entries in a database. @DSTDS computes the standard deviation of sample data.
  1164.  
  1165. @DSTD includes only those entries in Column whose records meet the criteria specified in Criteria.
  1166.  
  1167. The field specified in Criteria and the field for which you are finding the standard deviation need not be the same. The field for which you are finding the standard deviation is the field contained within Column.
  1168.  
  1169. You can specify all or part of your database as Block, but field names must be included for each field in the cells.
  1170.  
  1171. Examples
  1172.  
  1173.  
  1174.  
  1175.     A    B    C    D
  1176.  
  1177. 1                
  1178.  
  1179. 2    DATE    LOCATION    REP    AMOUNT
  1180.  
  1181. 3    Jul-91    San Fran    CJ    $14,999
  1182.  
  1183. 4    Jul-91    LA    RX    $28,725
  1184.  
  1185. 5    Jul-91    Chicago    RX    $18,600
  1186.  
  1187. 6    Jul-91    NY    CJ    $15,600
  1188.  
  1189. 7    Aug-91    Chicago    CJ    $23,769
  1190.  
  1191. 8    Aug-91    LA    RX    $34,345
  1192.  
  1193. 9                
  1194.  
  1195. 10        CRITERIA TABLE         
  1196.  
  1197. 11    Date    Location    Rep    
  1198.  
  1199. 12    Jul-91    San Fran    CJ    
  1200.  
  1201. 13        LA        
  1202.  
  1203.  
  1204.  
  1205. @DSTD(A2..D8,3,B11..B13) = $8,126 (population SD of California sales)
  1206.  
  1207. @DSTD(A2..D8,3,C11..C12) = $4,000 (population SD of CJ's sales)
  1208.  
  1209. @DSTD(A2..D8,4,A11..C13) = ERR (Column figure too high)
  1210.  
  1211. @DSTDS - Database Sample Standard Deviation
  1212.  
  1213. Syntax
  1214.  
  1215. @DSTDS(Block, Column, Criteria)
  1216.  
  1217.  
  1218.  
  1219. Block    Cells (reference or name) containing the database, including field names.
  1220.  
  1221. Column    The number of the column containing the field for which you want to find the standard deviation (the first column in Block is 0, the second is 1, and so on).
  1222.  
  1223. Criteria    Cells containing search criteria; the first row must be field names.
  1224.  
  1225.  
  1226.  
  1227. @DSTDS finds the sample standard deviation for selected field entries in a database. @DSTD computes the standard deviation of population data.
  1228.  
  1229. This @function is not compatible with 1-2-3. If your file must be compatible with 1-2-3, use @DSTD instead.
  1230.  
  1231. Examples
  1232.  
  1233.  
  1234.  
  1235.     A    B    C    D
  1236.  
  1237. 1                
  1238.  
  1239. 2    DATE    LOCATION    REP    AMOUNT
  1240.  
  1241. 3    Jul-91    San Fran    CJ    $14,999
  1242.  
  1243. 4    Jul-91    LA    RX    $28,725
  1244.  
  1245. 5    Jul-91    Chicago    RX    $18,600
  1246.  
  1247. 6    Jul-91    NY    CJ    $15,600
  1248.  
  1249. 7    Aug-91    Chicago    CJ    $23,769
  1250.  
  1251. 8    Aug-91    LA    RX    $34,345
  1252.  
  1253. 9                
  1254.  
  1255. 10        CRITERIA TABLE         
  1256.  
  1257. 11    Date    Location    Rep    
  1258.  
  1259. 12    Jul-91    San Fran    CJ    
  1260.  
  1261. 13        LA        
  1262.  
  1263.  
  1264.  
  1265. @DSTDS(A2..D8,3,B11..B13) = $9,952 (sample SD of California sales)
  1266.  
  1267. @DSTDS(A2..D8,3,C11..C12) = $4,899 (sample SD of CJ's sales)
  1268.  
  1269. @DSUM - Database Sum
  1270.  
  1271. Syntax
  1272.  
  1273. @DSUM(Block, Column, Criteria)
  1274.  
  1275.  
  1276.  
  1277. Block    Cells (reference or name) containing the database, including field names.
  1278.  
  1279. Column    The number of the column containing the field you want to total (the first column in Block is 0, the second is 1, and so on).
  1280.  
  1281. Criteria    Cells containing search criteria; the first row must be field names.
  1282.  
  1283.  
  1284.  
  1285. @DSUM totals selected field entries in a database. It includes only those entries in Column whose records meet the criteria specified in Criteria.
  1286.  
  1287. The field specified in Criteria and the field you are finding the sum of need not be the same. The field you are finding the sum of is that contained within Column.
  1288.  
  1289. You can specify all or part of your database as Block, but field names must be included for each field you include in the cells.
  1290.  
  1291. Examples
  1292.  
  1293.  
  1294.  
  1295.     A    B    C    D
  1296.  
  1297. 1                
  1298.  
  1299. 2    DATE    LOCATION    REP    AMOUNT
  1300.  
  1301. 3    Jul-91    San Fran    CJ    $14,999
  1302.  
  1303. 4    Jul-91    LA    RX    $28,725
  1304.  
  1305. 5    Jul-91    Chicago    RX    $18,600
  1306.  
  1307. 6    Jul-91    NY    CJ    $15,600
  1308.  
  1309. 7    Aug-91    Chicago    CJ    $23,769
  1310.  
  1311. 8    Aug-91    LA    RX    $34,345
  1312.  
  1313. 9                
  1314.  
  1315. 10        CRITERIA TABLE         
  1316.  
  1317. 11    Date    Location    Rep    
  1318.  
  1319. 12    Jul-91    San Fran    CJ    
  1320.  
  1321. 13        LA        
  1322.  
  1323.  
  1324.  
  1325. @DSUM(A2..D8,3,A11..A12) = $77,924 (total of July sales)
  1326.  
  1327. @DSUM(A2..D8,3,B11..B13) = $78,069 (total of California sales)
  1328.  
  1329. @DSUM(A2..D8,3,C11..C12) = $54,368 (total of CJ's sales)
  1330.  
  1331. @DSUM(A2..D8,1,A11..A12) = 0
  1332.  
  1333. @DSUM(A2..D8,4,A11..C13) = ERR (Column figure too high)
  1334.  
  1335. @DURAT - Duration
  1336.  
  1337. Syntax
  1338.  
  1339. @DURAT(Discrate, Flows, <Initial>, <[Odd|Periods]>, <Simp>, <Pathdep>, <Filter>, <Start>, <End>)
  1340.  
  1341.  
  1342.  
  1343. Discrate    Discount rate or cells containing discount rates that correspond to cash flows stored in Flows.
  1344.  
  1345. Flows    Cells containing cash flows associated with the discount rates in Discrate.
  1346.  
  1347. Initial    Initial cash flow (the default is 0).
  1348.  
  1349. 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).
  1350.  
  1351. Simp    Flag specifying how to discount:
  1352.  
  1353. 0 = compounded discounting (default)
  1354.  
  1355. 1 = mixed compounded and simple discounting
  1356.  
  1357. 2 = simple discounting
  1358.  
  1359. Pathdep    Flag specifying whether to apply path-dependent compounding to each flow; 0 = no path (default); 1 = path.
  1360.  
  1361. 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
  1362.  
  1363. Start    A starting cash flow amount to compare against individual flows.
  1364.  
  1365. End    An ending cash flow amount to compare against individual flows.
  1366.  
  1367.  
  1368.  
  1369. @DURAT calculates the duration of a specified cash flow structure. Duration (also called Macaulay duration) is defined as the weighted average time to receipt of a cash flow where the present values of the cash flows are the weights. Each weight in the sum is the present value of a cash flow divided by the net present value of all the cash flows.
  1370.  
  1371. @DURAT computes Macaulay duration using this formula:
  1372.  
  1373.  
  1374.  
  1375. where
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381. Di    Distance
  1382.  
  1383. Du    Duration
  1384.  
  1385. Fl    Flows
  1386.  
  1387. I    Initial
  1388.  
  1389.  
  1390.  
  1391. n is the number of cash flows. DFi is the discount factor corresponding to the ith flow.
  1392.  
  1393. Modified (or Hicks) duration is defined as a sensitivity of present value to change in the internal rate of return. Modified duration is not defined for multiple discount rates (when Discrate is a selection of discount rates).
  1394.  
  1395. To convert Macaulay duration to Modified (or Hicks) duration, use this formula:
  1396.  
  1397. modified duration = Macaulay duration / (1 + Discrate)
  1398.  
  1399. Example
  1400.  
  1401. Consider a cash flow stream comprising four flows of $5, followed by four flows of $10, followed by seven flows of $11, followed by a final flow of $110. The first flow is 0.56745 periods away. The next 11 flows occur one period apart. The last four flows are 1.5 periods apart. This formula calculates the duration, assuming compound discounting, no initial cash flow, and the data shown in the next figure:
  1402.  
  1403. @DURAT(D8,A2..B5,B8,C2..D4) = 10.28273
  1404.  
  1405.  
  1406.  
  1407.     A    B    C    D
  1408.  
  1409. 1    Cash Flows        Periods    
  1410.  
  1411. 2    4    $5    1    0.56745
  1412.  
  1413. 3    4    $10    11    1
  1414.  
  1415. 4    7    $11    4    1.5
  1416.  
  1417. 5    1    $110        
  1418.  
  1419. 6                
  1420.  
  1421. 7    Initial        Discount Rate    
  1422.  
  1423. 8        0        7.85%
  1424.  
  1425. @DURATION - Macaulay Duration
  1426.  
  1427. Syntax
  1428.  
  1429. @DURATION(Settle, Maturity, Coupon, Yield, <Freq>, <Calendar>)
  1430.  
  1431.  
  1432.  
  1433. Settle    Number representing the settlement date; must be < Maturity.
  1434.  
  1435. Maturity    Number representing the maturity date; must be > Settle.
  1436.  
  1437. Coupon    Coupon rate; must be │ 0.
  1438.  
  1439. Yield    Annual yield; must be > 0 and ú 1.
  1440.  
  1441. Freq    Frequency of coupon payments in the number of payments per year (can be 1, 2, 3, 4, 6, or 12; the default is 2).
  1442.  
  1443. Calendar    Flag specifying which calendar to observe (0 = 30/360, 1 = actual/actual, 2 = actual/360, 3 = actual/365; the default is 0).
  1444.  
  1445.  
  1446.  
  1447. @DURATION returns the Macaulay duration for a bond with an assumed par value of 100. Macaulay duration is the weighted average maturity of a bond's cash flow stream where the present values of all future cash receipts are used as weights.
  1448.  
  1449. Example
  1450.  
  1451. The following formula calculates the Macaulay duration of a bond with these terms: Settle is August 8, 1992, Maturity is November 15, 1998, Coupon is 9%, and Yield is 8.816%.
  1452.  
  1453. @DURATION(@DATE(92,8,8),@DATE(98,11,15),0.09,0.08816) = 4.836099
  1454.  
  1455. @DVAR - Database Variance
  1456.  
  1457. Syntax
  1458.  
  1459. @DVAR(Block, Column, Criteria)
  1460.  
  1461.  
  1462.  
  1463. Block    Cells (reference or name) containing the database, including field names.
  1464.  
  1465. Column    The number of the column containing the field for which you want to compute variance (the first column in Block is 0, the second is 1, and so on).
  1466.  
  1467. Criteria    Cells containing search criteria; the first row must be field names.
  1468.  
  1469.  
  1470.  
  1471. @DVAR calculates the population variance for selected field entries in a database. @DVARS computes the variance of sample data.
  1472.  
  1473. @DVAR includes only those entries in Column whose records meet the criteria specified in Criteria.
  1474.  
  1475. The field specified in Criteria and the field for which you are calculating the variance need not be the same. The field analyzed is the field contained within Column.
  1476.  
  1477. You can specify all or part of your database as Block, but field names must be included for each field you include in the cells.
  1478.  
  1479. Examples
  1480.  
  1481.  
  1482.  
  1483.     A    B    C    D
  1484.  
  1485. 1                
  1486.  
  1487. 2    DATE    LOCATION    REP    AMOUNT
  1488.  
  1489. 3    Jul-91    San Fran    CJ    $14,999
  1490.  
  1491. 4    Jul-91    LA    RX    $28,725
  1492.  
  1493. 5    Jul-91    Chicago    RX    $18,600
  1494.  
  1495. 6    Jul-91    NY    CJ    $15,600
  1496.  
  1497. 7    Aug-91    Chicago    CJ    $23,769
  1498.  
  1499. 8    Aug-91    LA    RX    $34,345
  1500.  
  1501. 9                
  1502.  
  1503. 10        CRITERIA TABLE        
  1504.  
  1505. 11    Date    Location    Rep    
  1506.  
  1507. 12    Jul-91    San Fran    CJ    
  1508.  
  1509. 13        LA        
  1510.  
  1511.  
  1512.  
  1513. @DVAR(A2..D8,3,B11..B13) = $66,028,355 (pop. variance of Calif. sales)
  1514.  
  1515. @DVAR(A2..D8,3,C11..C12) = $16,000,740 (pop. variance of CJ's sales)
  1516.  
  1517. @DVAR(A2..D8,4,A11..C12) = ERR (Column figure too high)
  1518.  
  1519. @DVARS - Database Sample Variance
  1520.  
  1521. Syntax
  1522.  
  1523. @DVARS(Block, Column, Criteria)
  1524.  
  1525.  
  1526.  
  1527. Block    Cells (reference or name) containing the database, including field names.
  1528.  
  1529. Column    The number of the column containing the field for which you want to compute variance (the first column in Block is 0, the second is 1, and so on).
  1530.  
  1531. Criteria    Cells containing search criteria; the first row must be field names.
  1532.  
  1533.  
  1534.  
  1535. @DVARS calculates the sample variance for selected field entries in a database. @DVAR computes variance with population data.
  1536.  
  1537. This @function is not compatible with 1-2-3. To use the file in 1-2-3, use @DVAR instead.
  1538.  
  1539. Examples
  1540.  
  1541.  
  1542.  
  1543.     A    B    C    D
  1544.  
  1545. 1                
  1546.  
  1547. 2    DATE    LOCATION    REP    AMOUNT
  1548.  
  1549. 3    Jul-91    San Fran    CJ    $14,999
  1550.  
  1551. 4    Jul-91    LA    RX    $28,725
  1552.  
  1553. 5    Jul-91    Chicago    RX    $18,600
  1554.  
  1555. 6    Jul-91    NY    CJ    $15,600
  1556.  
  1557. 7    Aug-91    Chicago    CJ    $23,769
  1558.  
  1559. 8    Aug-91    LA    RX    $34,345
  1560.  
  1561. 9                
  1562.  
  1563. 10        CRITERIA TABLE        
  1564.  
  1565. 11    Date    Location    Rep    
  1566.  
  1567. 12    Jul-91    San Fran    CJ    
  1568.  
  1569. 13        LA        
  1570.  
  1571.  
  1572.  
  1573. @DVARS(A2..D8,3,B11..B13) = $99,042,532 (sample variance of Calif. sales)
  1574.  
  1575. @DVARS(A2..D8,3,C11..C12) = $24,001,110 (sample variance of CJ's sales)
  1576.  
  1577.  
  1578.  
  1579.  
  1580.