+ Reply to Thread
Results 1 to 6 of 6

Autofill date based on date in another cell

  1. #1
    Forum Contributor
    Join Date
    12-21-2004
    Location
    MN
    MS-Off Ver
    Microsoft 365
    Posts
    213

    Autofill date based on date in another cell

    Hi,
    I am looking for a function that would automatically fill in a date in one cell based off the date listed in a different cell.

    For example:
    A4 cell contains 3/31/05 and A15 contains 3/31/04

    I would like to be able to fill in A4, and have A15 automatically fill. It needs to be the last day of the month for the prior year. So in February, A4 would be 2/28/05 and A15 should fill as 2/29/04.

    Thank you for any help!!!
    Last edited by karstens; 05-11-2005 at 04:25 PM.

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Place this formula in A15:

    =EOMONTH(A4,-12)

    Cheers!

    Bruce
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Forum Contributor
    Join Date
    12-21-2004
    Location
    MN
    MS-Off Ver
    Microsoft 365
    Posts
    213
    Thank you for responding!! When I put this formula in, it is coming back:

    #NAME?

    I have all the fields set to date fields.

  4. #4
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    You may need the Analysis ToolPak installed to have this function. Go to Tools>Addins and check the box for this item.

    Good Luck

    Bruce

  5. #5
    Forum Contributor
    Join Date
    12-21-2004
    Location
    MN
    MS-Off Ver
    Microsoft 365
    Posts
    213

    Thank you!

    Thanks for your help...that worked perfectly!

  6. #6
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    I'm glad it worked for you. Thanks for the feedback, it is always appreciated.

    Cheers!

+ 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