+ Reply to Thread
Results 1 to 7 of 7

Round Decimal Values using Formulas and/or Functions

  1. #1
    Forum Contributor pipoliveira's Avatar
    Join Date
    08-09-2012
    Location
    Ireland
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    368

    Round Decimal Values using Formulas and/or Functions

    Dear All,

    I hope you're all well.

    I hope you can help me on a simple formula or function.

    I am struggling to sort this and I can't find it.

    What I need to know is how to round decimal numbers with the following criteria.

    If decimal number is =<0.05, I want the result of 0.05 (e.g. if I have a value of "1234.02" I want a formula to change the value to "1234.05")
    If decimal number is >0.05, I want the result of 0.10 (e.g. if I have a value of "1234.06" I want a formula to change the value to "1235.10")

    Your assistance will be highly appreciated.

    Best regards,
    Filipe

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Round Decimal Values using Formulas and/or Functions

    Try this:

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

  3. #3
    Forum Contributor pipoliveira's Avatar
    Join Date
    08-09-2012
    Location
    Ireland
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    368

    Re: Round Decimal Values using Formulas and/or Functions

    Thanks for your fast reply zbor,

    I tried on a value of "3.04" and showed up as "310".

    I need it to show as "3.05".

    Thanks a million in advance.
    Filipe

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Round Decimal Values using Formulas and/or Functions

    Sorry, forgot to divide back:

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

  5. #5
    Forum Contributor pipoliveira's Avatar
    Join Date
    08-09-2012
    Location
    Ireland
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    368

    Re: Round Decimal Values using Formulas and/or Functions

    Almost there zbor

    It shows now "3.10" but not "3.05".

    Basically, if the decimal number is equal or less than x.x5, I want it to show as x.x5. If it more than x.x5, I want the value as x.10

    Thanks a million.

    Cheers.

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

    Re: Round Decimal Values using Formulas and/or Functions

    Try CEILING to round up to the next multiple of 0.05, i.e.

    =CEILING(A1,0.05)
    Audere est facere

  7. #7
    Forum Contributor pipoliveira's Avatar
    Join Date
    08-09-2012
    Location
    Ireland
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    368

    Re: Round Decimal Values using Formulas and/or Functions

    Hi Daddylonglegs,

    Thanks a million.

    That was exactly what I was looking for.

    Never heard about that formula before.

    Really appreciated.

    Have a nice day
    Filipe

+ 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] How to round off all the values with 0.000999 into 3 decimal places?
    By raimy haidar in forum Excel General
    Replies: 8
    Last Post: 02-12-2015, 02:59 AM
  2. Replies: 2
    Last Post: 12-06-2014, 01:58 PM
  3. [SOLVED] Including ROUND and ISBLANK functions to existing formulas
    By Phrick in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-14-2014, 01:33 PM
  4. [SOLVED] round up to one decimal
    By rcprito in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-19-2013, 07:17 AM
  5. How do I lock values by limiting decimal places in formulas
    By DBoucher in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-21-2012, 03:39 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