+ Reply to Thread
Results 1 to 5 of 5

How to change the dates in series of columns just by changing the date in a single column

  1. #1
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    605

    Arrow How to change the dates in series of columns just by changing the date in a single column

    Hi experts,

    Please look in to the attached data sheet. Here I have dates in row no 2 starting from column M. What I need is to have a formula that changes the dates forward automatically when only the date in M2 changes to the current date.

    Currently, I do this by changing the date in M2 and drag it all the way forward by holding the left mouse button.


    Thanks in advance
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: How to change the dates in series of columns just by changing the date in a single col

    try this, copied across...
    =M2+1
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    605

    Re: How to change the dates in series of columns just by changing the date in a single col

    Just tried, It just changes to "0 -Jan", but how to get back to current date?? An, when I type the current date, it will also delete the formula, won't it?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: How to change the dates in series of columns just by changing the date in a single col

    I used that in your file and it worked just fine...
    M
    N
    O
    P
    1
    2
    19-May
    20-May
    21-May
    22-May
    3
    200
    200


    N2=M2+1 copied across

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to change the dates in series of columns just by changing the date in a single col

    Test for posting as User Saarang84, complained that can not post in this particular thread.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  6. #6
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: How to change the dates in series of columns just by changing the date in a single col

    This is a test post
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

+ 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. Replies: 6
    Last Post: 06-13-2016, 11:23 AM
  2. How to plot a single column of data in multiple series based on date
    By slavrenz in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-23-2014, 06:59 AM
  3. [SOLVED] Splitting single column of dates to 2 columns representing a beginning and end date
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-21-2013, 11:16 PM
  4. Replies: 1
    Last Post: 08-02-2012, 03:58 AM
  5. how do I change a line series to a column series in excel?
    By Mati in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-12-2005, 05:06 AM

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