+ Reply to Thread
Results 1 to 10 of 10

Split / divide a number according to another number | ex: 750 | 250 | = 250 250 250

Hybrid View

  1. #1
    Registered User
    Join Date
    01-12-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    23

    Split / divide a number according to another number | ex: 750 | 250 | = 250 250 250

    Hello,

    I am trying to make a production schedule that will sort total order value into days according to max daily capacity, something like:

    capacity amount could be different for different orders

    order (piece) capaticy 01.03 02.03 03.03 04.03 05.03 06.03
    1. 650 250 250 250 150
    2. 1000 450 300 450 250
    3. 3750 2000 1750 2000


    I am asking to excel gurus how can i make a formula like this? I need to do it as i did on my excel file
    Here my excel file
    SAMPLE.xlsx
    Last edited by zottiri; 03-02-2015 at 08:38 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: Split / divide a number according to another number | ex: 750 | 250 | = 250 250 250

    Quote Originally Posted by zottiri View Post
    Hello,

    I am asking to excel gurus how can i make a formula like this? I need to do it as i did on my excel file
    Here my excel file
    Attachment 379661
    1) At cell F2, use the formula
    Formula: copy to clipboard
    =IF(SUM(E7:$E7)>=$D2,"",MIN($C2,$D2-SUM(E7:$E7)))

    Copy cross for F2:AM2

    and
    2) at cell F3
    Formula: copy to clipboard
    =IF(SUM($E7:F7)<$D2,"",IF(F7<>"",$C3-F7,IF(SUM(E8:$E8)>=$D3,"",MIN($C3,$D3-SUM(E8:$E8)))))

    copy cross-down for F3:AM5
    Best regard, -)iger-/iger
    If you are pleased with a solution mark your post SOLVED.

  3. #3
    Registered User
    Join Date
    01-12-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    23

    Re: Split / divide a number according to another number | ex: 750 | 250 | = 250 250 250

    Quote Originally Posted by tigertiger View Post
    1) At cell F2, use the formula
    Formula: copy to clipboard
    =IF(SUM(E7:$E7)>=$D2,"",MIN($C2,$D2-SUM(E7:$E7)))

    Copy cross for F2:AM2

    and
    2) at cell F3
    Formula: copy to clipboard
    =IF(SUM($E7:F7)<$D2,"",IF(F7<>"",$C3-F7,IF(SUM(E8:$E8)>=$D3,"",MIN($C3,$D3-SUM(E8:$E8)))))

    copy cross-down for F3:AM5
    It didnt work

    1) Formula wrote 1600 to each cell between F2:AM2, It didnt stop at 10250 (total order amount)
    2) Nothing happened just blank cells. because its looking for a value at E7,E8,F7?

    Its only 5 different order on example file, my list could be more than 50+. I cant use E7 E8 cells for calculation thse cells will not be blank.

  4. #4
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: Split / divide a number according to another number | ex: 750 | 250 | = 250 250 250

    Sorry, having a mistake

    Plz change to 7 to 2 and 8 to 3 in both 2 formulas

    Plz, change to these
    1) F2:
    Formula: copy to clipboard
    =IF(SUM(E2:$E2)>=$D2,"",MIN($C2,$D2-SUM(E2:$E2)))


    copy to F2:AM2

    2) at cell F3

    Formula: copy to clipboard
    =IF(SUM($E2:F2)<$D2,"",IF(F2<>"",$C3-F2,IF(SUM(E3:$E3)>=$D3,"",MIN($C3,$D3-SUM(E3:$E3)))))


    copy to F3:AM5

  5. #5
    Registered User
    Join Date
    01-12-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    23

    Question Re: Split / divide a number according to another number | ex: 750 | 250 | = 250 250 250

    Quote Originally Posted by tigertiger View Post
    Sorry, having a mistake

    1) F2:
    Formula: copy to clipboard
    =IF(SUM(E2:$E2)>=$D2,"",MIN($C2,$D2-SUM(E2:$E2)))

    copy to F2:AM2
    2) at cell F3
    Formula: copy to clipboard
    =IF(SUM($E2:F2)<$D2,"",IF(F2<>"",$C3-F2,IF(SUM(E3:$E3)>=$D3,"",MIN($C3,$D3-SUM(E3:$E3)))))

    copy to F3:AM5
    I experienced fatal errors with formula, can someone help about the issue?
    sampleproblem.xlsx
    here is the file, some values are negative and some calculations are wrong.

  6. #6
    Registered User
    Join Date
    01-12-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    23

    Re: Split / divide a number according to another number | ex: 750 | 250 | = 250 250 250

    can a guru help me please?

  7. #7
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: Split / divide a number according to another number | ex: 750 | 250 | = 250 250 250

    Quote Originally Posted by zottiri View Post
    I experienced fatal errors with formula, can someone help about the issue?
    Attachment 380373
    here is the file, some values are negative and some calculations are wrong.
    Use these formulas

    * cell G3 (like as the old solution)
    Formula: copy to clipboard
    =IF(SUM(F3:$F3)>=$E3,"",MIN($C3,$E3-SUM(F3:$F3)))

    copy to row 3: G3:BI3

    * cell G4
    Formula: copy to clipboard
    =IF(SUM($F3:G3)<$E3,"",IF(G3<>"",MIN($C4-G3*($C4>G3),$E4),IF(SUM($F4:F4)>=$E4,"",MIN($C4,$E4-SUM($F4:F4)))))

    Copy to G4:BI12
    Last edited by tigertiger; 03-04-2015 at 07:16 PM.

  8. #8
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,640

    Re: Split / divide a number according to another number | ex: 750 | 250 | = 250 250 250

    Don't quote whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding.

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,663

    Re: Split / divide a number according to another number | ex: 750 | 250 | = 250 250 250

    Try in F2:

    =MIN($C2,$D2-SUM($E2:E2))

    Drag accross to column AM

    F3:

    =MIN($C3,$D3-SUM($E3:E3))-SUM(F$2:F2)

    Drag accross to column AM

    F4:

    =IF(F3=$C3,0,IF(SUM(F$2:F2)>0,0,MIN($C4,$D4-SUM($E4:E4))-SUM(F$2:F3)))

    Drag F4 down and accross to column AM
    Attached Files Attached Files
    Quang PT

  10. #10
    Registered User
    Join Date
    01-12-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    23

    Re: Split / divide a number according to another number | ex: 750 | 250 | = 250 250 250

    bebo021999 if you reduce daily capacity amount formula is failing a bit while re-calculating.
    tigertiger, it worked very well thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: 11-26-2013, 05:21 PM
  2. [SOLVED] Divide with min number and nonzero number
    By azimuiz in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-30-2013, 05:36 AM
  3. If number does not divide evenly into another number
    By EdwardC in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-05-2013, 01:09 PM
  4. How to divide an odd number
    By tarmon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2008, 12:15 PM
  5. How do I divide a number by another number when there is no divis.
    By Ursula in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-04-2005, 12:06 PM

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