+ Reply to Thread
Results 1 to 4 of 4

Need help with a chart featuring dynamic date ranges and intervals

  1. #1
    Registered User
    Join Date
    10-05-2022
    Location
    Wellington
    MS-Off Ver
    365
    Posts
    7

    Question Need help with a chart featuring dynamic date ranges and intervals

    Hi Team,

    I have a doosy one here if anyone is up for a challenge.

    Im just working on a spreadsheet where daily stats can be entered, the daily stats cover every weekday and runs horizontally as below (random dummy data used):

    Stats1.jpg

    So what I essentially want to do is in the stats worksheet, two dates can be selected (start and end) and essentially it would plot the sales for the selected date range on the graph.

    The other thing I want to do (only if possible) that the period to graph can also be selected, for example if 'show period' is set to 'weekly' instead of daily it would sum 5 days and only plot each week between the selected periods.

    Stats2.jpg

    So far, I almost got the dynamic date range to work with the following function in the 'Stats' worksheet:

    Please Login or Register  to view this content.
    However once I created in the Name Manager, It does not let me use in the 'Axis label range' of the graph.

    Any help is truly appropriated, example file attached.
    Attached Files Attached Files

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Need help with a chart featuring dynamic date ranges and intervals

    Try changing the Named range formula.

    =INDEX( '2022'!$C$1:$CA$1,1,MATCH(Stats!$C$3, '2022'!$C$1:$CA$1,0)):INDEX( '2022'!$C$1:$CA$1,1,MATCH(Stats!$F$3, '2022'!$C$1:$CA$1,0))
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    10-05-2022
    Location
    Wellington
    MS-Off Ver
    365
    Posts
    7

    Re: Need help with a chart featuring dynamic date ranges and intervals

    Thank you that worked!

    Anyone know if its possible to change the chart to plot from daily to weekly?

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Need help with a chart featuring dynamic date ranges and intervals

    You will need to manipulate the data on the sheet, via formula, to create weekly data. Then chart that.

    The chart will not summarise the data for you.

    When you have 2 sets of data you can either plot the required data in a 3rd set of data for charting.
    Or modify your named ranges to choose which data to plot.

+ 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 ranges without naming lots of ranges
    By benoj2005 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 12-21-2020, 04:30 AM
  2. Using Dynamic Ranges in Chart
    By L.LEE in forum Excel General
    Replies: 6
    Last Post: 11-12-2016, 03:14 PM
  3. Replies: 1
    Last Post: 09-27-2016, 12:41 AM
  4. [SOLVED] VBA Dynamic Chart Ranges
    By hobbiton73 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-21-2014, 07:30 AM
  5. dynamic chart ranges
    By pbneal in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-25-2010, 12:23 PM
  6. Chart axis date intervals
    By asadim in forum Excel General
    Replies: 12
    Last Post: 03-11-2009, 05:56 AM
  7. dynamic chart ranges
    By roxrocks in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-07-2008, 12:23 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