+ Reply to Thread
Results 1 to 7 of 7

Simple Axis Title Question

  1. #1
    Registered User
    Join Date
    10-05-2012
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    3

    Simple Axis Title Question

    How do I get excel to automatically add the axis titles of my data onto the graph. Right now I manually have to add the axis titles and manually remove the incorrect title that excel puts on. This is extremly fustrating and the time consumed adds up when your doing 20 tables for a report. I tried to make a template but that didn`t solve my problem.
    Last edited by Hockeystar; 10-05-2012 at 12:05 PM. Reason: grammar

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,848

    Re: Simple Axis Title Question

    Welcome to the Forum!

    What is incorrect about the titles used by Excel?

    This kind of things can be done with macros but can you provide more detail? Ideally it would help if you attached a sample workbook showing what kind of results you're looking for.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-05-2012
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Simple Axis Title Question

    Attached is the problem I`m having. This should clarify things.
    Attached Files Attached Files

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Simple Axis Title Question

    Chart to not have automatic assignment of axis titles.

    By default if the chart contains 1 series the chart title is applied using the series name.
    So you could get automatic chart title by changing B1 to "My Sample Graph".

    X and Y axes titles will need to be applied manually.
    Cheers
    Andy
    www.andypope.info

  5. #5
    Registered User
    Join Date
    10-05-2012
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Simple Axis Title Question

    Thanks for replying. It makes no sense why excel won't add title axis automatically. When does someone every create a graph with no axis titles?

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Simple Axis Title Question

    The main reason is where would be a convenient and consistent place to put the axis text in order to excel to automatically detect it.
    You can not use the preceeding row or column as these can be used for multi level category or series names.

    I would say half the charts I encounter have no axis titles.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,848

    Re: Simple Axis Title Question

    Notwithstanding Andy's observations, which I agree with, I think we can solve your specific problem with a macro.

    Rename axes.xlsm

    For each chart, it will prompt you whether you want to change the chart title. (Based on your example there is no automatic way to determine the chart title.) Then it will label the axes according to what you have described.

    This macro assumes that:
    1. All data is formatted in columns
    2. There is one series per chart
    3. The desired x axis title is the series title
    4. The desired y axis title is found in the cell immediately above the first y value cell

    To run the macro push the button. This example shows multiple charts that all use the same data, just as a demo. I have not tested for multiple charts that each have their own data, which is how I assume you need to use it.

+ 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