+ Reply to Thread
Results 1 to 9 of 9

Calculate pro rata based on start/end date

Hybrid View

  1. #1
    Registered User
    Join Date
    03-10-2019
    Location
    Berlin
    MS-Off Ver
    Office 365
    Posts
    5

    Calculate pro rata based on start/end date

    Hi everybody,

    I do not get my head around how I could solve the following via Excel and was hoping you could help. I would like to calculate the pro rata value of an amount based on start date and end date for the impacted year.

    Example: I get an invoice of 1000 USD which covers the period Oct 2017 to February 2018 (5 months). Excel shall now decompose the 1000 USD and assign the appropriate value to 2017 (3 months = 600 USD) and 2018 (2 months = 400 USD).

    Note: The date range and values are flexible.

    Any ideas how I could do that? Thanks in advance.
    Last edited by Olli Saccount; 03-10-2019 at 07:34 AM.

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

    Re: Calculate pro rata based on start/end date

    Welcome to the forum!

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    03-10-2019
    Location
    Berlin
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Calculate pro rata based on start/end date

    Thank you AliGW. I attached an example (Input & Desired Output) of my question.
    Attached Files Attached Files

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Calculate pro rata based on start/end date

    Messier than you'd think ...

    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    P
    10
    Year
    11
    Item
    Start
    End
    Months
    Amt
    2016
    2017
    2018
    2019
    2020
    2021
    2022
    12
    Water
    2017-04-01
    2017-11-06
    8
    160
    0
    160
    0
    0
    0
    0
    0
    E12: =DATEDIF(EOMONTH($C12, -1) + 1, EOMONTH($D12, 0) + 1, "m")
    13
    Heating
    2017-10-01
    2018-03-31
    6
    1800
    0
    900
    900
    0
    0
    0
    0
    H12: =$F12 / $E12 * IFERROR(DATEDIF(MAX(EOMONTH($C12, -1) + 1, DATE(H$11, 1, 1)), MIN(EOMONTH($D12, 0) + 1, DATE(H$11, 13, 1)), "m"), 0)
    14
    Tax
    2018-01-01
    2019-03-30
    15
    1500
    0
    0
    1200
    300
    0
    0
    0
    15
    Insurance
    2018-04-01
    2018-12-31
    9
    560
    0
    0
    560
    0
    0
    0
    0
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    03-10-2019
    Location
    Berlin
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Calculate pro rata based on start/end date

    It works! Right now, I do not fully understand why it works but I will take a closer look at it soon. Thank you shg. Much appreciated.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Calculate pro rata based on start/end date

    You're welcome.

  7. #7
    Registered User
    Join Date
    03-10-2019
    Location
    Berlin
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Calculate pro rata based on start/end date

    Hello everybody,
    I have a similiar problem like the one above. The only difference is that I need to have it by days (only months are not enough). Please see my mockup excel attached. Could you help me?
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,419

    Re: Calculate pro rata based on start/end date

    question : is it 91+90=181 or 92+89=181 for both years ?
    =MAX(0,MIN(DATE(Table2[[#Headers],[2018]],1,1),$C3)-MAX(DATE(Table2[[#Headers],[2017]],1,1),$B3))
    Attached Files Attached Files
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  9. #9
    Registered User
    Join Date
    03-10-2019
    Location
    Berlin
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Calculate pro rata based on start/end date

    Thank you very much for your input. That is exactly what I needed. Concerning your question: It would be rather 91+90.

+ 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: 3
    Last Post: 06-23-2015, 09:56 AM
  2. Calculate next due date based on start date frequency and current date
    By ironoverload in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-09-2014, 07:08 AM
  3. [SOLVED] Calculate END DATE based on START DATE & No of working days
    By prashantha in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-20-2013, 07:22 AM
  4. Replies: 0
    Last Post: 03-21-2013, 12:22 PM
  5. [SOLVED] Calculate date based on number of weeks or months after start date
    By wotsup in forum Excel General
    Replies: 3
    Last Post: 08-17-2012, 06:00 AM
  6. Calculate START date based on duration (work hours) and END date
    By kaaver in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-06-2010, 12:21 PM
  7. Calculate start date based on working hours and end date
    By kaaver in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-28-2010, 06:58 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