+ Reply to Thread
Results 1 to 8 of 8

Formula to prorate monthly salaries based on start and end date

  1. #1
    Registered User
    Join Date
    03-03-2024
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    5

    Formula to prorate monthly salaries based on start and end date

    I currently have a formula below that works for calculating the monthly salary based on start and end date. Here it is....

    IF(OR($B2>EOMONTH(E$1,0),$C2<E$1),"",$D2*(MIN(EOMONTH(E$1,0),$C2)-MAX(E$1,$B2)+1)/IF(MOD(YEAR($E$1),4)=0,366,365))


    This calculates the monthly salary based on the number of days in the month compared to the annual salary. As a result, each monthly salary is different based on the number of days.

    I would like to change this formula so that the monthly salary is the same each month except for partial months (either the start date month or the end date month). In this case, the prorated salary for the month that has a partial date should calculate based on the # of days in month as a % of total days in that month.

    For example, a person with annual salary of $120,000 has a monthly salary of $10,000. If the person is starting on May 15, 2024, the salary cost for the month of May is $5,484. From May 15th through May 31st is 17 days, so the cost is equal to 17*(10,000/31). I would then want to see a monthly salary cost of $10,000 from June onwards until the person leaves. The month they leave would be prorated similarly.

    Can anyone help with this update to the above formula? Thanks!
    Attached Files Attached Files
    Last edited by IPOK; 03-04-2024 at 11:27 AM. Reason: Uploading sample file

  2. #2
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Formula to prorate monthly salaries based on start and end date

    Please help us to help you and attach a worksheet.

  3. #3
    Registered User
    Join Date
    03-03-2024
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Formula to prorate monthly salaries based on start and end date

    I'm new here and don't know how to add a file. I'll look into it and try to add file tomorrow. thanks.

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Formula to prorate monthly salaries based on start and end date

    Refer yellow banner on top of screen.
    HOW TO ATTACH YOUR SAMPLE WORKBOOK:Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  5. #5
    Registered User
    Join Date
    03-03-2024
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Formula to prorate monthly salaries based on start and end date

    I have added a file showing the current working formula based on number of days (Row 2) and the desired result (Row 5) which would calculate based on equal monthly cost.

    Thanks!

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: Formula to prorate monthly salaries based on start and end date

    Try in E2, =MAX(MIN($C2,EOMONTH(E$1,0))-MAX($B2,E$1)+1,0)/DAY(EOMONTH(E$1,0))*$D2/12, copy across and down.

  7. #7
    Registered User
    Join Date
    03-03-2024
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Formula to prorate monthly salaries based on start and end date

    Thank you so much. This worked perfectly!

  8. #8
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: Formula to prorate monthly salaries based on start and end date

    You are welcome, glad to help, thanks for the Rep!

+ 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: 05-29-2022, 09:04 PM
  2. Replies: 1
    Last Post: 08-08-2019, 10:23 AM
  3. [SOLVED] Total monthly cost calculated based on start and end date
    By NS4Excel1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-02-2018, 02:17 PM
  4. Monthly Pro Rated Salary Based on start and end date [SOLVED]
    By thomas.mapua in forum Excel General
    Replies: 10
    Last Post: 08-04-2015, 01:02 AM
  5. Automating monthly budget averages based on start and end date
    By kjkotowski in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-31-2014, 09:10 AM
  6. [SOLVED] Monthly Average Based off a start and end date?
    By ImpetuousRacer in forum Excel General
    Replies: 9
    Last Post: 06-13-2012, 09:13 PM
  7. Prorate formula for weekly to monthly data
    By randym44 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-28-2011, 03:02 AM

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