+ Reply to Thread
Results 1 to 6 of 6

Stop Chart Plotting at 0 when variable is not part of data series

Hybrid View

  1. #1
    Registered User
    Join Date
    02-21-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Stop Chart Plotting at 0 when variable is not part of data series

    Hi,

    I am trying to plot a chart to represent the flight of a ball through the air. I have three sets of data points representing the X (Distance), Y (Direction) & Z (Height) coordinates of the ball as it flies through the air. I am trying to plot two sets of data series namely X against Z (to represent the distance/height) and X against Y (to represent distance/direction). I want the graphing to stop when the ball hits the ground (i.e. when Z = 0). I can do this OK when charting X against Z but do not know how to do it when charting X against Y (when Z is not a variable in the Data Series). Can anyone please offer any help.

    Many Thanks,

    Andy.
    Last edited by andyfive; 02-22-2012 at 02:11 PM.

  2. #2
    Registered User
    Join Date
    02-21-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Stop Chart Plotting at 0 when variable is not part of data series

    Hi,

    Just thought I would post an image to help illustrate my problem :

    Ball Flight Graph.JPG

    I would like the red 'Direction' Line to stop at the same point as when the blue 'Distance' line reaches a height of 0.

    Many Thanks

    Andy.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Stop Chart Plotting at 0 when variable is not part of data series

    This is an Excel forum, so you'll get more efficient assistance if you post workbooks rather than pictures.

    You can change the direction formula to something like

    =if(z<=0, na(), the rest of the formula)
    Last edited by shg; 02-21-2012 at 07:14 PM.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    02-21-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Stop Chart Plotting at 0 when variable is not part of data series

    Hi shg,

    Many Thanks for your reply. Please find attached the spreadsheet I am working on. The Graph data is from columns S, T & U derived from columns D, E & F which are in meters. I think your suggestion will work although this may not produce a 'True' 0 but rather the data point prior to 0. I'll give it a try.

    Cheers

    Andy.
    Attached Files Attached Files

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Stop Chart Plotting at 0 when variable is not part of data series

    In T10 and copy down,

    =IF(U10 >=0, E10 *1.0936133, NA())

  6. #6
    Registered User
    Join Date
    02-21-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Stop Chart Plotting at 0 when variable is not part of data series

    Quote Originally Posted by shg View Post
    In T10 and copy down,

    =IF(U10 >=0, E10 *1.0936133, NA())

    Many Thanks shg. This worked a treat. I'll mark this as solved

    Cheers

    Andy.

+ 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