+ Reply to Thread
Results 1 to 3 of 3

Calculation Overload

Hybrid View

  1. #1
    Registered User
    Join Date
    06-13-2007
    Posts
    3

    Calculation Overload

    Hi forum,

    I am pretty inexperienced with advanced Excel and would like some guidance on tackling a data/calculation management problem. I have a pretty good knowledge of basic functions and formulas and I have successfully created a spreadsheet to perform my desired calculations for ~200 data points (described later). However, the problem I am encountering is that when I try to increase the number of points to 500, the process grinds to an unbearably slow pace (2-3 minutes to open or save the file).

    Basically what I am trying to do is take an array of points (each with an x and y coordinate) and compare each point to every other point to determine the distance and angle between them and then a number of additional calculations. Furthermore, I need the ability to turn points on and off, and the purpose of the point comparisons is to determine which points to enable. Currently, my design looks like this:

    Point 1 x&y
    -P2 x&y
    -P3 x&y
    -P4 x&y
    ...
    Pn x&y
    Point 2 x&y
    -P1 x&y
    -P3 x&y
    ...and so on

    Thus, for any number of points, I will have n^2 rows and ~20 columns of calculations.

    Currently my desgin compares every point to every other point whether the points are turned on or not. What I'd like to be able to do is compare every point to ever enabled point which would significantly cut down the number of calculations needed.

    Thus, if points 2 and 4 are enabled I would like to do:

    P1 x&y
    -P2 x&y
    -P4 x&y
    P3 x&y
    -P2 x&y
    -P4 x&y
    etc..

    This adjustment would need to be dynamic as the user will be enabling and disabling points all the time.

    Another possibility is that instead of actually adding or subtracting rows of calculations, I was wondering if perhaps there was an IF statement that I could use to tell Excel not to do any calculations on a given row. In other words I'd like to be able to say if this point is turned off, don't do any of the calculations on this row.

    A push in the right direction would be helpful.

    Thanks in advance!
    Andy

  2. #2
    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: Calculation Overload

    You can change calculation from automatic to manual, and calculate only when you wish (Tools > Options > Calculation ...).

    Other than that, there may (or may not) be a way to make the calculations more efficient. There's no way to turn off calculations for just a given row, column, area, ...

    Post a workbook.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-13-2007
    Posts
    3

    Re: Calculation Overload

    I know how to disable calculations, and this was very helpful for designing the file. Problem is, I need calculations on for the actual execution. Turning a new point on takes 10-20 seconds!

    I will post a workbook shortly.

    Thanks,
    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