+ Reply to Thread
Results 1 to 6 of 6

Automatically fill in dates two weeks and one month ahead of date inputted manually

  1. #1
    Registered User
    Join Date
    06-21-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Question Automatically fill in dates two weeks and one month ahead of date inputted manually

    Hi all

    I have a log which I am creating, and I need to write a macro/formula to automatically fill in some dates. When I input a date in to Column D, I want Excel to fill in the date two weeks after that in Column K and one month after it in Column L. This is so that I can keep track of when things are due. I have seen it done before on an old spreadsheet I used but I dont have a copy any more... Hope someone can help!

    Thanks
    Last edited by LKC; 06-21-2011 at 06:01 AM.

  2. #2
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526

    Re: Automatically fill in dates two weeks and one month ahead of date inputted manual

    As you edited the title.
    If your date is given in D1 then

    to add two weeks
    Please Login or Register  to view this content.



    to add a month
    Please Login or Register  to view this content.
    (considering 30 days for one month)
    regards

    johnjohns

    When you are not sure where to go, every road takes you there!

  3. #3
    Registered User
    Join Date
    06-21-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Automatically fill in dates two weeks and one month ahead of date inputted manual

    Thanks johnjohns. As this is going to be a large sheet that will be continually added to, do you know how to set this so that it does it automatically as soon as you enter the date in any new row on the sheet? And also for any month of the year?

  4. #4
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526

    Re: Automatically fill in dates two weeks and one month ahead of date inputted manual

    Perhaps this way. See the attachment. Provided, D column contains dates and/or empty cells only (for the macro to run)
    Attached Files Attached Files

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Automatically fill in dates two weeks and one month ahead of date inputted manual

    This might be more accurate for adding a Month

    =DATE(YEAR(A1),MONTH(A1)+1,DAY(A1))

    Using Excel 2010 look at Tables for extending the formula, in the example add dates to column A
    Attached Files Attached Files
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526

    Re: Automatically fill in dates two weeks and one month ahead of date inputted manual

    Right Roy, I just thought this formula may crash at dates like 31/01/2011 as 31/02/2011 is invalid. But it doesn't. I should have tried it. So I too prefer your answer

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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