Subtraction Does Not Work Correctly with the HOUR Function

Last reviewed: February 17, 1998
Article ID: Q181217
The information in this article applies to:
  • Microsoft Windows CE, version 2.0

SYMPTOMS

When you use subtraction with the HOUR function in Microsoft Pocket Excel, you may not receive the correct result.

CAUSE

This issue can occur when the result of your equation is rounded to the nearest integer. For example, this issue can occur if you use an equation similar to the following sample equation

   =HOUR(<cell1>-<cell2>)

where <cell1> and <cell2> are cells that contain a value.

RESOLUTION

To resolve this issue, change your equation to reduce rounding. For example, use an equation similar to the following sample equation:

   =HOUR(<cell1>)-HOUR(<cell2>)


Additional query words: 2.00
Keywords : handheld pocketexcel wince
Version : WINDOWS:2.0
Platform : WINDOWS
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 17, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.