+ Reply to Thread
Results 1 to 8 of 8

equally distribution into 12 months with conditions

  1. #1
    Registered User
    Join Date
    10-25-2013
    Location
    ina
    MS-Off Ver
    Excel 2010
    Posts
    8

    equally distribution into 12 months with conditions

    Hi all,

    I need your help please.. I've been squishing my brain..

    So I have problem on how to make a formula to equally distributing the total amount into 12 months with restricting ranges of number that can be used.
    Imagine that you have 12 books that need to be put in boxes with different sizes..Anyway please look the example below:

    Note: I cannot attach the excel file, the dropdown menu doesn't work. Sorry for the trouble.

    Example.JPG

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

    Re: equally distribution into 12 months with conditions

    Pl attach a sample file.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Registered User
    Join Date
    10-25-2013
    Location
    ina
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: equally distribution into 12 months with conditions

    Hi kvsrinivasamurthy,

    Please find the sample file.
    The column F is a fixed amount column
    The column E is total amount that want to be achieved from sum of F-R
    Column B & C are the input range for column G-R. For example, 8000 is not allowed.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: equally distribution into 12 months with conditions

    I am assuming that if the amount doesn't fall within one of the ranges that you would have to use at least the next higher permissible amount. Also that the distribution will not always be 12 months as using a larger amount reduces the number of months needed.
    Based on those assumptions this proposed solution employs some helper columns which may be moved and/or hidden for aesthetic purposes.
    The formulas for the helpers, S:U respectively are:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula that populates column G is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula that populates columns H:R is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    10-25-2013
    Location
    ina
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: equally distribution into 12 months with conditions

    Hi JeteMC,

    Thank you for your prompt answer and solution!

    I have question,
    1. Could you please explain the logic behind this formula for H:R =IF(VALUE(MID(H$3,SEARCH("h",H$3)+1,3))>INT($T4),0,$G4)
    2. What is the formula for H:R if the value on row 3 is not text , but Date like 31-Jan-18, 28-Feb-18, etc
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: equally distribution into 12 months with conditions

    Assuming that the dates in row 11 are supposed to be the last day of each month, paste the following formula into cell H11 then drag down and across as needed:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula that you ask about in post #5 compares the month number at the end of text string to the number of months it will take to complete the order.
    The formula in this post does the same but uses the MONTH function to get the month number from the date.
    Let us know if you have any questions.

  7. #7
    Registered User
    Join Date
    10-25-2013
    Location
    ina
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: equally distribution into 12 months with conditions

    Got It!

    Thank you very much JeteMc !!

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: equally distribution into 12 months with conditions

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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: 14
    Last Post: 11-19-2019, 09:17 AM
  2. [SOLVED] Display last 3 months data meeting conditions
    By JayUSA in forum Excel General
    Replies: 12
    Last Post: 08-14-2017, 08:03 PM
  3. Replies: 1
    Last Post: 10-30-2016, 05:40 AM
  4. probability distribution count if complicated conditions....
    By cynthia_74 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-29-2014, 03:21 AM
  5. Replies: 4
    Last Post: 07-15-2014, 04:06 PM
  6. [SOLVED] calculate number of months between 2 dates with conditions
    By beehong2628 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-17-2013, 07:12 AM
  7. [SOLVED] Distribution of a value unevenly over X no. of months
    By m1zz13 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-09-2013, 08:18 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