+ Reply to Thread
Results 1 to 4 of 4

Rounding 2 decimals to specific 2 decimals

  1. #1
    Registered User
    Join Date
    10-28-2016
    Location
    Bucharest,Romania
    MS-Off Ver
    2013
    Posts
    2

    Rounding 2 decimals to specific 2 decimals

    Hello,
    I have an column filled with numbers like :
    1.25
    0.89
    2.32
    1.07
    1.25
    1.07
    etc.

    I can't figure out how to approximate the decimals , in the next column , with a function with the next conditions :
    if decimals are between 00 and 24 the result should be 00.
    if decimals are between 25 and 75 the result should be 50.
    if decimals are between 76 and 99 the result should be rounding up the number.

    Thank you.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,901

    Re: Rounding 2 decimals to specific 2 decimals

    Try this ...

    =MROUND(A1,0.5)

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Rounding 2 decimals to specific 2 decimals

    =int(a1)+lookup(mod(a1,1),{0,0.25,0.76},{0,0.5,1})
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    10-28-2016
    Location
    Bucharest,Romania
    MS-Off Ver
    2013
    Posts
    2

    Re: Rounding 2 decimals to specific 2 decimals

    Quote Originally Posted by nflsales View Post
    =int(a1)+lookup(mod(a1,1),{0,0.25,0.76},{0,0.5,1})
    It worked , thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Rounding Decimals
    By MR-77 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-21-2015, 03:18 AM
  2. Replies: 2
    Last Post: 02-13-2015, 07:36 AM
  3. Rounding decimals below and above 0,50
    By Hitch75 in forum Excel General
    Replies: 4
    Last Post: 09-23-2010, 08:15 AM
  4. Rounding decimals
    By Russell719 in forum Excel General
    Replies: 2
    Last Post: 08-24-2007, 12:09 PM
  5. [SOLVED] Rounding Up Decimals
    By Lilbit in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-04-2006, 04:45 PM
  6. Rounding Decimals
    By Jim May in forum Excel General
    Replies: 8
    Last Post: 11-07-2005, 02:10 PM
  7. [SOLVED] Re: Rounding with no Decimals...
    By Karthik in forum Excel General
    Replies: 1
    Last Post: 07-29-2005, 02:06 PM

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