+ Reply to Thread
Results 1 to 5 of 5

How to calculate end of month -2 days

  1. #1
    Forum Contributor
    Join Date
    01-11-2016
    Location
    Brazil
    MS-Off Ver
    2010
    Posts
    125

    How to calculate end of month -2 days

    I need a formula that calculates end of month. For example, i have a calender, where the person picks a date, lets say for example: 20/01/2016, i need a formula that calculates the end of the month of january - 2 days. Is this possible? If the person picks march, for example, i want it to calculate the end of the month of march - 2 days, is that possible?

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: How to calculate end of month -2 days

    Good morning joao1232

    We would really need to know where this date is stored and in what kind of format.
    A standard formula for returning the last day of the month less 2 days (for January 2016) would be :
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    HTH

    DominicB

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

    Re: How to calculate end of month -2 days

    With your date in A1, you can use this formula (e.g. in B1):

    =EOMONTH(A1,0)-2

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    01-11-2016
    Location
    Brazil
    MS-Off Ver
    2010
    Posts
    125

    Re: How to calculate end of month -2 days

    Thanks for the help, i got it to work!

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

    Re: How to calculate end of month -2 days

    Glad to hear it.

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

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. How to calculate business days (every 3 month)
    By sundaylittle in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 11-29-2015, 08:47 PM
  2. Calculate Business Days in a month.
    By Dulanic in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-15-2015, 10:43 AM
  3. [SOLVED] Calculate no of working days in a month
    By Liana86 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-16-2014, 12:08 PM
  4. [SOLVED] How to calculate an average for all days within a certain month
    By consulttk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-03-2012, 11:37 AM
  5. Calculate days in month after a given date
    By Grimace in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-20-2010, 12:41 AM
  6. Calculate Year Month and Days and Add them
    By lavan_joy in forum Excel General
    Replies: 8
    Last Post: 11-17-2010, 12:35 PM
  7. [SOLVED] Calculate Days in a Month
    By LGG in forum Excel General
    Replies: 6
    Last Post: 01-13-2006, 02:35 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