+ Reply to Thread
Results 1 to 4 of 4

Dividing an odd number into three.

  1. #1
    Registered User
    Join Date
    06-06-2013
    Location
    Vermont
    MS-Off Ver
    Excel 2007
    Posts
    4

    Dividing an odd number into three.

    Hi all --- I'm looking for a function (or formula) that will divide a number (for example, 580) into three whole numbers that a) don't have decimal points and b) actually add up to 580. Eg 580 = 193 +193 + 194. I can't seem to find anything. All of the "ROUND" formulas give me an answer along the lines of 580 = 193 +193 + 193 (which is incorrect).

    Does anyone have any ideas? Any help with this would be much(!!) appreciated.

  2. #2
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Dividing an odd number into three.

    Try this...

    if A1=580
    Then B1=int(A1/3)
    B2=int(A1/3)
    B3=A1-B1-B2

    re-post: you can also use ROUND instead of INT for the first 2 formulas...

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Dividing an odd number into three.

    haylleyjo,

    Welcome to the forum!
    The easiest solution is actually two different formulas. Use the Round(#/3,0) for the first two numbers, and the 3rd number should get the remainder with #-Sum(), like so:
    Number to divide: 580
    1st # 193 =ROUND($B$1/3,0)
    2nd # 193 =ROUND($B$1/3,0)
    3rd # 194 =B1-SUM(B3:B4)
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    06-06-2013
    Location
    Vermont
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Dividing an odd number into three.

    Wow. Thanks so much y'all! That is such a great solution. Works perfectly.

+ 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