+ Reply to Thread
Results 1 to 2 of 2

Duplicating irregular rounding

  1. #1
    Registered User
    Join Date
    02-02-2012
    Location
    Billings, MT
    MS-Off Ver
    Excel 2007
    Posts
    8

    Duplicating irregular rounding

    I have use Excel to duplicate an irregular rounding issue that was programmed into our company's computer system years ago.

    What this thing does is round to the nearest nickel, but it doesn't break exactly at 2.5 like normal. This thing rounds down to zero at .449 - so at 4 &1/2 cents, it rounds up, and anything less it rounds down. Then between 5 and 10 cents, it rounds up at 5.5 cents.

    So basically, in a scale between zero and 10 cents, everything below 4.5 rounds down, everthing above 5.5 rounds up. Only the numbers between 4.5 and 5.5 round to 5.

    I can duplicate some of this using Excel's floor and ceiling functions. The formulas:
    Please Login or Register  to view this content.
    will each either round up or down, but I need a formula that will round down anything under 4.5 cents to the nickel below and round up anything over 5.5 cents to the nickel above.

    I hope that I made this understandable. Many thanks in advance for your help.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Duplicating irregular rounding

    Please take a few minutes to read the forum rules about cross-posting.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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