+ Reply to Thread
Results 1 to 6 of 6

Graph Variable Range

  1. #1
    Forum Contributor
    Join Date
    06-03-2020
    Location
    canada
    MS-Off Ver
    2021
    Posts
    117

    Graph Variable Range

    Good evening

    I am looking to automate the data range for the 2 graphs in my file.

    Situation 1

    Graph Recovery must feed from the last filled column at all times. When I go to fill in the "H" column, the graph should adjust automatically

    Situation 2

    Annual trend graph

    How do I define a dynamic range on the columns for the yearly trend graph that will adjust as I enter data in the subsequent columns "H1 and H2", etc.?

    Thanks for your time and help in advance!
    Attached Files Attached Files
    Last edited by duplaly; 11-16-2022 at 03:31 PM.

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,143

    Re: Graph Variable Range

    Create the named-ranges below and use them as the data sources for the charts:

    Chart 1
    AxisLabel1 =OFFSET($A:$A,2,0,COUNTA($A:$A)-2)
    SeriesValues1 =OFFSET($A$3:$A$23,0,COUNTA($1:$1)-1)

    Chart 2
    AxisLabel2 =OFFSET($1:$1,0,1,1,COUNTA($1:$1)-1)
    SeriesValues2 =OFFSET($2:$2,0,1,1,COUNTA($1:$1)-1)
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    06-03-2020
    Location
    canada
    MS-Off Ver
    2021
    Posts
    117

    Re: Graph Variable Range

    Hello Sir
    This is amazing and i really appreciate your help.
    By the same time, could help me to do the same with the chart "Recovery per Site"
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,143

    Re: Graph Variable Range

    Please refer to workbook attached in post#2.

  5. #5
    Forum Contributor
    Join Date
    06-03-2020
    Location
    canada
    MS-Off Ver
    2021
    Posts
    117

    Re: Graph Variable Range

    Hello
    The Workbook in post #2 doesn't contain the new chart I'm asking for help

    Tks

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,143

    Re: Graph Variable Range

    Sorry, I have no idea how to get your third graph to work. Maybe other members can help.

+ 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] Make Graph with VBA from variable range
    By rpinxt in forum Excel Programming / VBA / Macros
    Replies: 37
    Last Post: 01-10-2020, 08:40 AM
  2. One graph three variable?
    By SFFliberte in forum Excel General
    Replies: 16
    Last Post: 01-29-2015, 06:17 PM
  3. Copy variable range from variable workbook to variable range on current workbook
    By Locster79 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-09-2013, 10:37 AM
  4. NEED HELP for having variable in range for inserting graph!!
    By hihihi120 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-01-2012, 03:10 PM
  5. [SOLVED] Copy/Paste Values from Variable Range to Corresponding Variable Range
    By Cpetersoc in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-14-2012, 08:20 AM
  6. [SOLVED] VBA to plot graph wiht variable range of data
    By Kok Yong Lee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-12-2006, 05:00 AM
  7. Replies: 6
    Last Post: 01-25-2006, 02:45 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