+ Reply to Thread
Results 1 to 11 of 11

Need Formula to post payments with different dates frequency than Column Headers

  1. #1
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Need Formula to post payments with different dates frequency than Column Headers

    Hi
    I have columns divided in Fortnightly dates ranges with start date and end dates as headings.

    I have different payments as follows;
    1- Some Paid every 7 days
    2- Some Paid every 14 days
    3- Some Paid on 2nd of each month
    4- Some Paid on 2nd of every consecutive month
    5- Some Paid on 2nd of every 3rd (Quarterly) month

    WHAT I HAVE DONE SO FAR?
    For each of above 5 categories, I have done a different formula to put payments in relevant Fortnightly Columns, so the payments appear in proper dates ranges. For example 7days payment appears twice in each column and so on..
    My formulas(though not very well written) worked for 7day, 14day and monthly payments.
    But it did not work for bi-monthly payments.
    and for quarterly payments, I can't think of a way.


    WHAT IS NEEDED
    1- I have written formulas not so good and complex, is there some simpler alternative?
    2- My formula did not work for bi-monthly payments. The payments are appearing every month instead of every 2nd month. What is issue in it?
    3- I can't even think of a formula to get quarterly payments on columns as it will get more complex with my procedure. Can there be some solution for quarterly payemnts?

    Hope I am able to explain my issue.

    An Important Thing My Columns Date range in this example is 14 days but it is not fixed so I need a solution that can work with any Column Date range like a week, fortnight, month, quarter, year etc.
    Attached Files Attached Files
    Last edited by caabdul; 04-27-2020 at 02:45 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: Uniform Formula for periodic payments in different period columns

    There are instructions at the top of the page telling you how to attach your sample workbook. Make sure the sample is less than 1MB.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Uniform Formula for periodic payments in different period columns

    File now attached. Thanks
    Last edited by caabdul; 04-26-2020 at 06:03 AM.

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Uniform Formula for periodic payments in different period columns

    have you read and understood the big yellow banner

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Need Formula to post payments with different dates frequency than Column Headers

    Please try at C7

    =IF(MATCH($B7,$C$4:$L$4)<=COLUMNS($C7:C7),IFNA($B$1*MATCH($A7,{"Bi-Weekly","Weekly"},),$B$1*OR(INDEX(ABS(EDATE($B7,{0;1;2;3;4;5;6;7;8}*MATCH($A7,{"Monthly","Bi Monthly","Quarterly"},))-(C$4+7))<=7,))),0)
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Need Formula to post payments with different dates frequency than Column Headers

    Bo_Ry, this is great and works for all cases. Thank you very much

    One question however. If I copy this formula to all cells it works. Also if I copy it as an array formula, it still works.
    So what is the best method? Should I copy it as simple formula or copy it as array formula to get maximum calculation speed in case I have huge number of rows and columns?

  7. #7
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Need Formula to post payments with different dates frequency than Column Headers

    @Bo_Ry
    Sorry I forgot to mention that my columns are not fixed for 14 days ranges. These keep changing to other periods like 7 days, 14days, month, quarter, year etc.

    How can your formula work for a dynamic column date range?
    Last edited by caabdul; 04-26-2020 at 10:23 PM.

  8. #8
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Need Formula to post payments with different dates frequency than Column Headers

    Please try at C7

    =IF(MATCH($B7,$C$4:$L$4)<=COLUMNS($C7:C7),IFNA(SUMPRODUCT(--(ABS($B7+(MATCH($A7,{"Weekly","Bi-Weekly"},)*7)*(ROW($A$1:$A$99)-1)-AVERAGE(C$4:C$5))<=(C$5-C$4)/2))*$B$1,$B$1*OR(INDEX(ABS(EDATE($B7,(ROW($A$1:$A$50)-1)*MATCH($A7,{"Monthly","Bi Monthly","Quarterly"},))-(C$4+7))<=7,))),0)

    This cover 99 weeks and 50 Months, you may increase the number in red to cover more time
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Need Formula to post payments with different dates frequency than Column Headers

    Hi Bo_Ry

    THIS TIME YOU HAVE CREATED SOME CRAZY STUFF THAT I HAVE NEVER SEEN BEFORE

    AND IT WORKS!!!

    I thought there was issue. Actually that was my misunderstanding about the Magic of "ROW($A$1:$A$99)" thing.
    I really don't understand how you did this
    "ROW($A$1:$A$99)" given an answer of 1 but when we put 1 in formula, it doesn't work.

    I really want to learn how this thing worked. Can you please suggest me some tutorial about this thing?

    Again super thanks for help
    Attached Files Attached Files
    Last edited by caabdul; 04-27-2020 at 02:44 AM.

  10. #10
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Need Formula to post payments with different dates frequency than Column Headers

    =IFNA(SUMPRODUCT(--(ABS($B13+(MATCH($A13,{"Weekly","Bi-Weekly"},)*7)*(ROW($A$1:$A$99)-1)-AVERAGE(C$10:C$11))<=(C$11-C$10)/2))*$B$7,$B$7*OR(INDEX(ABS(EDATE($B13,(ROW($A$1:$A$50)-1)*MATCH($A13,{"Monthly","Bi Monthly","Quarterly"},))-(C$10+7))<=7,)))

    Row(a$1:A$99) return array of {1;2;3;…99}

    Row(a$5:A$99 return array of {5;6;7;…99} it will miss the first 4 weeks date
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    12-25-2011
    Location
    Lahore, Punjab, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    287

    Re: Need Formula to post payments with different dates frequency than Column Headers

    Hi everyone

    This relates to an old solution as given above by Bo_Ry, that works fine, however I am getting some wrong results, don't understand why

    I have attached the file where red cells show amounts that were not supposed to be there according to periodical payment. For example Row 9 shows payments that are paid on 2nd of every month. But in this sheet a payment is showing in period of 19Feb to 29Feb as well which it was not expected there.

    May be someone can understand why there are wrong results for this good working formula. It will be a real help as I am stuck bad with this issue.

    Thanks
    Attached Files Attached Files

+ 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 create formula to make periodic
    By archavito13 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-05-2014, 02:27 AM
  2. [SOLVED] Periodic payment formula
    By G-Cannman in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-27-2013, 02:40 PM
  3. how to combine a single period return formula & a multiple period formula?
    By uptickdk in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-27-2013, 02:34 PM
  4. Replies: 4
    Last Post: 05-22-2012, 09:20 AM
  5. Excel 2007 : Update Columns based on periodic data
    By zitu708 in forum Excel General
    Replies: 3
    Last Post: 04-29-2010, 11:19 PM
  6. How do I change the IRR formula for MONTHLY periodic payments?
    By Jon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-12-2006, 06:10 PM

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