+ Reply to Thread
Results 1 to 3 of 3

Can I detect the exact point at which a graph crosses a set threshold value?

  1. #1
    Registered User
    Join Date
    01-29-2007
    Posts
    42

    Can I detect the exact point at which a graph crosses a set threshold value?

    Afternoon all, from an oil platform roughly halfway between UK and Norway.

    Just a quick question, that I've been Googling all day and can find no meaningful solution for...

    I have a chart plotting the voltage of a battery while it is being discharged. This is a non-linear graph with no defined function, so my chart could be called a linear interpolation, as opposed to a proper curve. The specification of these batteries dictates they should be above a certain voltage after a certain period on discharge.

    So, my X axis markers are time (minutes) and my Y markers are voltage. And there are two series. One is a straight line, the end of discharge voltage threshold obtained from the battery datasheet, and the other is the plot of the discharge voltage readings, taken at periodic intervals.

    Now, it would be great to have a way to know for sure (as opposed to eyeballing the chart) at what point the plot of the discharge readings crosses the threshold line. That is to say, I'd like the cell to report that the battery has lasted for a duration of ??? minutes before it crossed the threshold.

    I've played with INTERCEPT but it only deals with Y axis crossing and can't be tailored to look at a threshold value, and as my graph can have a rapid rate-of-change, it's best fit line would possibly be inaccurate anyway. It would appear that there's no way to get the chart to report this value, but I have a gut feeling that there's probably a formula that can do it at data range level anyway.

    Anyway, workbook attached for your reference with some test data loaded.

    Thanks very, very much in advance!

    Roy K.
    Attached Files Attached Files

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Can I detect the exact point at which a graph crosses a set threshold value?

    Since Excel charts are not smooth curve but series of connected data points. You can determine data point before and after threshold and calculate slope to determine intercept.

    In your case 2 points before and after are...
    y = 23.00 & 19.37
    x = 165 & 195
    Slope = SLOPE(known_y's, known_x's)
    Therefore slope = -0.12

    So (20-23)/-0.12 = 25
    165+25 = 190

    Threshold intercept at x = 190 min

    Edit: Another method is to find best fit trend line and solve for x.
    Last edited by CK76; 05-01-2017 at 09:10 AM. Reason: See Edit:

  3. #3
    Registered User
    Join Date
    01-29-2007
    Posts
    42

    Re: Can I detect the exact point at which a graph crosses a set threshold value?

    Just had a little bit of fun setting formulae to pick the X and Y axis values from the ranges, but it's all working beautifully now with your solution.

    Thanks very much, you're a superstar!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Threshold values from graph or data
    By mondoyle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-19-2014, 05:17 AM
  2. Change graph color when number when exceeding threshold
    By cercle92 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-11-2014, 05:07 PM
  3. detect number of exact successive cells
    By mmatta in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-31-2012, 08:12 PM
  4. How to detect a specific active power point?
    By darren1979 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2010, 05:48 AM
  5. Using a threshold to detect frequency of oscillations
    By abcd3fg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-14-2008, 01:31 PM
  6. Finding the point at which a series of numbers crosses zero, or not
    By ElTerrible in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-18-2008, 10:15 PM
  7. exact graph date in line graph
    By exactgraphdate in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-22-2008, 09:17 PM
  8. Detect selected chart point
    By Mark in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-30-2005, 08:06 PM

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