+ Reply to Thread
Results 1 to 10 of 10

Proportional distribution upto the CAP

  1. #1
    Registered User
    Join Date
    09-04-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    25

    Proportional distribution upto the CAP

    Dear Team,

    Kindly check the excel for detailed question along with the data. i have put up 2 example in the excel. the formula need to satisfy both in col. G

    Inventory (Cell E5) is needed to be distributed among item (Col. B) proportionally. Every item has a requirement (Col. C) and there CAP(max. qty. allowed) in col. D.

    Col. E shows normal proportional distribution. Whereas Col. F shows minimum of CAP qty and Proportional Qty.

    Instead of col. F i want a formula in Col. G which will proportionally distribute upto the CAP and then distribute the remaining inventory to rest (upto the CAP).

    I am not able to analyse how to form the formula in Col. G. I guess array formula will help in this.

    Thanks in advance guys.
    Attached Files Attached Files

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

    Re: Proportional distribution upto the CAP

    Here is how I built formula:
    Total delta availble:
    SUM($H$8:$H$11)

    Sum of Required of items need to be distributed:
    SUMIF($H$8:$H$11,0,$C$8:$C$11)

    Qty of Item in C8 will be distributed:
    C8/SUMIF($H$8:$H$11,0,$C$8:$C$11)*SUM($H$8:$H$11)

    Final formula in G8:

    Please Login or Register  to view this content.
    Drag down
    Attached Files Attached Files
    Quang PT

  3. #3
    Registered User
    Join Date
    09-04-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    25

    Red face Re: Proportional distribution upto the CAP

    Quote Originally Posted by bebo021999 View Post
    Here is how I built formula:
    Total delta availble:
    SUM($H$8:$H$11)

    Sum of Required of items need to be distributed:
    SUMIF($H$8:$H$11,0,$C$8:$C$11)

    Qty of Item in C8 will be distributed:
    C8/SUMIF($H$8:$H$11,0,$C$8:$C$11)*SUM($H$8:$H$11)

    Final formula in G8:

    Please Login or Register  to view this content.
    Drag down
    Thanks bebo for your response . Ur formula does help in distributing the delta. But can we derive a simple formula which wont use the helper column(Col. H).

    Check the attached sheet.

    U only got total inventory. And every items requirement and there respective CAP.

    Now in col E, inventory is distributed to every item upto there cap Once the cap is met the remaining inventory is then distributed among those whose cap has not met yet.

    How we can formulise above mentioned scenario in column E that it will give the desired result (as entered in col. E).
    Attached Files Attached Files

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

    Re: Proportional distribution upto the CAP

    See new version for non helpers solution, though it is hard to read and follow how it works.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-04-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    25

    Re: Proportional distribution upto the CAP

    I saw ur formula and OMG thats one hell of a formula, i am trying to understand it and follow it.

    Just one more thing i want to ask ur help with, say i entered a category col. in the exel. Now my distribution philosophy is same but it will now have to work category wise. i.e., in col. F category 1 item will be distributed upto there minimum of cap or nom. If after that inventory remains it will distribute the remaining inventory in col. G for category 2 item and so on.

    I want your formula to include category also for distribution.

    thanks for Your help.

    Attached excel model to help visualise the problem.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Proportional distribution upto the CAP

    Pl see file . Test for different Amounts.
    Note I have inserted a row (No 17) for Category.
    ARRAY formula in F20 then copied across and down.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  7. #7
    Registered User
    Join Date
    09-04-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    25

    Re: Proportional distribution upto the CAP

    Thanks @kvsrinivasamurthy this is the type of formula that i was looking about.
    What u doing is that taking the minimum value of requirement and cap and distributing the inventory. However my requirement is as below:

    I want a formula in F21 which do the three steps i.e.,
    Step 1 - distribute the inventory on the basis of there requirement (as illustrated in col. J),
    Step 2- Limit the distribution upto there Max. cap (as illustrated in Col. K) and
    Step 3, distribute the delta to remaining item (as illustrated in Col. M)

    i know its a bit complicated but m sure array formula can help it. I just dont have any idea how to use that.

    Check the attached excel.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Proportional distribution upto the CAP

    ARRAY formula in F21 then copied across.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    09-04-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    25

    Re: Proportional distribution upto the CAP

    Quote Originally Posted by kvsrinivasamurthy View Post
    ARRAY formula in F21 then copied across.

    Please Login or Register  to view this content.
    this worked like a charm. Thanks @kvsrinivasamurthy.

  10. #10
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Proportional distribution upto the CAP

    Pl mark the thread solved.

+ 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. How to plot frequency distribution graph with 2 distribution plots
    By escpolina in forum Excel Charting & Pivots
    Replies: 18
    Last Post: 08-16-2017, 10:22 AM
  2. Plotting F Distribution Probability Distribution Function
    By diggetybo in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-23-2015, 01:36 PM
  3. [SOLVED] Proportional Allocation
    By sammymalta in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-16-2014, 04:33 AM
  4. Calculation the Proportional Distribution
    By Aston01 in forum Excel General
    Replies: 4
    Last Post: 06-05-2012, 07:48 PM
  5. y-axis not proportional
    By montebello in forum Excel General
    Replies: 0
    Last Post: 08-18-2010, 02:05 AM
  6. Proportional Chart
    By Cody in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-12-2005, 04:05 PM
  7. Proportional x and y axi
    By Hop David in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-07-2005, 10:06 AM

Tags for this Thread

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