+ Reply to Thread
Results 1 to 7 of 7

Rounding Decimals

  1. #1
    Registered User
    Join Date
    07-21-2010
    Location
    Kuwait, Hawally
    MS-Off Ver
    Microsoft Office 2019
    Posts
    28

    Rounding Decimals

    Hi,
    Good morning all, hope everything is well!
    I'm living in the Middle East "Kuwait". Here when we are calculating the amount we are using 3 decimals after comma such as (100.623, 47.187, 249.446, 8075.343, 642.508... etc).
    I need to know, in excel how can I around the only decimals not whole amount. I have to type of rounding, for examples:
    Type 1:
    Example 1: 54.250 keep it same 54.250
    Example 2: 54.251 round to 54.250
    Example 3: 54.252 round to 54.250
    Example 4: 54.253 round to 54.250
    Example 5: 54.254 round to 54.250
    Example 6: 54.255 keep it same 54.255

    Type 2:
    Example 1: 155.375 keep it same 155.375
    Example 2: 155.376 round to 155.380
    Example 3: 155.377 round to 155.380
    Example 4: 155.378 round to 155.380
    Example 5: 155.379 round to 155.380
    Example 6: 155.380 keep it same 155.375

    To make it more clear, my point is Type 1: any last decimals (from 1-4) round it to "0", Type 2: any last decimals (from 6-9) round it to "1".
    If last decimal is 0 or 5 just keep it as it is such as (11.250, 46.895, 425.110, 201.640, 5.115, 25.160... etc)

    I hope everything is clear now for you.

    could you please help me how can I use the right formula in Excel without using micro?

    Best Wished,

    Mostafa Saqallah

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Rounding Decimals

    Hi Mostafa, perhaps a formula like this.

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

  3. #3
    Forum Contributor
    Join Date
    01-28-2014
    Location
    Turkey
    MS-Off Ver
    Excel 2013
    Posts
    159

    Re: Rounding Decimals

    Or

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    01-28-2014
    Location
    Turkey
    MS-Off Ver
    Excel 2013
    Posts
    159

    Re: Rounding Decimals

    Please Login or Register  to view this content.

  5. #5
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Rounding Decimals

    Hi,

    For the first set use the following formula:

    =FLOOR(A1,0.005)

    &

    For the second set:

    =CEILING(A20,0.005)

    See the attached file.
    Attached Files Attached Files

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Rounding Decimals

    Ali, that last one doesn't work. It's rounding to nearest 0.0025. Your formula at 3 is good, though it might be a bit neater to use

    =IF(MOD(A1,0.01)<0.005,FLOOR(A1,0.005),CEILING(A1,0.005))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Rounding Decimals

    Quote Originally Posted by Glenn Kennedy View Post
    Ali, that last one doesn't work. It's rounding to nearest 0.0025. Your formula at 3 is good, though it might be a bit neater to use

    =IF(MOD(A1,0.01)<0.005,FLOOR(A1,0.005),CEILING(A1,0.005))
    Hi Glenn, I seem to have overlooked the description provided by OP on Type 1 & Type 2 ( I thought these are two different data sets)

    your formula should work,

    =IF(MOD(A1,0.01)<0.005,FLOOR(A1,0.005),CEILING(A1,0.005))

+ 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. [SOLVED] Rounding Decimals 2 places
    By matrix2280 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 03-15-2015, 06:54 PM
  2. Rounding decimals below and above 0,50
    By Hitch75 in forum Excel General
    Replies: 4
    Last Post: 09-23-2010, 08:15 AM
  3. Rounding decimals
    By Russell719 in forum Excel General
    Replies: 2
    Last Post: 08-24-2007, 12:09 PM
  4. Rounding decimals in a summ
    By Francesco in forum Excel General
    Replies: 2
    Last Post: 04-03-2006, 05:30 AM
  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