+ Reply to Thread
Results 1 to 6 of 6

Fixed size dynamic range for chart

  1. #1
    Registered User
    Join Date
    04-21-2015
    Location
    Serbia
    MS-Off Ver
    Office 365 64-bit
    Posts
    10

    Fixed size dynamic range for chart

    Hello all. I am trying to create data range used in chart that needs to be of fixed size but moving as we add rows to table.

    So in the picture I have range of 3 rows

    Range1.JPG

    And as I add new data it should move down but remain height of 3 rows

    Range2.JPG

    I've been trying with OFFSET and COUNTA but getting error when using COUNTA as row reference in OFFSET command (I hope I am clear on this)

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,609

    Re: Fixed size dynamic range for chart

    Why not just make your table into a proper Excel table?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-21-2015
    Location
    Serbia
    MS-Off Ver
    Office 365 64-bit
    Posts
    10

    Re: Fixed size dynamic range for chart

    This is just exercise example although Spreadsheet I've received at work is also not formatted as table but we can convert it of course if it would help.
    Haven't used Excel in probably 10 years, just started with some courses so apologies if I miss something obvious in my posts

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,609

    Re: Fixed size dynamic range for chart

    OK - attach a sample workbook.

    Are you saying that you always wish to reference the last three months?

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

    Re: Fixed size dynamic range for chart

    Set up 4 named ranges

    LABELS =OFFSET(Sheet1!$A$2,COUNTA(Sheet1!$A:$A)-3,0,3,1)
    DATASET1 =OFFSET(LABELS,0,1)
    DATASET2 =OFFSET(LABELS,0,2)
    DATASET3 =OFFSET(LABELS,0,3)

    Update chart series formula to use named ranges.


    Example attached
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  6. #6
    Registered User
    Join Date
    04-21-2015
    Location
    Serbia
    MS-Off Ver
    Office 365 64-bit
    Posts
    10

    Re: Fixed size dynamic range for chart

    Thank you both for extremelly quick replies.

    [at] Andy
    Many thanks, this is what I was trying to achieve

+ 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. Pie Chart with Fixed Area (size, volume?) based on Linked Cell
    By UHD in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-17-2017, 01:53 PM
  2. Dynamic Chart with series data rolling and fixed x axis
    By AlanC in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-27-2015, 06:07 PM
  3. Dynamic Pie Chart With Fixed Colors
    By The831st in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-05-2014, 08:10 AM
  4. Fixed size for some range of cells
    By tanvi_kalra in forum Excel General
    Replies: 6
    Last Post: 02-14-2014, 08:41 AM
  5. Average excluding zeros over a variable range of fixed size
    By tface in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 02-09-2013, 08:23 AM
  6. [SOLVED] How to add a fixed point to a dynamic chart
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-11-2005, 09:20 AM
  7. Need macro to insert chart w/ FIXED size & location
    By Matt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2005, 06:05 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