+ Reply to Thread
Results 1 to 5 of 5

Conditional Chart Range

  1. #1
    Registered User
    Join Date
    09-18-2012
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    5

    Conditional Chart Range

    Hi! I am trying to have a chart which has a conditional range. The data looks like this (my attach function is not working, here is a link):

    A B
    Date Value1
    1/1/2017 2
    2/1/2017 1
    3/1/2017 6
    4/1/2017 4
    5/1/2017 5
    6/1/2017 8
    7/1/2017 9
    8/1/2017 4
    9/1/2017 5
    10/1/2017 6
    11/1/2017 7
    12/1/2017 <--- this will fill in once the date passes
    1/1/2018 <--- this will fill in once the date passes

    There is a chart which is made up of the range in columns A and B. What I'd like to happen is once a new value comes in, the chart range updates automatically. I think the solution has to do with a formula in the Names Manager which includes offset, count, index but it's too confusing for me to put together or understand. If I can gets this done I will be able to automate many tasks using Windows Task Manager.

    Thank you all for looking and trying to help me with my project.
    Attached Files Attached Files
    Last edited by starbuk; 11-09-2017 at 01:04 PM. Reason: added attachment

  2. #2
    Registered User
    Join Date
    09-18-2012
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    5

    Re: Conditional Chart Range

    I've added an attachment to this post.
    Attached Files Attached Files

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Conditional Chart Range

    Create the following defined names:

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


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



    Insert a chart, choose Select Data Source, and change the following:

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


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



    See attached file for a worked example.
    Attached Files Attached Files
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Registered User
    Join Date
    09-18-2012
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    5

    Re: Conditional Chart Range

    This is so clear and helpful - thank you very very much!

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Conditional Chart Range

    Happy to help, thanks for the feedback.

+ 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. Excel VBA : Chart : How do you determine, programmatically the chart range
    By TMS in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-03-2016, 09:50 AM
  2. Chart with conditional chart data
    By Josiah in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-31-2016, 05:14 PM
  3. Replies: 15
    Last Post: 12-22-2014, 08:03 AM
  4. Replies: 0
    Last Post: 12-10-2014, 11:30 AM
  5. [SOLVED] chart based on dynamic range which resizes as per data in range-formula / vba
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2014, 04:02 PM
  6. [SOLVED] Find maximum value in conditional range (conditional on the name on another column)
    By gjrr4x1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-26-2013, 06:51 AM
  7. Excel 2007 - chart conditional non-contigous range
    By erupter in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-20-2011, 08:37 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