+ Reply to Thread
Results 1 to 2 of 2

Simple dynamic range for Chart?

  1. #1
    Registered User
    Join Date
    08-02-2011
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    1

    Simple dynamic range for Chart?

    I'm new to trying to do anything other than basic data entry for Excel.

    I have a chart that is pulling values from cells. Based on how many days are in the month I need to dynamically expand the range of cells for the chart data. So, right-clicking the chart and selecting "select data" shows the chart range:

    ='SheetName'!$B$1:$D$500

    Where 500 is obviously the last cell to plot. There is a cell to enter how many days in the month * 24. This gives the total number of cells for the graph (1 per hour). Based off that I know what the last cell in the range is, but I can't figure out how to dynamically modify the chart range.

    Any help would be greatly appreciated!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Simple dynamic range for Chart?

    you can use
    =sheet1!B1:INDEX(sheet1!B:B,31*24) or replace with cell value
    =sheet1!B1:INDEX(sheet1!B:B,a1*24) where a1 is days in month
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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