+ Reply to Thread
Results 1 to 6 of 6

Auto x range start value, xy charts

  1. #1

    Auto x range start value, xy charts

    I have several Excel xy charts plotting data that updates
    automatically.

    The x range varies from 0 to 40, 40 to 80, ... up to 560 to 600.

    I want the chart x values to start at the lowest x value in the data,
    but it actually starts at 0 for all values up to 160, then does what I
    want for higher x starting values.

    I have the x axis auto button selected.

    Can anyone tell me how to stop the minimum value defaulting to zero?
    Excel 2003 and Windows XP.


  2. #2
    Andy Pope
    Guest

    Re: Auto x range start value, xy charts

    Hi,

    Have a look at Tushar's Autochart addin.
    http://tushar-mehta.com/excel/softwa...art/index.html

    Cheers
    Andy

    [email protected] wrote:
    > I have several Excel xy charts plotting data that updates
    > automatically.
    >
    > The x range varies from 0 to 40, 40 to 80, ... up to 560 to 600.
    >
    > I want the chart x values to start at the lowest x value in the data,
    > but it actually starts at 0 for all values up to 160, then does what I
    > want for higher x starting values.
    >
    > I have the x axis auto button selected.
    >
    > Can anyone tell me how to stop the minimum value defaulting to zero?
    > Excel 2003 and Windows XP.
    >


    --

    Andy Pope, Microsoft MVP - Excel
    http://www.andypope.info

  3. #3
    Don Guillett
    Guest

    Re: Auto x range start value, xy charts

    see if this idea helps

    Sub setmin()
    x = Application.Min(Range("d1:d12"))
    Sheets("sheet4").ChartObjects("Chart 3"). _
    Chart.Axes(xlValue).MinimumScale = x
    End Sub

    you may want to change x=
    x=formulaarray."=MIN(IF(d1:d12>0,d1:d12))"

    --
    Don Guillett
    SalesAid Software
    [email protected]
    <[email protected]> wrote in message
    news:[email protected]...
    > I have several Excel xy charts plotting data that updates
    > automatically.
    >
    > The x range varies from 0 to 40, 40 to 80, ... up to 560 to 600.
    >
    > I want the chart x values to start at the lowest x value in the data,
    > but it actually starts at 0 for all values up to 160, then does what I
    > want for higher x starting values.
    >
    > I have the x axis auto button selected.
    >
    > Can anyone tell me how to stop the minimum value defaulting to zero?
    > Excel 2003 and Windows XP.
    >




  4. #4
    Don Guillett
    Guest

    Re: Auto x range start value, xy charts

    better
    x=SMALL(d1:d100,COUNTIF(d1:d100,0)+1)

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "Don Guillett" <[email protected]> wrote in message
    news:[email protected]...
    > see if this idea helps
    >
    > Sub setmin()
    > x = Application.Min(Range("d1:d12"))
    > Sheets("sheet4").ChartObjects("Chart 3"). _
    > Chart.Axes(xlValue).MinimumScale = x
    > End Sub
    >
    > you may want to change x=
    > x=formulaarray."=MIN(IF(d1:d12>0,d1:d12))"
    >
    > --
    > Don Guillett
    > SalesAid Software
    > [email protected]
    > <[email protected]> wrote in message
    > news:[email protected]...
    > > I have several Excel xy charts plotting data that updates
    > > automatically.
    > >
    > > The x range varies from 0 to 40, 40 to 80, ... up to 560 to 600.
    > >
    > > I want the chart x values to start at the lowest x value in the data,
    > > but it actually starts at 0 for all values up to 160, then does what I
    > > want for higher x starting values.
    > >
    > > I have the x axis auto button selected.
    > >
    > > Can anyone tell me how to stop the minimum value defaulting to zero?
    > > Excel 2003 and Windows XP.
    > >

    >
    >




  5. #5

    Re: Auto x range start value, xy charts

    Thanks Don & Andy

    Thanks for that, the macro will do what I want.

    A little surprising that this functionality isn't built in though!
    Doug Jenkins


  6. #6
    Don Guillett
    Guest

    Re: Auto x range start value, xy charts

    glad to help

    --
    Don Guillett
    SalesAid Software
    [email protected]
    <[email protected]> wrote in message
    news:[email protected]...
    > Thanks Don & Andy
    >
    > Thanks for that, the macro will do what I want.
    >
    > A little surprising that this functionality isn't built in though!
    > Doug Jenkins
    >




+ 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