+ Reply to Thread
Results 1 to 3 of 3

Auto insert the last day of the month?

  1. #1
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327

    Auto insert the last day of the month?

    Hello All, I have a monthly log I use from month to month. Is there a way for excel to auto-insert the last day of the month in a particular cell? For instance, If I were to insert 08/01 in cell D3 - cell D7 would auto insert 08/31, if I put 09/01, D7 would = 09/30, etc...etc...etc...

    Thanx......LT
    Last edited by Ltat42a; 08-05-2010 at 05:32 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Auto insert the last day of the month?

    Yes

    D7: =DATE(YEAR(D3),MONTH(D3)+1,0)

    Or if you're using XL2007+

    D7: =EOMONTH(D3,0)

  3. #3
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327

    Re: Auto insert the last day of the month?

    Quote Originally Posted by DonkeyOte View Post
    Yes

    D7: =DATE(YEAR(D3),MONTH(D3)+1,0)

    Or if you're using XL2007+

    D7: =EOMONTH(D3,0)
    Kewl....thank you, works good.

    LT

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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