+ Reply to Thread
Results 1 to 29 of 29

Multilple functions in nested IF

Hybrid View

  1. #1
    Registered User
    Join Date
    11-30-2006
    Posts
    67

    Multilple functions in nested IF

    Hi.

    I have these 4 functions that i want to be able to "run" in a nested IF where the functions are used in this manner:

    =if((funct1 or funct2 or funct3 or funct4);"OK";"")

    funct1: =IF(AND(B7=1;D7=1;E7=1);"OK";"")
    funct2: =IF(AND(B7=0;C7=1;F7=1;A7<10000);"OK";"")
    funct3: =IF(AND(B7=0;C7=1;G7=1;A7<25000);"OK";"")
    funct4: =IF(AND(B7=0;C7=1;H7=1;A7<50000);"OK";"")

    Best regards

    Nicolai
    Last edited by Vestlink; 11-09-2009 at 07:41 AM. Reason: SOLVED

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Multilple functions in nested IF

    Nicolai, regards the F7:H7 - will a 1 always exist in this range (when B7=0 and C7=1) ?

    If so can more than 1 ever exist in the range - ie F7 & H7 = 1 ?

  3. #3
    Registered User
    Join Date
    11-30-2006
    Posts
    67

    Re: Multilple functions in nested IF

    Quote Originally Posted by DO
    Nicolai, regards the F7:H7 - will a 1 always exist in this range (when B7=0 and C7=1) ?
    The answer is yes to this one.

    Quote Originally Posted by DO
    If so can more than 1 ever exist in the range - ie F7 & H7 = 1 ?
    The answer is no to this one. only 1.

    Nicolai
    Last edited by DonkeyOte; 11-09-2009 at 07:11 AM. Reason: added quotes for ease of reference...

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Multilple functions in nested IF

    thanks... couple more I should have asked -- just trying to ascertain the particulars so as to try and keep formula as lean as possible...

    Q1: Can B7 be anything other than 1/0 ?

    Q2: If B7 is 0 can C7 be anything other than 1 ?

  5. #5
    Registered User
    Join Date
    11-30-2006
    Posts
    67

    Re: Multilple functions in nested IF

    q1: no. only 1/0
    q2: only 1.

    Nicolai

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Multilple functions in nested IF

    OK, based on my interpretations then... perhaps

    =REPT("OK";IF(B7=1;AND(D7=1;E7=1);A7<INDEX({10000;25000;50000};MATCH(1;F7:H7;0))))
    (I'm assuming the syntax for the inline array is correct for your client locale - if not you will need to tell me where you're located)
    Last edited by DonkeyOte; 11-09-2009 at 07:27 AM. Reason: typo - 50000 rather than 5000

+ 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