+ Reply to Thread
Results 1 to 4 of 4

Numeric rounding always upward

  1. #1
    Registered User
    Join Date
    10-08-2010
    Location
    Yokelhoma
    MS-Off Ver
    Excel 2007
    Posts
    2

    Numeric rounding always upward

    I need to do a simple price calculation as number of units times unit price. The three values have the characteristics:

    wkAmtDue - USD to two decimal positions, variant

    wkUnits - whole number, variant

    wkUnitPrice - USD to four decimal positions, variant

    If the product of the multiplication is not even cents I want to increase it to the next higher cent. Normal rounding won't work since it rounds down for fractions of a cent below a half cent.

    I'm guessing this is something any Idiot would know, but I'm relatively new to VB and still an Imbecile.

    TIA.
    Last edited by mandruss; 10-08-2010 at 10:04 AM.

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: Numeric rounding always upward

    Use something like the following:

    Please Login or Register  to view this content.
    Let Amt be the number you are rounding.

    Let me know if that helps

  3. #3
    Registered User
    Join Date
    10-08-2010
    Location
    Yokelhoma
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Numeric rounding always upward

    Works like a charm. Muchas gracias.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Numeric rounding always upward

    Try this
    Please Login or Register  to view this content.

    Hope this helps
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1