Results 1 to 1 of 1

Thread: Use OFFSET function to define the x-axis range in a chart

  1. #1
    Junior Member
    Join Date
    Feb 2019
    Posts
    1
    Rep Power
    0

    Use OFFSET function to define the x-axis range in a chart

    I am trying to create a chart using this formula for the X-Axis section of the SERIES formula:
    =OFFSET(INDIRECT("Sheet1!"&ADDRESS(Sheet1!$J$2,3)) ,0,0,Sheet1!$K$2,1)
    [*]Column C on my worksheet contains the week's worth of X-axis points[*]$J$2 contains the row number of the first X-value for this particular chart (it's one of 8 to be drawn from the same data)[*]$K$2 contains the number of rows to include in this particular chart's X-Axis

    If I enter this formula into a cell, it will evaluate to a 1-row array with the correct values.
    If I use this function in a SERIES function, I get an error message that says: "that function is not valid."

    I would really appreciate it if someone could explain why my formula isn't working, and how to correct it.

    I went back to some earlier projects where I'd successfully used an OFFSET function to define the X-Axis. I noticed that none of them used a formula for the first parameter of OFFSET, and none included an INDIRECT function or an ADDRESS function. Could one of these 3 differences explain things?

    Thanks for your help!


    https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA
    Last edited by DocAElstein; 06-11-2023 at 01:17 PM.

Similar Threads

  1. Replies: 2
    Last Post: 05-26-2013, 03:41 PM
  2. Offset based on Values in Column E
    By mrmmickle1 in forum Excel Help
    Replies: 7
    Last Post: 12-04-2012, 10:06 AM
  3. How to make Dynamic range (width) with OFFset function
    By Rajesh Kr Joshi in forum Excel Help
    Replies: 12
    Last Post: 12-01-2012, 11:03 PM
  4. VBA - Secondary axis - CHARTS
    By albi85 in forum Excel Help
    Replies: 1
    Last Post: 04-05-2011, 03:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •