+ Reply to Thread
Results 1 to 7 of 7

From Year and upto year dates need to be plotted

  1. #1
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    From Year and upto year dates need to be plotted

    Hello Friends

    I need to plot the dates from the given year and upto next given ___ years in light yellow cells.

    thanks in advance
    Sekar

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,824

    Re: From Year and upto year dates need to be plotted

    Do the dates in column A determine the starting date?

    Pete

  3. #3
    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,946

    Re: From Year and upto year dates need to be plotted

    You will need to also specify the month and day to start from, otherwise how would we know where to start?

    This works for your 1st example, I just had to add a starting day (+1)

    To start the sequence (I used H2 so you can compare)...
    H2=DATE(D$2,1,1)+1
    Then to continue, just add 7....
    H3=IFERROR(IF(H2+7>DATE($D$2+$E$2,12,31),"",H2+7),"")
    copied down

    Once you have added the start month and day, you can use them in the 1st formula...
    H2=DATE(D$2,month-cell,day-cell)
    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

  4. #4
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Re: From Year and upto year dates need to be plotted

    But the problem is the dates will not uniform to add 7.

  5. #5
    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,946

    Re: From Year and upto year dates need to be plotted

    That is what your sample of over 200 dates, showed. If that was not what you wanted, then please show what you want, and explain how you got that

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,936

    Re: From Year and upto year dates need to be plotted

    Try this in G2:

    =WORKDAY.INTL(DATE($D$2,1,0),1,"0111111")

    G3:

    =IF(YEAR($G$2+ROWS($G$2:G2)*7)<=$D$2+$E$2,$G$2+ROWS($G$2:G2)*7,"")

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,414

    Re: From Year and upto year dates need to be plotted

    Since the upload doesn't indicate a start month I forced them. In G2

    =DATE($D$2,1,MATCH(2,WEEKDAY(DATE($D$2,1,{1,2,3,4,5,6,7})),0))+(ROW()-ROW($2:$2))*7

    In M2

    =DATE($J$2,7,MATCH(2,WEEKDAY(DATE($J$2,7,{1,2,3,4,5,6,7})),0))+(ROW()-ROW($2:$2))*7
    Dave

+ 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: 3
    Last Post: 10-06-2015, 05:30 PM
  2. How change cell year dates to automatically update to new year
    By RonRich in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-05-2015, 08:29 AM
  3. Automatically update year interval cycles from year to year
    By trumptight in forum Word Programming / VBA / Macros
    Replies: 8
    Last Post: 08-21-2014, 10:38 PM
  4. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  5. Replies: 3
    Last Post: 08-14-2012, 05:14 AM
  6. countif. dates in a year (year is the criteria)
    By barrfly in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-18-2010, 03:33 PM
  7. [SOLVED] how do I convert a dates in a year quarters in a year?
    By Linndek in forum Excel General
    Replies: 5
    Last Post: 05-11-2006, 10:35 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