+ Reply to Thread
Results 1 to 5 of 5

Calculate salary between two date ( depending on monthly salary, not daily)

  1. #1
    Registered User
    Join Date
    01-31-2022
    Location
    Baku, Azerbaijan
    MS-Off Ver
    MS Office 2016
    Posts
    6

    Question Calculate salary between two date ( depending on monthly salary, not daily)

    Hi, friends. Firstly, sorry for my bad English.

    I want to calculate salary between two date which is depending on monthly salary.. Example, monthly salary is 1000 euro. Date interval { 15.02.2022 - 24.04.2022} // I want to calculate in this type ... 14*1000/28 + 1*1000 + 7*1000/30 .... days between two date way is different, because daily way depending on daily salary. In February, daily salary is 1000/28 , in march daily salary is 1000/31 and etc. Please help me.

  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,719

    Re: Calculate salary between two date ( depending on monthly salary, not daily)

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.
    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 Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Calculate salary between two date ( depending on monthly salary, not daily)

    I fully agree with Ali but if start date is in a1 and enddate is in b1 perhaps the following may work
    =IF(AND(MONTH(A1)=MONTH(B1),YEAR(A1)=YEAR(B1)), (B1-A1+1)/DAY(EOMONTH(A1,0)),(EOMONTH(A1,0)-A1+1)/DAY(EOMONTH(A1,0))+(B1-EOMONTH(B1,-1))/DAY(EOMONTH(B1,0))+DATEDIF(EOMONTH(A1,0),EOMONTH(B1,-1),"m"))*1000

    =IF(AND(MONTH(A1)=MONTH(B1),YEAR(A1)=YEAR(B1)), (B1-A1+1)/DAY(EOMONTH(A1,0)) if the same month then endate=startdate+1/days in the month

    otherwise proportion of start month + proportion of end months, plus months inbetween
    start month proportion (EOMONTH(A1,0)-A1+1)/DAY(EOMONTH(A1,0))
    end month proportion (B1-EOMONTH(B1,-1))/DAY(EOMONTH(B1,0))
    full months DATEDIF(EOMONTH(A1,0),EOMONTH(B1,-1),"m")

    all multiplied by 1000

  4. #4
    Registered User
    Join Date
    01-31-2022
    Location
    Baku, Azerbaijan
    MS-Off Ver
    MS Office 2016
    Posts
    6

    Thumbs up Re: Calculate salary between two date ( depending on monthly salary, not daily)

    Thank you so much
    Last edited by AliGW; 01-31-2022 at 11:19 AM. Reason: PLEASE don't quote unnecessarily!

  5. #5
    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,719

    Re: Calculate salary between two date ( depending on monthly salary, not daily)

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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: 4
    Last Post: 06-15-2022, 11:30 AM
  2. Calculate monthly salary based on hire date
    By FSUMBA97 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-04-2021, 07:03 AM
  3. Adding Salary Increase to already prorated salary amount based on a salary increase date
    By Excelhelppleasethank in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2019, 03:43 PM
  4. Replies: 1
    Last Post: 11-22-2017, 05:27 AM
  5. How to calculate Gross Salary from given Net Salary
    By Basab in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-17-2015, 01:15 AM
  6. [SOLVED] Need formula for prorating monthly salary based on hire/fire date and annual salary.
    By Excel_Help_Pls in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-06-2015, 12:56 AM
  7. Replies: 3
    Last Post: 07-26-2012, 04:11 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