+ Reply to Thread
Results 1 to 7 of 7

rounding troubles

  1. #1
    Registered User
    Join Date
    01-24-2008
    Posts
    5

    rounding troubles

    I'll buy someone a beer ($5) if they can solve my excel rounding problem.

    I'm at a loss. I work for a company that provides case management, and we bill medicaid for services provided. I've been given the duty of working out the billing spreadsheet in Excel. The trouble I'm running into is converting minutes into billable units. According to Medicaid, 1-7.5 minutes is half a unit, and 7.51-15 minutes is considered a unit. So if a case manager works with a client for 4 minutes, they should be able to bill for half a unit. If they work with a client for 8 minutes, they can bill for a unit. I can't get excel to round the way I want it to. Right now I'm working with a formula like this:

    =MROUND(E8/15, .05)

    but I can't get it to round properly to whole units and half units. I need excel to round up to the whole number (unit) when the minutes are above 7, and down to half (.5) when it's at 7 or below.

    Any help or ideas? I can pay for your beer via paypal or a personal check.

    -joshua

  2. #2
    Registered User
    Join Date
    01-24-2008
    Posts
    5
    I thought I had it with this function:

    =MROUND(((E8/15)*60)/15, 0.5)

    it worked well for 1 and 2 minute values, rounding to .5 units, but 3 minutes rounds up to a whole unit!

    arggg!!!

    -joshua

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,474
    Quote Originally Posted by joshuapiper
    I thought I had it with this function:

    =MROUND(((E8/15)*60)/15, 0.5)

    it worked well for 1 and 2 minute values, rounding to .5 units, but 3 minutes rounds up to a whole unit!

    arggg!!!

    -joshua
    To round in 15 min intervals
    96 -15 min intervals per day
    =(ROUND(D1*96,0)/96)

  4. #4
    Registered User
    Join Date
    01-24-2008
    Posts
    5
    I have no problem rounding to 15 minute intervals, but all that does is return the same number, ie if I have 2 as the cell value, then it returns "2" as the formula result.

    A unit is 15 minutes. 1-7 minutes can be billed as half-units. 8-15 minutes can be billed as a whole unit. I have the minutes in general format. Say a case manager works with a client for 6 minutes. That can be billed as half a unit. So I take that number "6", divide by 15 to get the unit value, and get .4 of 15, or .4 of a unit. That number needs to be rounded up to a half a unit. We can only bill in half and whole units. I can't get excel to round my percentages (ie the .4) correctly (or the way I'd like it to). If I get a result of .1 to .5, that needs to be rounded as .5. Anything over .5 needs to be rounded to 1.

    And I can't for the life of me get it to do that.

    -joshua

  5. #5
    Registered User
    Join Date
    01-24-2008
    Posts
    5
    in other words how do I get a value of .1-.5 to roundup to .5 and anything above .5 round up to the nearest 1?

    -joshua

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    What happens if it is over 15 minutes that the case manager worked with the client?

    if absolutely anything of .5 is considered 1.... then try:

    =IF(E8/15<=0.5,0.5,1)
    Last edited by NBVC; 01-24-2008 at 03:09 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  7. #7
    Registered User
    Join Date
    01-24-2008
    Posts
    5
    I figured it out with

    =CEILING(E8,7.5)/15

    thanks anyway!

+ 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