+ Reply to Thread
Results 1 to 7 of 7

Creating new dates automatically - an issue I've run into

  1. #1
    Registered User
    Join Date
    04-25-2015
    Location
    Ontario, Canada
    MS-Off Ver
    2016
    Posts
    72

    Creating new dates automatically - an issue I've run into

    I have a spreadsheet that takes a data dump from another program and automatically creates reports based on today's date. It will look at this month, next month, etc.

    All of this relies on a table which takes today's date and breaks it into a weeks and months. However, the formula has no way of knowing when to start a new year.

    For example, I am reporting on 10 months running. May is "2019 05", June "2019 06" etc. However, my report is now showing "2019 13".

    I would like to make it smart enough to never go over the 12 limit for months, and 53 limit for ISO weeks.

    Attached is the sample file.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Creating new dates automatically - an issue I've run into

    Hi,

    Presumably B6 copied across
    Please Login or Register  to view this content.
    and similarly B5
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    04-25-2015
    Location
    Ontario, Canada
    MS-Off Ver
    2016
    Posts
    72

    Re: Creating new dates automatically - an issue I've run into

    Hi Richard, is there way to create a list or something similar which will help it figure out that after 2019 12 comes 2019 01?

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Creating new dates automatically - an issue I've run into

    Perhaps B6 copied across

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    similarly for B5 but MOD(26) rather than MOD(12)

  5. #5
    Registered User
    Join Date
    04-25-2015
    Location
    Ontario, Canada
    MS-Off Ver
    2016
    Posts
    72

    Re: Creating new dates automatically - an issue I've run into

    That's pretty neat, haven't seen that before. Only remaining piece would be to find a way for the values above 12 to switch to add +1 to year.

    I am going to see if I can make an IF function help there.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Creating new dates automatically - an issue I've run into

    Maybe B6

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    formatted as "yyyy mm"

    and B5
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-25-2015
    Location
    Ontario, Canada
    MS-Off Ver
    2016
    Posts
    72

    Re: Creating new dates automatically - an issue I've run into

    I don't understand how it works, Richard, but it's great. Thanks a lot!

+ 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. [SOLVED] Creating a serious of dates, where the dates never fall on the weekend
    By blackrosepetals9169 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2018, 03:22 AM
  2. [SOLVED] Creating Labels Issue
    By bigtunelover in forum Excel General
    Replies: 7
    Last Post: 05-11-2018, 11:57 AM
  3. [SOLVED] Creating a formula to populate range of cells between dates based on start and end dates
    By Rainmain82 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-20-2014, 07:42 PM
  4. [SOLVED] Creating a formula to populate range of cells between dates based on start and end dates
    By Rainmain82 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-18-2014, 07:55 AM
  5. Issue - Getting Log Out automatically
    By :) Sixthsense :) in forum Suggestions for Improvement
    Replies: 26
    Last Post: 09-17-2013, 09:22 PM
  6. Replies: 3
    Last Post: 02-09-2012, 06:57 PM
  7. Excel 2007 : Automatically creating a series of dates
    By marketshare in forum Excel General
    Replies: 5
    Last Post: 02-11-2010, 01:43 AM

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