+ Reply to Thread
Results 1 to 3 of 3

Changing Year to Current Dates

  1. #1
    Registered User
    Join Date
    01-22-2013
    Location
    Hawaii
    MS-Off Ver
    Excel 2003
    Posts
    34

    Changing Year to Current Dates

    In a spreadsheet, in row 4, I have dates starting from January1, 2016 through December 31, 2016 (with each date being in its' own column) - D4:NE4

    Is there a way to have an additional cell on the sheet where I can simply enter a new year (say 2017, 2018, etc) and all column dates will change to reflect the correct 2017, 2018 dates? I don't want to have to do find and replace

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Changing Year to Current Dates

    Place the new year in cell A1 and run this short macro:
    Please Login or Register  to view this content.
    Gary's Student

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Changing Year to Current Dates

    Try this:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ 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: 1
    Last Post: 04-29-2016, 01:28 PM
  2. Replies: 1
    Last Post: 02-09-2016, 03:35 PM
  3. [SOLVED] Set PivotTable Filter to Current Day, Current Week, Current Month, or Current Year
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2014, 08:31 AM
  4. Macro to change a row of dates in line with current month and year
    By widodude in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-02-2011, 06:50 AM
  5. change dates to current year
    By hayden1616 in forum Excel General
    Replies: 5
    Last Post: 04-21-2009, 06:58 PM
  6. [SOLVED] check to see if all dates are for the current year
    By Oldjay in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-26-2005, 08:45 PM
  7. Converting Older Dates to the Current Year
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-23-2005, 12:00 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