Results 1 to 7 of 7

Thread: Dynamic Chart Query

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Posts
    19
    Rep Power
    0

    Dynamic Chart Query

    Dear Sirs,

    I was trying to make dynamic chart in my level.... But it was not working....

    The real issues which I am facing is,
    1. There is many pages in the workbook, and i have to select the data from that particular sheet.

    I used the below formula to find the relevant data with reference to a cell. I gave the freedom to select the sheet name from the reference cell.
    the formula is,
    =OFFSET(INDIRECT("'"&$B15&"'!$A5:$A600"),0,0,COUNT A(INDIRECT("'"&$B15&"'!$A5:$A600")))
    The reference cell is B15.

    I entered this formula to Name Manager (Ctrl+F3) with a Name.
    In graph, I tried to enter the formula in axis value wtih the Name (which is provided in the name), excel shows, " That function is not Valid ".
    After clicking OK to proceed, excel is showing that the range is already selected.

    Please help...
    Where is the error occured???

    Thanks for the support

  2. #2
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Hi Leo,

    I think INDIRECT doesn't work with dynamic name ranges.

    Not sure about this, but you could try this method.
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  3. #3
    Junior Member
    Join Date
    Jul 2011
    Posts
    19
    Rep Power
    0
    Thank you for the reply..
    I tried to do the method you mentioned.. But it is not worked with 2007..

    Thanks again for the support....

  4. #4
    Junior Member SDruley's Avatar
    Join Date
    Nov 2012
    Posts
    23
    Rep Power
    0
    leopaulc,

    I believe the practical solution here is to create range names of the data subsets that are strategic to your business, then auto create charts using a drop down list of these same range names. The vba code would be fairly simple. So you would select 3rdQ11Profits on the drop down list and the macros would be tied to the dropdown and instantly create the chart, say, to the right of the drop-down. Then select 1stQInv12 and the old chart disappears and the new one is constructed showing the inventory levels. Once you moved the chart from its position it would be immune to deletion and you could build a sheet of charts important for a particular meeting.
    The non vba solution is very cerebral and involves creating a specialized set of range names.

  5. #5
    Senior Member
    Join Date
    Apr 2011
    Posts
    190
    Rep Power
    14
    If you are interested -- I will write an example in VBA --- But post a xl2007 sheet with a series of data you want to chart --- also specify the chart type you want to use. The code will just be an example --- so you will need to take the time to understand the code and fit it to your needs. I make SPC charts --- so essentially making a skeleton (with my limits, scales, hearders and so on) --- then add the actual data serires later --- this allow me to update my chart every 6 seconds without having tp recreate the chart ---- I simply update the data in the plotarea.
    xl2007 - Windows 7
    xl hates the 255 number

  6. #6
    Junior Member SDruley's Avatar
    Join Date
    Nov 2012
    Posts
    23
    Rep Power
    0
    Rasm,

    The fact that your are creating charts to measure your degree of process stability is noteworthy. Apparently, you don't need any help from me, so let's just say that I am learning from you. Good work.

    Steve

  7. #7
    Senior Member
    Join Date
    Apr 2011
    Posts
    190
    Rep Power
    14
    Steve
    I need all the help I can get -- just trying to share - thats all
    Rasm
    xl2007 - Windows 7
    xl hates the 255 number

Similar Threads

  1. Excel Dynamic Waterfall Chart
    By Excel Fox in forum Excel and VBA Tips and Tricks
    Replies: 2
    Last Post: 10-08-2015, 05:33 PM
  2. Syntax Error In SQL Update Query Statement
    By ashu1990 in forum Access Help
    Replies: 3
    Last Post: 06-11-2013, 11:48 AM
  3. Access Query Help
    By Vipergs8v10 in forum Access Help
    Replies: 2
    Last Post: 05-08-2013, 06:32 PM
  4. Dynamic Worksheet Generator Sheet Copy
    By mfaisalrazzak in forum Excel Help
    Replies: 2
    Last Post: 03-01-2013, 05:38 PM
  5. 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

Posting Permissions

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