+ Reply to Thread
Results 1 to 9 of 9

margin of error: do not change point if within 5% of previous point?

  1. #1
    Registered User
    Join Date
    08-18-2011
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    5

    margin of error: do not change point if within 5% of previous point?

    Hi,

    I'm trying to make a graph where margin of error is taken into account. For example, I have two points on the graph, 99 and 100. Since the difference between 99 and 100 is within +-5% of 99, can I make it so that the graph will show both points as 99?

    Thanks
    Last edited by mattyu; 08-18-2011 at 05:16 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: margin of error: do not change point if within 5% of previous point?

    Graphs in Excel for the most part simply chart data so it is the data setup that needs to be looked at. Can you upload (go Advanced>Manage Attachments) an example or dummy spreadsheet of how your spreadsheet is set up and how you would want it graphed?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    08-18-2011
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: margin of error: do not change point if within 5% of previous point?

    Here's a sample of data from my spreadsheet, I've also graphed it in it's current state. The 2nd and 3rd data points are within 5% of each other, so ideally I'd like for both of them to display as the same point in the graph.

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: margin of error: do not change point if within 5% of previous point?

    Using (B2-B1)/B1 *100 to calculate percent difference, it looks like your 1st and 2nd are within 5% of each other as are your 2nd and 3rd and 3rd and 4th. ?

    Since you are using an X:Y Scatter chart, assuming we did chart 2 and 3 as 1 point, would it be a 2 or a 3? and would 4 then become a 3?

  5. #5
    Registered User
    Join Date
    08-18-2011
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: margin of error: do not change point if within 5% of previous point?

    Quote Originally Posted by ChemistB View Post
    Using (B2-B1)/B1 *100 to calculate percent difference, it looks like your 1st and 2nd are within 5% of each other as are your 2nd and 3rd and 3rd and 4th. ?

    Since you are using an X:Y Scatter chart, assuming we did chart 2 and 3 as 1 point, would it be a 2 or a 3? and would 4 then become a 3?
    Hi,

    Sorry if I was unclear, in this case the graph would be a horizontal line (first 4 values within 5% of each other), with a value of 564798. The 5th point is unchanged

    I've updated the sample with what I want the final product to look like (2nd graph).
    Attached Files Attached Files
    Last edited by mattyu; 08-18-2011 at 04:58 PM.

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

    Re: margin of error: do not change point if within 5% of previous point?

    In C1 =B1

    In C2 and down: =IF(ABS(B2/B1-1) < 5%, C1, B2)

    Plot col C.
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    08-18-2011
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: margin of error: do not change point if within 5% of previous point?

    Quote Originally Posted by shg View Post
    In C1 =B1

    In C2 and down: =IF(ABS(B2/B1-1) < 5%, C1, B2)

    Plot col C.
    For the =IF(ABS(B2/B1-1) < 5%, C1, B2) part, will I have to change the formula for each cell since I'm comparing the current value to the value directly before it?

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

    Re: margin of error: do not change point if within 5% of previous point?

    Formula refrences adjust automatically when copied.

  9. #9
    Registered User
    Join Date
    08-18-2011
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: margin of error: do not change point if within 5% of previous point?

    ah ok, works now, thanks a lot for the help

+ 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