+ Reply to Thread
Results 1 to 4 of 4

Copy the following Formulae, 1000 times to the right!

  1. #1
    Forum Contributor stockgoblin42's Avatar
    Join Date
    05-26-2011
    Location
    vancouver, canada
    MS-Off Ver
    Excel 2010
    Posts
    222

    Copy the following Formulae, 1000 times to the right!

    Hi,

    I have a pair of formulae that I'd like to copy 1000 times to the right. Please see workbook. The problem is, the change in them is not the usual. Okay, the first pair of columns (labelled 1,1 in yellow) calculates the x and y value of an intersection point using the slopes and y-intercepts from that row and the row below it. The 2nd pair of columns (labelled 2,2,) calculates the x and y values of an intersection point using the slopes and y-intercepts from that row and the row 2 below. The 3rd, 3 below, the 4th, 4 below. How do I copy this for 1000 pairs of columns to the right? see workbook please


    Thanks for any help
    Attached Files Attached Files
    Last edited by stockgoblin42; 08-11-2012 at 10:55 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Copy the following Formulae, 1000 times to the right!

    Change your formula in I2 to this:

    =(INDEX($B:$B,(COLUMN()-5)/2+ROW()-1)-$B2)/($A2-INDEX($A:$A,(COLUMN()-5)/2+ROW()-1))

    Then when this is copied across (in pair with the adjacent cell) and down it should give you the references that you want.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor stockgoblin42's Avatar
    Join Date
    05-26-2011
    Location
    vancouver, canada
    MS-Off Ver
    Excel 2010
    Posts
    222

    Re: Copy the following Formulae, 1000 times to the right!

    Hey Thanks. That works great.

    I now have all the line intersections for 1000 lines. Now I want to get all the intersection points that match exactly. Unfortunately, the intersection has two values. Is this possible?

  4. #4
    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: Copy the following Formulae, 1000 times to the right!

    You could instead use a formula that calculates the Euclidian distance between pairs of intersections. Then you just need to test for values < some epsilon.
    Entia non sunt multiplicanda sine necessitate

+ 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