+ Reply to Thread
Results 1 to 9 of 9

Round Amount

  1. #1
    Forum Contributor
    Join Date
    10-29-2012
    Location
    Laos
    MS-Off Ver
    Excel 2003,2010,2013
    Posts
    126

    Round Amount

    Hi all,

    I have problem with round amount
    i need to round amount after decimal like:
    Eg: amount 36,345, need to round it to be 36,500.
    amount 36,600 need to round it to be 37,500.
    Attached Files Attached Files

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Round Amount

    Hi yukioh,

    Try below formula:-
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Round Amount

    Try

    =CEILING(A3,500)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    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: Round Amount

    ok this looks insane, but because of how you want the rounding done, I couldnt get mround, round, roundup or rounddown to work, so I had to brute-force it...

    =(VALUE(LEFT(A3,IF(ISERROR(SEARCH(".",A3,1)),LEN(A3)-3,SEARCH(".",A3,1)-4)))*1000)+IF(VALUE(RIGHT(INT(A3),3))<500,500,1000)

    edit, of, so I forgot ceiling(), but I put so much effort into the above that I am leaving it there lol
    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

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Round Amount

    ...edit, of, so I forgot ceiling(), but I put so much effort into the above that I am leaving it there lol
    Yesterday, i spend more than 1 hour to fix an issue like this in a my own project. I tried too many ways and at last i used simple the Ceiling function.

    That's why.

    But Dillip is faster!

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Round Amount

    Thanks my friend.. "fotis" .. cheers

    Regards,
    DILIPandey
    <click on below * if this helps>

  7. #7
    Forum Contributor
    Join Date
    10-29-2012
    Location
    Laos
    MS-Off Ver
    Excel 2003,2010,2013
    Posts
    126

    Re: Round Amount

    Thank you so much you guy

  8. #8
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Round Amount

    Quote Originally Posted by FDibbins View Post
    ok this looks insane, but because of how you want the rounding done, I couldnt get mround, round, roundup or rounddown to work, so I had to brute-force it...

    =(VALUE(LEFT(A3,IF(ISERROR(SEARCH(".",A3,1)),LEN(A3)-3,SEARCH(".",A3,1)-4)))*1000)+IF(VALUE(RIGHT(INT(A3),3))<500,500,1000)

    edit, of, so I forgot ceiling(), but I put so much effort into the above that I am leaving it there lol
    Try it like this with ROUNDUP()

    =ROUNDUP(A3/500,)*500

  9. #9
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Round Amount

    nice one 'mama' ..

    you are welcome yukioh

    cheers

    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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