+ Reply to Thread
Results 1 to 4 of 4

Dynamic Axis in chart

  1. #1
    Registered User
    Join Date
    03-02-2017
    Location
    Tehran, Iran
    MS-Off Ver
    2013
    Posts
    6

    Dynamic Axis in chart

    Hi, I want a dynamic axis chart in excel that when I input a number, it automatically change the axis (base on my input). I ask these before and someone give this file to me but it have a macros and I want to do it without any macros.
    Is there any solution for this?
    Thanks for your attention and sorry for my bad English.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,809

    Re: Dynamic Axis in chart

    If I understand what the macro is trying to do, it looks like it is trying to simulate a dynamic named range, so my first suggestion is to use a dynamic named range in the chart. http://peltiertech.com/dynamic-charts/
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Contributor
    Join Date
    10-16-2012
    Location
    Brooklyn
    MS-Off Ver
    Excel 2010 PC
    Posts
    137

    Re: Dynamic Axis in chart

    I have a technique for this that doesn't require VBA. Just for clarity, by "dynamic axis based on input" do you mean an axis that changes according to an input cell?

    Create Named Ranges as OFFSET functions. You'll need to create two named ranges, one for your Excavation axis, the other for your "no" axis.

    Press Ctrl+F3 (Opens named range manager)

    Click "New"

    Enter a Name (no/excavation)

    For "Refers to:" enter the below formulas -

    For the "no" Axis: =OFFSET($A$1,1,0,$I$2,1)
    For the "Excavation" Axis: OFFSET($B$1,1,0,$I$2,1)

    Now, assign these functions to your graph.

    Right-click on your graph and choose "Select Data"

    Edit the "Legend Entries" item. For the "Series Values:" section, click on the box that allows you to select an area in the sheet. Then click anywhere in your sheet. Delete the characters until just the sheet reference remains, it will read "='2'!" then press F3. Select the "excavation" name you created above. Click OK.

    Repeat the above step but for the "Horizontal Axis" and select the "no" name created previously. Click OK.

    You will now be able to change the scope of your graph by changing the value of cell("I2").

  4. #4
    Registered User
    Join Date
    03-02-2017
    Location
    Tehran, Iran
    MS-Off Ver
    2013
    Posts
    6

    Re: Dynamic Axis in chart

    thanks somuch. it works Great!!

+ 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] Discontinuous dynamic chart axis
    By markb141 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-29-2015, 12:58 PM
  2. Dynamic Chart VBA Secondary Axis
    By grcaz in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-24-2013, 09:50 AM
  3. [SOLVED] Dynamic x-axis chart
    By NeoFlex in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 04-02-2013, 09:50 AM
  4. Dynamic chart: problem with the x-axis
    By moraei in forum Excel Charting & Pivots
    Replies: 12
    Last Post: 12-07-2012, 12:54 PM
  5. Legend Only Shows Used Axis on Dynamic Chart (X, Y and Y2 axis)
    By TEBrown in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 06-21-2012, 10:15 AM
  6. Dynamic X Axis in line chart
    By craigproudfoot in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 11-02-2009, 12:43 PM
  7. chart with dynamic x axis
    By name in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-04-2006, 10:45 AM

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