+ Reply to Thread
Results 1 to 5 of 5

Round up number to nearest 0.5 or 0.9

  1. #1
    Registered User
    Join Date
    04-05-2017
    Location
    Singapore
    MS-Off Ver
    excel 2016
    Posts
    1

    Round up number to nearest 0.5 or 0.9

    Hi Guys,

    I need a help for the below problems that i am facing.

    I need one formula or equation to fulfill the below equation.

    1. if the last two decimal is 0.0 will remain us zero
    2. if last two decimal is 0.01 - 0.49 , it will be round up to 0.50
    3. if last two decimal is 0.51 - 0.89 , it will be round up to 0.90
    4. if last two decimal is 0.91 - 0.99 , it will be round up to the nearest dollar


    Thanks in advance for the effort in helping me solve this big problem of mine.

    Best Regards,
    Winston

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: Round up number to nearest 0.5 or 0.9

    Hi winstone88. Welcome to the forum.

    You don't say what you want to do if the last two decimals are already 0.50 or 0.90 so I assumed they remain the same.

    Using a lookup table in D1:E3 does this resemble what you are looking for?

    In B2 and filled down
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    A
    B
    C
    D
    E
    1
    Source
    Rounded
    0.01
    0.5
    2
    0.53
    0.9
    0.51
    0.9
    3
    0.2
    0.5
    0.91
    1
    4
    0.66
    0.9
    5
    0.95
    1
    6
    0.53
    0.9
    7
    0.9
    0.9
    8
    1.09
    1.5
    9
    0.69
    0.9
    10
    0.71
    0.9
    11
    0.28
    0.5
    12
    0.88
    0.9
    13
    0.82
    0.9
    14
    0.7
    0.9
    15
    0.43
    0.5
    16
    0.96
    1
    17
    0.89
    0.9
    18
    0.99
    1
    19
    1.06
    1.5
    20
    0.96
    1
    Dave

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

    Re: Round up number to nearest 0.5 or 0.9

    Or:

    =LOOKUP(MOD(A2,1),{0,0.01,0.51,0.91},{0,0.5,0.9,1})+INT(A2)

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: Round up number to nearest 0.5 or 0.9

    @Phuocam Yes, better ... don't forget about the zeros.

  5. #5
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: Round up number to nearest 0.5 or 0.9

    You can try this formula also :
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Round number to nearest .05
    By gail.wiley in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-31-2014, 05:52 PM
  2. [SOLVED] Round up to the nearest whole number...
    By Darth269 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-17-2012, 02:12 AM
  3. [SOLVED] Round a number to the Nearest .25
    By N Harkawat in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 12:05 PM
  4. [SOLVED] Round a number to the Nearest .25
    By Dave E in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  5. Round a number to the Nearest .25
    By N Harkawat in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  6. Round a number to the Nearest .25
    By Dave E in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. [SOLVED] Round a number to the Nearest .25
    By Dave E in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  8. Round a number to the Nearest .25
    By Dave E in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-29-2005, 11:05 AM

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