Microsoft KB Archive/223990

= XL98: Certain Functions Calculate Differently in Early Versions of Excel =

Article ID: 223990

Article Last Modified on 9/11/2002

-

APPLIES TO


 * Microsoft Excel 98 for Macintosh

-



This article was previously published under Q223990





SYMPTOMS
When you use certain functions, you may receive a different value depending on the version of Microsoft Excel you are using.



CAUSE
This issue occurs when the following conditions are true:  You create a workbook in Microsoft Excel for Windows 95, version 7.0 or earlier.

-and-

  You use one of the following functions and set the basis parameter to 2:

YIELD ODDFYIELD ODDFPRICE

-and-

 You open the workbook in Microsoft Excel 98 Macintosh Edition.

This behavior also occurs when you create a workbook in Microsoft Excel 98 Macintosh Edition and save it in the Microsoft Excel 5.0/95 format. When the workbook is opened in Microsoft Excel 5.0, these functions return a different value when the workbook is recalculated.



MORE INFORMATION
The method that you use to calculate these functions when the basis parameter is set to 2 was changed after Microsoft Excel for Windows 95, version 7.0, to produce more accurate values than in earlier versions of Microsoft Excel. Basis is the type of day count basis used by the function and is defined in the following table:

Because these functions were improved, they return different values than in Microsoft Excel 7.0 and earlier. Additionally, if a workbook that was created in Microsoft Excel 5.0 or 7.0 is opened in Microsoft Excel 98, the results from Microsoft Excel 5.0 or 7.0 may still be displayed. Even if you save the workbook in Microsoft Excel 98 and close and reopen it in Microsoft Excel 98, the original values may still be present.

If you recalculate the workbook by pressing COMMAND+=, the issue may not be resolved. Microsoft Excel does not recalculate to show the correct value until you edit the formula, change the source cells, or recalculate the entire workbook.

To fully recalculate all formulas, press COMMAND+SHIFT+F9. When you use this key combination, Excel completely recalculates all cells in all open workbooks.

The following steps demonstrate the issue with the YIELD function.   Enter the following data in a new workbook in Excel version 7.0 or earlier: <pre class="fixed_text">A1: 2/18/99 A2: 6/16/02 A3: .11875 A4: 71 A5: 100 A6: 1 A7: 2 A8: =YIELD(A1,A2,A3,A4,A5,A6,A7) The value in cell A8 is 0.257365886. </li> Save the workbook as Test and close Excel.</li> Start Excel 98 and open the Test workbook. Press COMMAND+SHIFT+F9 to recalculate the workbook. The value in cell A8 is now 0.257726542.</li></ol>

<div class="references_section">