+ Reply to Thread
Results 1 to 5 of 5

Automatic calculate days until salary

  1. #1
    Registered User
    Join Date
    06-04-2017
    Location
    Sweden
    MS-Off Ver
    2010
    Posts
    4

    Automatic calculate days until salary

    Lets say i want a cell to show X-days until salary (that i get on the 27't each month)

    I'm thinking something like this (translated):
    =DATE(;;27)-TODAY()
    Please Login or Register  to view this content.
    So i don't need to change the date every month (Because that i get to work with "=TODAY()-L3" where L3 is the salary date that i update manually every month).
    But the formula i try to make that is going to be automatic doesn't work (yet).
    So what am i missing in "=DATE(;;27)-TODAY()"?
    Last edited by Ametz; 05-04-2019 at 08:28 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: Automatic calculate days until salary

    You need to specify the year and the month within the DATE function. In English it would be:

    =DATE(YEAR(TODAY()),MONTH(TODAY())+IF(DAY(TODAY())>27,1,0),27)-TODAY()

    You will need to change the commas ( , ) to semicolons ( ; ), as well as translate the function names to Swedish.

    Note that you need the IF statement in there to cater for TODAY being after the 27th of a month.

    Hope this helps.

    Pete

  3. #3
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Automatic calculate days until salary

    I think this formula will always work, never need to manually change any date not for next month and also not for next years
    the EDATE formula jumps to next month if the day is >27 and use this months 27th date to calculate until next payday on 27th..

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


    or swedish version

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

  4. #4
    Registered User
    Join Date
    06-04-2017
    Location
    Sweden
    MS-Off Ver
    2010
    Posts
    4

    Re: Automatic calculate days until salary

    Ok, i think i got it to work now

    Please Login or Register  to view this content.
    Thanks

    I just needed to copy format from another empty cell and "bam" it worked
    Last edited by Ametz; 05-04-2019 at 09:13 AM.

  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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,390

    Re: Automatic calculate days until salary

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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.

+ 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. calculate salary problem
    By malarvel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-13-2016, 04:37 AM
  2. [SOLVED] Days calculation and salary bifurcation problem
    By AVG123 in forum Excel General
    Replies: 9
    Last Post: 01-06-2016, 03:01 AM
  3. 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
  4. calculate 4 different tiers of commission with fix salary
    By shintaro in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-08-2014, 01:18 AM
  5. [SOLVED] Calculate salary average
    By monid78 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 03-24-2013, 10:02 AM
  6. calculate salary by every minute
    By jeevan123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-17-2013, 06:43 PM
  7. How to calculate pension contribution on salary?
    By pgruening in forum Excel General
    Replies: 4
    Last Post: 09-07-2005, 05:05 PM

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