+ Reply to Thread
Results 1 to 4 of 4

Advanced if statement?

  1. #1
    Registered User
    Join Date
    12-07-2006
    Posts
    2

    Advanced if statement?

    I am trying to create a formula which tests two sets of variables and can repeat the process until it finds the sets that meets the requirements. I have it set up as and if statement right now but the nesting limitations will not allow the process to be repeat the number of times necessary. (approximately 1500 iterations)

    =IF(SQRT((B2-'1 ft station data'!B$3)^2+('Existing Field Data'!C2-'1 ft station data'!C$3)^2)-SQRT((B2-'1 ft station data'!B$2)^2+('Existing Field Data'!C2-'1 ft station data'!C$2)^2)=1,'1 ft station data'!E$2,0)

    When the next if statement is inserted into the false response the formula is repeated and '1 ft station data'!B$3 is changed to '1 ft station data'!B$4 and all other variables from from that data sheet are referencing the next lower cell in the same fashion.

    Is there a better way to go about this? Any help would be greatly appreciated. Thanks

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    If it is a function you need to use regularly, designing your own UDF would make it a lot more efficient ...

    HTH
    Carim

  3. #3
    Registered User
    Join Date
    12-07-2006
    Posts
    2
    Yes, it is a function that i would use very frequently if it worked. Do you have any idea where to get started with creating a udf?

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    There are plenty of sites ...

    As an example, Chip's brief explanation
    http://www.cpearson.com/excel/GetInfo.htm

    or

    http://www.vertex42.com/ExcelArticle...functions.html

    HTH
    Carim

+ 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