+ Reply to Thread
Results 1 to 2 of 2

Finding intersection of two column data

Hybrid View

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2003
    Posts
    4

    Finding intersection of two column data

    Hello everyone.

    I have 2 array which they have an intersection.

    X Y1 Y2
    0|||||30.00|||||10
    0.5|||28.64|||||10.5
    1|||||27.00|||||11
    1.5|||25.23|||||11.5
    2|||||23.18|||||12.2
    2.5|||21.14|||||13.1
    3|||||18.95|||||14.1
    3.5|||16.36|||||15.1
    4|||||13.64|||||16.3
    4.5|||10.91|||||17.6
    5|||||8.18|||||19.1
    5.5|||5.45|||||21.3

    See this figure: Untitled-1.jpg

    So I am interesting to the Coordinate of the intersection point. Note that I don't want to use polyline fitting.
    Is there any solution?
    thanks.
    Last edited by SiaS; 12-15-2012 at 02:58 PM.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,373

    Re: Finding intersection of two column data

    Here's how I think I would do it:

    1) The point of intersection is the point where y1=y2 or y1-y2=0. So the first thing I'd do is add a column calculating y1-y2
    2) Since you don't want to use a curve fitting algorithm, the next algorithm I think of is a linear interpolation algorithm. Linear interpolation is a common discussion item here, so you might put that into the site's search engine. In short:
    a) Look up the interval in y1-y2 that contains zero (=MATCH() works well for this)
    b) Return the X values and Y1-Y2 values that bracket this point (INDEX() function works well for this)
    c) Use an appropriate equation (point slope form of a straight line equation or the TREND() function work well) to estimate the X value where Y1-Y2=0
    3) Then you will need to use linear interpolation again to locate Y1 or Y2 at the estimated X value.

+ 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