+ Reply to Thread
Results 1 to 7 of 7

Rounding to nearest .05 or .09 cents.

  1. #1
    Registered User
    Join Date
    02-03-2013
    Location
    Sac
    MS-Off Ver
    Excel 2003
    Posts
    2

    Rounding to nearest .05 or .09 cents.

    I have a large group of numbers to round for a Sales Catalog where prices need to end in XX.X5 or XX.X9

    How do you Round a numbers in Microsoft Excel to the nearest .05 cent or .09 Cents, Whichever is closer.

    For example: 1.06 would round to 1.05 and 1.08 would round to 1.09.

    I have over 1000 numbers to round in this way. Is there a way to do this?

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Rounding to nearest .05 or .09 cents.

    how about
    1.01 -> is this 1.00 or 1.05 also
    1.02
    1.03
    1.04
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Rounding to nearest .05 or .09 cents.

    Also...
    1.06 would round to 1.05 and 1.08 would round to 1.09.
    normally is 1.06 = 1.05, then 1.9 is usually 1.10?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Rounding to nearest .05 or .09 cents.

    Try this. It converts 0.02---0.06 to xx.x5, rest it will convert to xx.x9


    Please Login or Register  to view this content.

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Rounding to nearest .05 or .09 cents.

    you can also try it like this.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    or this one
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-03-2013
    Location
    Sac
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Rounding to nearest .05 or .09 cents.

    So far the "=MROUND(A1, 0.05)-IF(RIGHT(MROUND(A1, 0.05))="5",0,0.01)" formula has worked out nearly perfectly.

    The only problem is that it will spit out numbers of .50 that i want to be .49. I need it to only spit out numbers ending in .X9 or .X5.

    Here is an example of numbers I've converted below. ( I Have like 2000 numbers to change )

    Numbers.jpg

    Thanks for all the help guys, its making my life so much easier. =)

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Rounding to nearest .05 or .09 cents.

    Try this

    =FLOOR(A1,0.1)+LOOKUP(MOD(A1,0.1),{0,0.02,0.07;-0.01,0.05,0.09})
    Audere est facere

+ 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