+ Reply to Thread
Results 1 to 5 of 5

Excel 2003: rounding down and capping

  1. #1
    Registered User
    Join Date
    07-24-2004
    Posts
    31

    Excel 2003: rounding down and capping

    OK, I use a spreadsheet to track my daily tips.

    Issue #1: I must contribute 10% of my tips to a tip pool for non-tipped employees, but the maximum contribution is 20.00 per day. Additionally, those contributions are always rounded down to the nearest whole dollar, never up.

    So, if I make 183.00 in tips, 10% of that is 18.30, and rounds down to 18.00.

    If I make 253.00 in tips, 10% of that is 25.30, but, since my maximum contribution to the tip pool is 20.00 per day, that's what I kick up.

    Here is the formula I'm currently using: "=G13*0.1" (G13 is where I enter my gross tips for the day)

    After the formula does the calculation, I go back and manually round it down/cap it at 20.00. Is there a way to get excel to do this for me?



    Issue#2: After my tip pool contribution is taken out, 35% is withheld for taxes. Again, it is always rounded down to the nearest whole dollar, and unfortunately, there is no cap.

    So, if I make 183.00 in tips, 18.00 is taken out for the tip pool. Of the remaining 165.00, 35% comes to 57.75. That is rounded down to 57.00, and I go home with the rest.

    If I make 253.00 in tips, 20.00 is taken out for the tip pool. Of the remaining 233.00, 35% comes to 81.55. That is rounded down to 81.00 and I go home with the rest.

    The formula I'm currently using is: "=(G13-J13)*0.35" (G13 is where I enter my gross tips for the day, J13 is where the tip pool contribution shows up)

    After the formula does the calculation, I go back and manually round it down.
    Can excel do this for me?

    Thanks

    EDIT: OK, I've solved the rounding down issue with the following formulae:

    Tip Pool: "=ROUNDDOWN(G13*0.1,0)"

    Taxes: "=ROUNDDOWN((G13-J13)*0.35,0)"

    It works perfectly. I still need to know how to cap the tip pool contribution at 20.00, though
    Last edited by seanof30306; 01-03-2009 at 04:12 PM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Capping the tip pool

    Quote Originally Posted by seanof30306 View Post
    EDIT: OK, I've solved the rounding down issue with the following formulae:

    Tip Pool: "=ROUNDDOWN(G13*0.1,0)"

    Taxes: "=ROUNDDOWN((G13-J13)*0.35,0)"

    It works perfectly. I still need to know how to cap the tip pool contribution at 20.00, though
    Try this:

    Please Login or Register  to view this content.
    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    12-30-2008
    Location
    Vermont, USA
    MS-Off Ver
    Excel 2003
    Posts
    64
    for the first issue:

    =MIN(20,ROUNDDOWN(G13,0)*.1)

    for the second:

    =IF(G13*.1>20,(ROUNDDOWN(G13,0)-20)*.35,(ROUNDDOWN(G13,0)-ROUNDDOWN(G13,0)*.1)*.35)
    Last edited by clownfish; 01-03-2009 at 03:48 PM.

  4. #4
    Registered User
    Join Date
    07-24-2004
    Posts
    31
    Quote Originally Posted by Ron Coderre View Post
    Try this:

    Please Login or Register  to view this content.
    Does that help?

    That is perfect! Thank you so much!

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ 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