+ Reply to Thread
Results 1 to 2 of 2

Dynamic Timeline generation

  1. #1
    Registered User
    Join Date
    11-24-2019
    Location
    Australia
    MS-Off Ver
    365
    Posts
    3

    Smile Dynamic Timeline generation

    Hi guys,

    I am trying to create a worksheet which will eventually help me build a timeline / gantt chart.
    Since, I am still learning excel and do not know Macros/VBA. I am still unsure if what I want can be done without the "advanced" skills.

    I have currently broken down the issues in small parts and I am currently at stage one, where I am trying to get a list of dates to be automatically generated according to the start and end date mentioned. The dates are to be automatically generated in the cells below in an increment of an year.
    I am aware that 'EDATE' And 'IF' can be used for such a task.

    However, once the dates are generated I would be manually entering some dates under the cells. All the dates are to be automatically sorted from the oldest to newest. The current formula doesn't not have a limiter as to the end date, and manually sorting by date messes the whole thing.

    I have attached my current worksheet (very basic).

    Outcome trying to achieve:

    - Auto-generation of dates and their corresponding 'SP' in the next column.
    - Auto sort of date: Oldest to Newest, after manual entry of date in the rows below
    - Calculation of gap in months (DATEDIF), between "Manual entry / non SP event" and the 'SP' it happened in.
    (For Example Event A occurs in SP1 and the gap in month would be 1)



    Thank you
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,565

    Re: Dynamic Timeline generation

    I am skipping the auto-generation of dates as post #1 states "I am aware that 'EDATE' And 'IF' can be used for such a task".
    As to calculation of gap, if I understand correctly, paste the following array entered formula* into D7 and drag down: =IF(LEFT(C7,2)="SP","",DATEDIF(INDEX(B6:B$7,MATCH(YEAR(B7),YEAR(B6:B$7),0)),B7,"m"))
    As to sorting of dates along with corresponding events and gaps use a pivot table as modeled in the attached file.
    *Array entered formulas are confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Dynamic Timeline
    By caseys_93 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-16-2015, 03:30 PM
  2. Dynamic timeline
    By dpcrow in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-15-2014, 08:47 PM
  3. A Dynamic Timeline Gantt Chart
    By Uttam123 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-15-2013, 02:09 AM
  4. Excel 2007 : Dynamic Charting Discontinuous Timeline
    By sriniyer in forum Excel General
    Replies: 1
    Last Post: 04-24-2011, 10:01 PM
  5. Dynamic Chart Timeline
    By Scrap74 in forum Excel General
    Replies: 2
    Last Post: 06-29-2010, 06:11 AM
  6. Dynamic code Generation
    By Bazman2 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-19-2009, 11:33 AM
  7. [SOLVED] Dynamic List Generation
    By wmureports in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-26-2006, 04:25 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