+ Reply to Thread
Results 1 to 9 of 9

Allocate Values from a table into columns under corresponding Months

Hybrid View

vikrampnz Allocate Values from a table... 01-09-2017, 09:11 AM
José Augusto Re: Allocate Values from a... 01-09-2017, 12:33 PM
vikrampnz Re: Allocate Values from a... 01-11-2017, 04:07 AM
José Augusto Re: Allocate Values from a... 01-11-2017, 05:35 AM
vikrampnz Re: Allocate Values from a... 01-11-2017, 09:27 AM
José Augusto Re: Allocate Values from a... 01-11-2017, 02:33 PM
vikrampnz Re: Allocate Values from a... 01-12-2017, 03:34 AM
José Augusto Re: Allocate Values from a... 01-12-2017, 04:37 AM
vikrampnz Re: Allocate Values from a... 01-18-2017, 05:14 AM
  1. #1
    Forum Contributor
    Join Date
    06-24-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    101

    Allocate Values from a table into columns under corresponding Months

    Hello

    I have a table with Unit Numbers in Column A (24A, 24B, 25A, 25B and so on) , Sale Month in Column B, Price in Column C and Stagewise Price Breakup (10 Stages) in Columns D to M.

    Price Breakup is pre-defined (Like monthly installments) based on certain percentage applied to each stage and that payment becomes due when that particular stage is completed. These stagewise payments are not equal.

    Time frame for each stage is also pre-defined i.e. if "Stage1" i.e. "Sale" happens in "Month1", then stage2 comes in Month2, Stage3 comes in Month4 and so on. There are 2 month gaps between certain stages. Once the Sale of specific Unit is made, then a specific month (For example Mar-17) will be applied as start month (For stage1) for that unit.

    I have another sheet which looks like a running calender, which has Unit Numbers in Column A (same as the previous Data sheet) and Column B onwards have Months in the header row i.e. Feb-17, Mar-17, Apr-17 and so on till year 2020.

    I am trying to figure out a way to automatically allocate values in the Data table to the Calender under specific months, in the row for the specific Unit No.

    For example, if Unit 25B is sold in Mar-17, then I will enter "start Month" or "Stage1" as Mar-17 and the following stagewise Values (which are already pre-defined in the table) should be allocated in the calendar under correct month i.e. Stage2 value should fall under Apr-17, Stage3 Value should fall under Jun-17 and so on.

    Can someone help please ! I would really appreciate it !

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Allocate Values from a table into columns under corresponding Months

    Hi
    Try this approach
    In CashFlow sheet insert 2 columns B and C
    In CashFlow!B4 use the following formula and copy down
    Formula: copy to clipboard
    =IFERROR(MATCH(A4,PS!$A$4:$A$25,0),"")

    In CashFlow!C4 use the following formula and copy down
    Formula: copy to clipboard
    =IF($B4<>"",MATCH(INDEX(PS!$B$4:$B$25,$B4),Dates,0)+COLUMNS($A$3:$C$3),"")

    In CashFlow!D4 use the following formula and copy down and forward
    Formula: copy to clipboard
    =IFERROR(IF($C4>COLUMN(D4),"",IF($C4=COLUMN(D4),INDEX(PS!$E$4:$N$25,$B4,1),IF($C4=COLUMN(D4)-1,INDEX(PS!$E$4:$N$25,$B4,2),
    IF(MOD(COLUMN(D4)-$C4,2)=1,INDEX(PS!$E$4:$N$25,$B4,INT((COLUMN(D4)-$C4)/2)+2),"")))),"")


    See the file
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    06-24-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    101

    Re: Allocate Values from a table into columns under corresponding Months

    Hi Jose....thanks for this. It is working fine. If I want to play with the gap between 2 stages, then how should I do it? I mean at the moment, after first 2 stages, it has following values placed under alternate months in cashflow. I would like to be able to adjust the gap between each stage (which will be same all the units). Could you please explain where I can change to adjust the gaps between the stages? thanks a lot

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Allocate Values from a table into columns under corresponding Months

    Hi
    For gaps =3 use in D4
    Formula: copy to clipboard
    =IFERROR(IF($C4>COLUMN(D4),"",IF($C4=COLUMN(D4),INDEX(PS!$E$4:$N$25,$B4,1),IF($C4=COLUMN(D4)-1,INDEX(PS!$E$4:$N$25,$B4,2),
    IF(MOD(COLUMN(D4)-$C4,3)=1,INDEX(PS!$E$4:$N$25,$B4,INT((COLUMN(D4)-$C4)/3)+2),"")))),"")

    You can use a cell to set the value of gap for all, or a new column to set the gap for each unit.

  5. #5
    Forum Contributor
    Join Date
    06-24-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    101

    Re: Allocate Values from a table into columns under corresponding Months

    Hello Jose.....Thanks for this. Unfortunately, the between all stages is not the same. For example, the gap between Stage2 & stage3 is 2 Months. All other stages are only 1 month apart. Also, the last two stages i.e. Stage9 and Stage10 fall in the same month, so the total of stage9 & Stage10 should reflect under the same month.

    Is there a way, I can customise the gap between individual stages for individual units which may not be evenly distributed between all 10 stages?

    For example, i mean For Unit 24A, Stage1>Stage2 could be 1 Month, Stage2>Stage3 could be 2 Months, Stage3>Stage4 could be 1 Month and So on.
    For Unit 37A, Stage1>Stage2 could be 2 Months, Stage2>Stage2 could be 2 Months, Stage3>Stage4 could be 4 Months, Stage4>Stage5 could be 1 Month and so on.

    I would really appreciate if you could show me how and where I should add columns for adjust stage gap for individual units and individual stages. So effectively, I can customise the timeline for each unit and also customise the gap between the stage depending upon what unit it is and when it starts.

    Thanks again for your help !

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Allocate Values from a table into columns under corresponding Months

    Hi
    I suppose you want something like this
    Insert a new column D and define a rule for the Unit, for example R_01.

    The rules can be defined in a new sheet by code an values like {R_01\1\2\4\6\8\10\12\14\16\18}

    Use in E4 the following formula and copy down and forward
    Formula: copy to clipboard
    =IFERROR(INDEX(PS!$E3:$N3,MATCH(COLUMN(E$3)-$C4+1,INDEX(GAPS!$B$3:$K$22,MATCH($D4,GAPS!$A$3:$A$22,0),0),0)),"")

    Note: Formula in C4 are adjusted to accommodate the new column so use this formula and copy down
    Formula: copy to clipboard
     =IF($B4<>"",MATCH(INDEX(PS!$B$4:$B$25,$B4),Dates,0)+COLUMNS($A$3:$D$3),"")

    See the file
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    06-24-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    101

    Re: Allocate Values from a table into columns under corresponding Months

    Thanks a ton mate ! It works like a charm! and very easy to control and customise. Thank you very much for all your help !

  8. #8
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Allocate Values from a table into columns under corresponding Months

    I am happy to have helped and thanks for the feedback.

    Please do not forget to mark this thread as SOLVED.

  9. #9
    Forum Contributor
    Join Date
    06-24-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    101

    Re: Allocate Values from a table into columns under corresponding Months

    Hello Jose....... While replicating this formula you gave me a few days back, I have encountered a practical problem in a few exceptional cases.

    In case of a few units, depending upon the sale month, I need the values for number of stages to fall under the same month i.e. for example the values/amounts allocated Stage1, stage2, Stage3 should all come under Month1 ....
    Is there a way, I could display the TOTAL of multiple stages under the same month using a formula?

    I tried putting the same month number i.e. "1" under multiple stages in the sheet "Gaps", but it only picks up Value for one stage and doesn't display total. It would be easier if the formula could just pick up and total stage numbers based on the Gaps table, as I can customise it to suit very easily.

    I would really appreciate your help.

    Thanks again

+ 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. [SOLVED] Allocate array with values from different ws
    By samot79 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-23-2016, 09:03 AM
  2. [SOLVED] Allocate amounts accross a spread of months
    By Christopherdj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-19-2014, 09:02 PM
  3. Allocate monthly pay across months.
    By faithnfaith in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-10-2013, 12:47 AM
  4. Replies: 2
    Last Post: 03-19-2013, 12:19 PM
  5. [SOLVED] Allocate Cell Values based on criteria
    By rpjohnson in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-23-2012, 06:12 PM
  6. [SOLVED] Allocate months across periods in which they fall?
    By maladrat in forum Excel General
    Replies: 9
    Last Post: 07-26-2012, 01:21 PM
  7. allocate values to specific rows
    By furor in forum Excel General
    Replies: 7
    Last Post: 07-06-2011, 07:07 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