+ Reply to Thread
Results 1 to 3 of 3

Round the result of a formula to the nearest 0.5

  1. #1
    Registered User
    Join Date
    06-02-2008
    Posts
    7

    Round the result of a formula to the nearest 0.5

    =IF(F34="","",F34+0.25*(101.3-($F$23*0.133322)))

    This is the formaula for N34, but I want it to round the value after conversion (say 49.3) to nearest 0.5 (49.5)

    The IF is not necessary if it cannot be done inclusive.

    Any help here would be greatly appreciated, I've spent three hrs already.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Round the result of a formula to the nearest 0.5

    If you haven't already done so, install the Analysis Toolpack add-in.
    (Tools > Add-Ins...)

    Then use the MROUND function.

    For your question:

    Please Login or Register  to view this content.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Round the result of a formula to the nearest 0.5

    As CXL stipulates MROUND requires activation of ATP on all clients using the file, there is an alternative:

    =IF(F34="","",ROUND((F34+0.25*(101.3-($F$23*0.133322)))/0.5,0)*0.5)

    Note: for MROUND version you should use the below (typo in CXL's post)

    =IF(F34="","",MROUND(F34+0.25*(101.3-($F$23*0.133322)),0.5))

    (ie can't round a Null obviously)

+ 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