+ Reply to Thread
Results 1 to 11 of 11

Measuring length of x-axis in a graph

  1. #1
    Registered User
    Join Date
    08-31-2010
    Location
    Perth,Australia
    MS-Off Ver
    Excel2007
    Posts
    6

    Measuring length of x-axis in a graph

    I'm trying to measure the length of the x-axis of a graph so that I can use it as an input.
    Any ideas?

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Measuring length of x-axis in a graph

    If your data is in A column use: =MAX(A:A)-MIN(A:A)

    Is that it?

  3. #3
    Registered User
    Join Date
    08-31-2010
    Location
    Perth,Australia
    MS-Off Ver
    Excel2007
    Posts
    6

    Re: Measuring length of x-axis in a graph

    No not quite. If I change the size of the graph window the x-axis physically gets longer. I'd like to measure the length (units of measurement) of hte x-axis...

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Measuring length of x-axis in a graph

    Do you mean you want the axis object's Width property, or do you want the range (i.e. the maximum value less the minimum value)?
    Remember what the dormouse said
    Feed your head

  5. #5
    Registered User
    Join Date
    08-31-2010
    Location
    Perth,Australia
    MS-Off Ver
    Excel2007
    Posts
    6

    Thumbs up Re: Measuring length of x-axis in a graph

    After the width property

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Measuring length of x-axis in a graph

    Please don't forget to mark this 'Solved' then.

  7. #7
    Registered User
    Join Date
    08-31-2010
    Location
    Perth,Australia
    MS-Off Ver
    Excel2007
    Posts
    6

    Re: Measuring length of x-axis in a graph

    But how do I assign a macro (assuming this is the way to go about it) to fetch the width of the graph so that I can use it as an input?

  8. #8
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Measuring length of x-axis in a graph

    An input for what?

  9. #9
    Registered User
    Join Date
    08-31-2010
    Location
    Perth,Australia
    MS-Off Ver
    Excel2007
    Posts
    6

    Re: Measuring length of x-axis in a graph

    Input is probably not the best choice in words...
    I would just like to measure and return a numerical value of the length of the x-axis back into a cell so that it can be used.

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

    Re: Measuring length of x-axis in a graph

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  11. #11
    Registered User
    Join Date
    08-31-2010
    Location
    Perth,Australia
    MS-Off Ver
    Excel2007
    Posts
    6

    Re: Measuring length of x-axis in a graph

    Sweet thanks mate I'll give it a go

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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