+ Reply to Thread
Results 1 to 5 of 5

Need to round a formula up or down to a specific number

  1. #1
    Eric Foucrier
    Guest

    Need to round a formula up or down to a specific number

    I am working a retail price formula rounding up or down to either

    $X,X49.95
    $X,X99.95

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    =ROUND(D4,0)

    this will round to the nearest dollar, up or down

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,718
    With your price in A1 try

    =ROUND((A1+0.05)*2,-2)/2-0.05

    or using MROUND from Analysis ToolPak

    =MROUND(A1+0.05,50)-0.05

  4. #4
    Ron Coderre
    Guest

    RE: Need to round a formula up or down to a specific number

    Try one of these:

    For a value in A1,

    B1: =ROUND(A1/50,0)*50-0.05
    or
    B1: =MROUND(A1,50)-0.05
    (MROUND is from the Analysis Toolpak)

    Note: the lowest price that works for is $25.00. Under that, the formula
    calculates $-0.05. If you want the minimum price to be $49.95, try one of
    these:

    B1: =ROUND(MAX(A1,25)/50,0)*50-0.05
    or
    B1: =MROUND(MAX(A1,25),50)-0.05

    Does that help?

    ***********
    Regards,
    Ron

    XL2002, WinXP-Pro


    "Eric Foucrier" wrote:

    > I am working a retail price formula rounding up or down to either
    >
    > $X,X49.95
    > $X,X99.95


  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Talking

    Quote Originally Posted by davesexcel
    =ROUND(D4,0)

    this will round to the nearest dollar, up or down
    OOPS! read the question wrong

+ 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