+ Reply to Thread
Results 1 to 6 of 6

Dynamic chart - Select the Last (-1 row) n date

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-23-2013
    Location
    Hungary
    MS-Off Ver
    Excel 2013
    Posts
    331

    Dynamic chart - Select the Last (-1 row) n date

    Hello,

    I would like to ask some help regarding dynamic charting.
    In the sample file I would like to define a formula to select the Last (-1 row) n date but I cannot figure out.
    The blocking points for me:
    - the DATE cell contains formula,
    - the range selection should start at Last (-1 row) n date.

    The details in the attached file.

    Thank you in advance the reply!
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Dynamic chart - Select the Last (-1 row) n date

    1. Delete the formulae in the blank cells at the foot of the data.

    2. Turn the data into an Excel table (the first column will auto increment when you add a value in the second column).

    3. Create 3 more named ranges (you're already familiar with this) : ChtCats, ChtVal and ChtLen and readdress the graph to ChtCats and ChtVal.

    4. Sit back & admire...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Contributor
    Join Date
    12-23-2013
    Location
    Hungary
    MS-Off Ver
    Excel 2013
    Posts
    331

    Re: Dynamic chart - Select the Last (-1 row) n date

    Hi Glenn,

    Thank you for your time!
    Unfortunately, not possible to delete the formulae at the foot of data (in column DATE). Do you have other idea?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Dynamic chart - Select the Last (-1 row) n date

    An odd requirement... Oh well.

    Use this in the named range ChtCats:

    =OFFSET(Sheet1!$B$2,SUMPRODUCT(--(LEN(Sheet1!$B$2:$B$1000)>0))-1,0,-MIN(ChtLen,SUMPRODUCT(--(LEN(Sheet1!$B$2:$B$1000)>0))-1),1)

    if you don't need 1000 rows, amend the ranges to something more suitable.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    12-23-2013
    Location
    Hungary
    MS-Off Ver
    Excel 2013
    Posts
    331

    Re: Dynamic chart - Select the Last (-1 row) n date

    Thank you very much Glenn, you helped me lot!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Dynamic chart - Select the Last (-1 row) n date

    You're welcome and thanks for the rep.

+ 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] Dynamic Chart with start date and end date
    By engine44 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-16-2015, 10:48 AM
  2. Create dynamic line on chart for current date
    By thassim in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 10-10-2014, 07:21 AM
  3. Dynamic chart automatically changing its range if we select wrong date
    By maniknandi in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-06-2013, 12:46 AM
  4. Keying a dynamic chart off of an entered date
    By Drew Goldberg in forum Excel General
    Replies: 4
    Last Post: 10-10-2011, 11:58 AM
  5. Dynamic Chart based on Date drop down list
    By hazelwouldbe in forum Excel General
    Replies: 1
    Last Post: 07-21-2011, 11:32 PM
  6. Dynamic chart -date problems
    By 77anders in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2009, 10:35 AM
  7. [SOLVED] Dynamic chart to track progress by date
    By Greezy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-09-2006, 03:10 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