+ Reply to Thread
Results 1 to 3 of 3

multiple if functions with array

  1. #1
    Registered User
    Join Date
    08-20-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    multiple if functions with array

    i am having problems with the formula breaking down when i change the wind depth to <=100m and 400m. instead of returning the right value, 0 is returned.

    thanks in advance
    Attached Files Attached Files
    Last edited by Paul; 08-20-2009 at 11:15 PM. Reason: E-mail address removed to protect user from spam overload.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: multiple if functions with array

    The purpose of the formulas is outside my realm of expertese but I can tell you this. This part of the formula
    Please Login or Register  to view this content.
    goes through the array of E20:E28 and returns the respective value in D20:D28 checking each one to see if it's the minimum. IF the formula result equals D20:D28. If it does not equal D20:D28 (and that must be true for values <=100 m wind depth), then it returns FALSE or 0. As you are looking for the minimum, the array returns the 0 value.

    Was that helpful?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    08-20-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: multiple if functions with array

    Thanks ChemistB it was helpfull. Sorry for the formulas being so daunting. I used the evaluate formula tool, turns out that it was a rounding error with excel. For example, at 410m it was looking at 652.999999999999 not 653. I have fixed it with the code in B11 now -

    Please Login or Register  to view this content.

+ 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