+ Reply to Thread
Results 1 to 6 of 6

Updating Secondary X-Axis Labels

  1. #1
    Forum Contributor
    Join Date
    06-21-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    165

    Updating Secondary X-Axis Labels

    Gurus,

    I have a chart that requires the secondary x-axis label to be dynamic. I am fairly new to excel graphs and need some assistance.
    See picture below for the problem.

    2018-08-10_14-04-13.jpg


    I have attached my spreadsheet to help troubleshoot the problem.

    TIA,
    Tim
    Attached Files Attached Files

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

    Re: Updating Secondary X-Axis Labels

    I'm not certain I understand all of your requirements.

    The simple answer to your title question is to format the secondary horizontal axis so that it is a category (text) axis rather than a date axis, then edit the (invisible) secondary dummy series so that it contains only 13 categories (extends from row 34 to row 36). That should give you what you say you want for the secondary axis.
    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
    06-21-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    165

    Re: Updating Secondary X-Axis Labels

    MrShorty,

    Thank you for responding. I have tried what you stated and I guess I am not sure what you mean. If I format the secondary horizontal axis to TEXT then I simply just get the number version of that date. Not quite what I want. Sorry, I hope I am just misunderstanding your solution.

    Tim

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

    Re: Updating Secondary X-Axis Labels

    Did you change the axis type (from date or automatic to text) in the axis options dialog, or did you change the number format of the axis from date to text? It sounds like you changed the number format and not the axis type format.

  5. #5
    Forum Contributor
    Join Date
    06-21-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    165

    Re: Updating Secondary X-Axis Labels

    MrShorty,

    Got it! However, since the number of dates ( which are weeks) is also dynamic, is there a way to set the horizontal (Category) Axis label range so it updates automatically? Will it need to be done via VBA?

    Example.
    Currently this sample project is 12 weeks long (E34:E45). This number may increase or decrease depending on the project. If it increases to 13 weeks. I would need the horizontal (Category) Axis label range to change from E34:E45 to E34:E46.

    Any ideas on how to do that automatically?

    TIA,
    Tim

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

    Re: Updating Secondary X-Axis Labels

    The typical solution is to use "dynamic named ranges" to dynamically define the ranges for that data series. There are many tutorials around the internet -- put something like "dynamic named range Excel" into your favorite internet search engine.

+ 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. Alignment of labels for secondary axis
    By Alexander Willey in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-22-2018, 05:18 AM
  2. Any way to construct secondary axis out of data labels?
    By frankienap in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-25-2013, 02:57 PM
  3. matching labels of secondary with primary axis
    By furor in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 07-08-2011, 08:04 AM
  4. Replies: 2
    Last Post: 05-16-2010, 11:23 PM
  5. attach labels to secondary x-axis values
    By ehamike in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 11-14-2009, 08:01 PM
  6. Chart axis labels not updating properly with VBA
    By d3hartm2 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-05-2009, 12:10 PM
  7. Pivot Graph - Secondary category (x) axis labels
    By maggmich in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-24-2007, 06:15 PM

Tags for this Thread

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