+ Reply to Thread
Results 1 to 12 of 12

Proforma calculation based of month and years

  1. #1
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    183

    Proforma calculation based of month and years

    Hello,

    I have written an existing formula for prorating sales amounts based on schedule terms. I am only focused on Cells S6:AD6 and S14:AD14 which is where the proforma formula lives. The task is to completely automate the proforma formula where it reads off the dates and amounts in the sheet, and not rely on any manual inputs.

    Please Login or Register  to view this content.
    In the below image, we can see the proforma formula working, Jan-Apr is prior year 2023 amount of $100,000, then in May 2024 the schedule ends so that month needs to get prorated based on the days, which it is at $161,290 amount. Then in June 2024, we pick up the new amount of $200,000. I want to be able to drag the formulas from S6:AD6 down for the next schedule in S14:AD14.

    the issue is in S14:AD14 the formula is picking up the 2023 amount of $150,000 instead of the 2024 amount of $175,000. Since the chedule is from 1/1/24 to 12/30/21 the formula should just pick up the 2024 for Jan-Nov, but it is not. So I am trying to modify this formula to do that.

    Any suggestions?

    WORKBOOK is attached to thread below

    Thank you!


    schedule.PNG
    Attached Files Attached Files
    Last edited by Shruder; 07-11-2023 at 11:43 AM.

  2. #2
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    183

    Re: Proforma calculation based of month and years

    Workbook is attached to thread now
    Last edited by Shruder; 07-11-2023 at 11:10 AM.

  3. #3
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    183

    Re: Proforma calculation based of month and years

    Workbook is attached to thread now
    Last edited by Shruder; 07-11-2023 at 11:09 AM.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Proforma calculation based of month and years

    How big is your file? We only need enough data to show what you are working with, and what you expect. Remove all the rest (in other words, make up a SMALL dummy file for us)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    183

    Re: Proforma calculation based of month and years

    Attached is the workbook. I have enough formulas in there to follow my points made from the beginning of this original thread.
    Attached Files Attached Files

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

    Re: Proforma calculation based of month and years

    Changed row 2 from text to dates starting with 1/1/2022
    Formula for row 6:
    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.

  7. #7
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    183

    Re: Proforma calculation based of month and years

    @ JeteMc,

    That formula is good, a little simpler that my original one as well. Thanks!

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

    Re: Proforma calculation based of month and years

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

  9. #9
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    183

    Re: Proforma calculation based of month and years

    @ JeteMc,

    I have reopened this thread. There is another variable that I forgot to mention in the threads above.

    I need the Expire date in column (K) to be incorporated into the long formula.

    In the screenshot below -

    in (AV6) I want the 2024 amt value to continue until the end of the contract on 5/12/2025 in (K6). The current formula returns blank after the end date (R6) 5/12/2024 - however that $200,000 amount in (P6) should still run until the end of they year 12/31/2024 - since the schedule does not expire until 5/12/2025.

    So if the end date and expire date are the same then the formula should return nothing. But if the end date is less than the expire date, we would want that amount from (P6) to continue to the end of the year.

    Attachment 836461
    Attached Files Attached Files

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

    Re: Proforma calculation based of month and years

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

    Let us know if you have any questions.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    183

    Re: Proforma calculation based of month and years

    @ JeteMC,

    That formula worked, thanks!

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

    Re: Proforma calculation based of month and years

    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. [SOLVED] Highlight cell month based on dates in column years
    By billrogers184 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-30-2019, 09:55 AM
  2. Replies: 1
    Last Post: 03-14-2019, 08:42 AM
  3. month to date calculation based on month selection from list box
    By jamaludheen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-06-2017, 06:00 AM
  4. RD calculation based on No.of weeks,days,months,years
    By santbiju in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-05-2016, 05:38 PM
  5. RD calculation based on No.of weeks,days,months,years
    By santbiju in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-05-2016, 07:40 AM
  6. Calculating years of membership based month they joined
    By ChelleMyBelle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-08-2016, 09:31 AM
  7. Expiration date based on 5 years and Birth month,day ...
    By Kane in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 01-26-2006, 12:42 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