Consulting

Results 1 to 5 of 5

Thread: Working with Charts

  1. #1
    VBAX Regular
    Joined
    Jan 2009
    Posts
    89
    Location

    Working with Charts

    I want to allow the user to set the upper and lower limits of the curve to plot.

    In cell "N14" the user would type in the low limit and in cell "N17" the high limit.

    let's say the user wants 80 as the low and 175 as the high

    Once those numbers are entered into the cells the curve will plot all the points with a value that is between 80 and 175.

    The (X) xvalue is in column H and the (Y) value is in column G

    Autofilter does this but the data is also used in other sheet(s) and using the Autofilter effects the other curves. Don't want that.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Store the upper and lower values in cells, a helper column and a formula that tests if the real value is within those limits, something like

    =IF(AND(B2>=E1,B2<=F1),B2,NA())

    and chart the helper column.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Jan 2009
    Posts
    89
    Location
    Thank you, I do appreciate the help.

    So I should get a value of True or False, and from there use the True results to plot the curve?

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    No, you wont get TRUE or FALSE, you will get the original value if in limits, otherwise you will get #N/A, which won't plot.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Regular
    Joined
    Jan 2009
    Posts
    89
    Location
    Thanks, got it working!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •