Excel IF statement with multiple conditions

The tutorial shows how to create multiple IF statements in Excel with AND as well as OR logic. Also, you will learn how to use IF together with other Excel functions.

In the first part of our Excel IF tutorial, we looked at how to construct a simple IF statement with one condition for text, numbers, dates, blanks and non-blanks. For powerful data analysis, however, you may often need to evaluate multiple conditions at a time. The below formula examples will show you the most effective ways to do this.

How to use IF function with multiple conditions

In essence, there are two types of the IF formula with multiple criteria based on the AND / OR logic. Consequently, in the logical test of your IF formula, you should use one of these functions:

  • AND function - returns TRUE if all the conditions are met; FALSE otherwise.
  • OR function - returns TRUE if any single condition is met; FALSE otherwise.

To better illustrate the point, let's investigate some real-life formulas examples.

Excel IF statement with multiple conditions (AND logic)

The generic formula of Excel IF with two or more conditions is this:

IF(AND(condition1, condition2, …), value_if_true, value_if_false)

Translated into a human language, the formula says: If condition 1 is true AND condition 2 is true, return value_if_true; else return value_if_false.

Suppose you have a table listing the scores of two tests in columns B and C. To pass the final exam, a student must have both scores greater than 50.

For the logical test, you use the following AND statement: AND(B2>50, C2>50)

If both conditions are true, the formula will return "Pass"; if any condition is false - "Fail".

=IF(AND(B2>50, B2>50), "Pass", "Fail")

Easy, isn't it? The screenshot below proves that our Excel IF /AND formula works right: Excel IF statement with multiple AND conditions

In a similar manner, you can use the Excel IF function with multiple text conditions.

For instance, to output "Good" if both B2 and C2 are greater than 50, "Bad" otherwise, the formula is:

=IF(AND(B2="pass", C2="pass"), "Good!", "Bad") Excel IF function with multiple text conditions

Important note! The AND function checks all the conditions, even if the already tested one(s) evaluated to FALSE. Such behavior is a bit unusual since in most of programming languages, subsequent conditions are not tested if any of the previous tests has returned FALSE.

In practice, a seemingly correct IF statement may result in an error because of this specificity. For example, the below formula would return #DIV/0! ("divide by zero" error) if cell A2 is equal to 0:

=IF(AND(A2<>0, (1/A2)>0.5),"Good", "Bad")

The avoid this, you should use a nested IF function:

=IF(A2<>0, IF((1/A2)>0.5, "Good", "Bad"), "Bad")

For more information, please see IF AND formula in Excel.

Excel IF function with multiple conditions (OR logic)

To do one thing if any condition is met, otherwise do something else, use this combination of the IF and OR functions:

IF(OR(condition1, condition2, …), value_if_true, value_if_false)

The difference from the IF / AND formula discussed above is that Excel returns TRUE if any of the specified conditions is true.

So, if in the previous formula, we use OR instead of AND:

=IF(OR(B2>50, B2>50), "Pass", "Fail")

Then anyone who has more than 50 points in either exam will get "Pass" in column D. With such conditions, our students have a better chance to pass the final exam (Yvette being particularly unlucky failing by just 1 point :) Excel IF function with multiple OR conditions

Tip. In case you are creating a multiple IF statement with text and testing a value in one cell with the OR logic (i.e. a cell can be "this" or "that"), then you can build a more compact formula using an array constant.

For example, to mark a sale as "closed" if cell B2 is either "delivered" or "paid", the formula is:

=IF(OR(B2={"delivered", "paid"}), "Closed", "")

More formula examples can be found in Excel IF OR function.

IF with multiple AND & OR statements

If your task requires evaluating several sets of multiple conditions, you will have to utilize both AND & OR functions at a time.

In our sample table, suppose you have the following criteria for checking the exam results:

  • Condition 1: exam1>50 and exam2>50
  • Condition 2: exam1>40 and exam2>60

If either of the conditions is met, the final exam is deemed passed.

At first sight, the formula seems a little tricky, but in fact it is not! You just express each of the above conditions as an AND statement and nest them in the OR function (since it's not necessary to meet both conditions, either will suffice):

OR(AND(B2>50, C2>50), AND(B2>40, C2>60)

Then, use the OR function for the logical test of IF and supply the desired value_if_true and value_if_false values. As the result, you get the following IF formula with multiple AND / OR conditions:

=IF(OR(AND(B2>50, C2>50), AND(B2>40, C2>60), "Pass", "Fail")

The screenshot below indicates that we've done the formula right: IF with multiple AND & OR statements

Naturally, you are not limited to using only two AND/OR functions in your IF formulas. You can use as many of them as your business logic requires, provided that:

  • In Excel 2007 and higher, you have no more than 255 arguments, and the total length of the IF formula does not exceed 8,192 characters.
  • In Excel 2003 and lower, there are no more than 30 arguments, and the total length of your IF formula does not exceed 1,024 characters.

Nested IF statement to check multiple logical tests

If you want to evaluate multiple logical tests within a single formula, then you can nest several functions one into another. Such functions are called nested IF functions. They prove particularly useful when you wish to return different values depending on the logical tests' results.

Here's a typical example: suppose you want to qualify the students' achievements as "Good", "Satisfactory" and "Poor" based on the following scores:

  • Good: 60 or more (>=60)
  • Satisfactory: between 40 and 60 (>40 and <60)
  • Poor: 40 or less (<=40)

Before writing a formula, consider the order of functions you are going to nest. Excel will evaluate the logical tests in the order they appear in the formula. Once a condition evaluates to TRUE, the subsequent conditions are not tested, meaning the formula stops after the first TRUE result.

In our case, the functions are arranged from largest to smallest:

=IF(B2>=60, "Good", IF(B2>40, "Satisfactory", "Poor"))

Naturally, you can nest more functions if needed (up to 64 in modern versions). Nested IF statement in Excel

For more information, please see How to use multiple nested IF statements in Excel.

Excel IF array formula with multiple conditions

Another way to get an Excel IF to test multiple conditions is by using an array formula.

To evaluate conditions with the AND logic, use the asterisk:

IF(condition1) * (condition2) * …, value_if_true, value_if_false)

To test conditions with the OR logic, use the plus sign:

IF(condition1) + (condition2) + …, value_if_true, value_if_false)

To complete an array formula correctly, press the Ctrl + Shift + Enter keys together. In Excel 365 and Excel 2021, this also works as a regular formula due to support for dynamic arrays.

For example, to get "Pass" if both B2 and C2 are greater than 50, the formula is:

=IF((B2>50) * (C2>50), "Pass", "Fail") IF array formula with multiple AND conditions

In my Excel 365, a normal formula works just fine (as you can see in the screenshots above). In Excel 2019 and lower, remember to make it an array formula by using the Ctrl + Shift + Enter shortcut.

To evaluate multiple conditions with the OR logic, the formula is:

=IF((B2>50) + (C2>50), "Pass", "Fail") IF array formula with multiple OR conditions

Using IF together with other functions

This section explains how to use IF in combination with other Excel functions and what benefits this gives to you.

Example 1. If #N/A error in VLOOKUP

When VLOOKUP or other lookup function cannot find something, it returns a #N/A error. To make your tables look nicer, you can return zero, blank, or specific text if #N/A. For this, use this generic formula:

IF(ISNA(VLOOKUP(…)), value_if_na, VLOOKUP(…))

For example:

If #N/A return 0:

If the lookup value in E1 is not found, the formula returns zero.

=IF(ISNA(VLOOKUP(E1, A2:B10, 2,FALSE )), 0, VLOOKUP(E1, A2:B10, 2, FALSE))

If #N/A return blank:

If the lookup value is not found, the formula returns nothing (an empty string).

=IF(ISNA(VLOOKUP(E1, A2:B10, 2,FALSE )), "", VLOOKUP(E1, A2:B10, 2, FALSE))

If #N/A return certain text:

If the lookup value is not found, the formula returns specific text.

=IF(ISNA(VLOOKUP(E1, A2:B10, 2,FALSE )), "Not found", VLOOKUP(E1, A2:B10, 2, FALSE)) If #N/A error in VLOOKUP

For more formula examples, please see VLOOKUP with IF statement in Excel.

Example 2. IF with SUM, AVERAGE, MIN and MAX functions

To sum cell values based on certain criteria, Excel provides the SUMIF and SUMIFS functions.

In some situations, your business logic may require including the SUM function in the logical test of IF. For example, to return different text labels depending on the sum of the values in B2 and C2, the formula is:

=IF(SUM(B2:C2)>130, "Good", IF(SUM(B2:C2)>110, "Satisfactory", "Poor"))

If the sum is greater than 130, the result is "good"; if greater than 110 – "satisfactory', if 110 or lower – "poor". Using the IF function with SUM

In a similar fashion, you can embed the AVERAGE function in the logical test of IF and return different labels based on the average score:

=IF(AVERAGE(B2:C2)>65, "Good", IF(AVERAGE(B2:C2)>55, "Satisfactory", "Poor"))

Assuming the total score is in column D, you can identify the highest and lowest values with the help of the MAX and MIN functions:

=IF(D2=MAX($D$2:$D$10), "Best result", "")

=IF(D2=MAX($D$2:$D$10), "Best result", "")

To have both labels in one column, nest the above functions one into another:

=IF(D2=MAX($D$2:$D$10), "Best result", IF(D2=MIN($D$2:$D$10), "Worst result", "")) Using IF together with the MIN and MAX functions

Likewise, you can use IF together with your custom functions. For example, you can combine it with GetCellColor or GetCellFontColor to return different results based on a cell color.

In addition, Excel provides a number of functions to calculate data based on conditions. For detailed formula examples, please check out the following tutorials:

  • COUNTIF - count cells that meet a condition
  • COUNTIFS - count cells with multiple criteria
  • SUMIF - conditionally sum cells
  • SUMIFS - sum cells with multiple criteria

Example 3. IF with ISNUMBER, ISTEXT and ISBLANK

To identify text, numbers and blank cells, Microsoft Excel provides special functions such as ISTEXT, ISNUMBER and ISBLANK. By placing them in the logical tests of three nested IF statements, you can identify all different data types in one go:

=IF(ISTEXT(A2), "Text", IF(ISNUMBER(A2), "Number", IF(ISBLANK(A2), "Blank", ""))) IF with ISNUMBER, ISTEXT and ISBLANK

Example 4. IF and CONCATENATE

To output the result of IF and some text into one cell, use the CONCATENATE or CONCAT (in Excel 2016 - 365) and IF functions together. For example:

=CONCATENATE("You performed ", IF(B1>100,"fantastic!", IF(B1>50, "well", "poor")))

=CONCAT("You performed ", IF(B1>100,"fantastic!", IF(B1>50, "well", "poor")))

Looking at the screenshot below, you'll hardly need any explanation of what the formula does: Using IF and CONCATENATE

IF ISERROR / ISNA formula in Excel

The modern versions of Excel have special functions to trap errors and replace them with another calculation or predefined value - IFERROR (in Excel 2007 and later) and IFNA (in Excel 2013 and later). In earlier Excel versions, you can use the IF ISERROR and IF ISNA combinations instead.

The difference is that IFERROR and ISERROR handle all possible Excel errors, including #VALUE!, #N/A, #NAME?, #REF!, #NUM!, #DIV/0!, and #NULL!. While IFNA and ISNA specialize solely in #N/A errors.

For example, to replace the "divide by zero" error (#DIV/0!) with your custom text, you can use the following formula:

=IF(ISERROR(A2/B2), "N/A", A2/B2) Using IF together with ISERROR

And that's all I have to say about using the IF function in Excel. I thank you for reading and hope to see you on our blog next week!

Practice workbook for download

Excel IF multiple criteria - examples (.xlsx file)

4538 comments

  1. Hi, I'm beginner. I have a one query as below posted.
    Q- A builders merchant gives 10% discount on certain product lines.
    The discount is only given on products which are on Special Offer, when the Order Value is $1000 or above.
    [use IF and AND functions]

    Product Special Offer Order Value Discount Total
    Product 1 Yes 1,500 150 1,350
    Product 2 No 1,300 130 1,170
    Product 3 Yes 500 - 500
    Product 4 Yes 2,800 280 2,520
    How formulation i should follow for above case.

    • Hello Jay!
      If I understand your task correctly, the following formula should work for you

      =IF(AND(B10="Yes",C10*D10>1000), C10*D10*0.9,C10*D10)

      I hope this will help, otherwise please do not hesitate to contact me anytime.

  2. Hello All,

    I am looking for a formula
    if the value is equal or less that one , the it should be calculated the 50%
    something like - IF(K13<=1(K13+K13*50/100)
    And if the value is greater than 1 but less or equal to 5 , then add 40%

    Need both in a single line

    • Hello!
      The formula below will do the trick for you

      =IF(K13 <= 1,K13*0.5,IF(AND(K13 <= 5,K13 > 1),K13*1.4,K13))

      I hope it’ll be helpful.

  3. I am working on an employee schedule. I have start times that I want to turn into Open, Close on another section of the sheet. I have that working with the =IF(ISNUMBER(SEARCH("8a",B4)),"Open","Close")

    However, I have OFF on some days and I need it to show OFF on the other Section with the Open,Close

    This is the formula I came up with but it gives a Value Error
    =IF(ISNUMBER(SEARCH("8a",B4)),"Open","Close") IF(B4:G13 = "OFF", "OFF", "")

    • Hello David!
      If I got you right, the formula below will help you with your task

      =IF(ISNUMBER(SEARCH("8a",B4)),"Open", IF(B4="OFF","OFF","Close"))

      I hope this will help, otherwise please do not hesitate to contact me anytime.

      • That fixed my formula. Thank you

  4. HI! I'm trying to say if B2=sat or sun AND g2=As Scheduled value should be $5 if not $0 so the conditions to get $5 are it has to be sat or sun AND as scheduled
    so far I've tried
    =IF(ISTEXT(B9),"Sat",IF(ISTEXT(B9),"Sun",IF(ISTEXT(G9),"As Scheduled","$5")))
    =IF(AND(B2="Sun",B2="Sat",G2="As Scheduled"),"$5","$0")
    I'm driving my self mad! Hope you can help! Thanks!

    • Hello Mary!
      If I got you right, the formula below will help you with your task:

      =IF(AND(OR(B2="Sat",B2="Sun"), G2="As Sheduled"),"$5","$0")

      I hope it’ll be helpful.

  5. Hi, I really need some help please.
    I need the end result to be Yes or No.
    For yes, the criteria should be:
    F2 must be greater than 2
    G2 must be False
    S2 must be False
    Q2 must not contain the words Matter Data
    =IF((AND(F2>2,G2="False",S2="False",Q2Matter Data)),"Yes","No")

    • =IF((AND(F2>2,G2="False",S2="False",Q2Matter Data)),"Yes","No")

      ...Sorry, slight typo but still doesn't work :(

    • Hello Ami!
      If I understand your task correctly, the following formula should work for you:

      =IF(AND(F2>2,G2="FALSE",S2="FALSE", NOT(ISNUMBER(FIND("Matter Data",Q2,1)))),"Yes","No")

      Read how to use the IF function with text values here.
      I hope this will help, otherwise please do not hesitate to contact me anytime.

  6. Hi i have question regarding multiple condition:How to get system stock May'20 column by applying function IF.please suggest
    example:
    Customer ; Stock to be consumed; Schedule May'20 ;System stock (May'20)
    B 602 560 42
    C 545 YTR −
    D 1 0 1
    E 27 0 27
    G 120 150 30
    H 36 YTR -
    Thanks in advance

    • Hello!
      You have not specified which system stock you want to receive on May 20 - general or by customer. But in any case, I recommend using the SUMIFS function. Read more in this Excel SUMIFS guide.
      I hope this will help, otherwise please do not hesitate to contact me anytime.

  7. if 1-2 range answer multiplies by 2,500
    3-4 multiplies by 3,000
    5-6 multiplies by 4,500
    what is the formular

    • Hello Bridget!
      If I understand your task correctly, the following formula should work for you:

      =IFERROR(CHOOSE(R1,2500,2500,3000,3000,4500,4500)*Q1,Q1)

      or

      =IF(OR(R1=1,R1=2),Q1*2500,IF(OR(R1=3,R1=4),Q1*3000,IF(OR(R1=5,R1=6),Q1*4500,Q1)))

      Hope this is what you need.

  8. I got help with a formula last month and need to add some additional variables to it. typed at end of my comment is the formula i have so far, but need to also add somewhere into the below "if AJ6 = CONUS AND D6 IS NOT 12, AND I6 IS "D", then return 10 and if I6 is "C", then return 12" everything else below remains the same. I'm not sure if this is even possible.

    =IF(Aj6="Conus",IF(AND(D6=12, SUM(IF(G6={9820580,159384},1,0))=1),17, IF(OR(D6 < 12,AND(D6=12,G6=6620363)),15,"")), IF(AJ6="Oconus",28,""))

    • Hello Jessica!
      Replace the "" symbol in your formula

      =IF(AH1="Conus", IF(AND(D1=12,SUM(IF(G1={9820580,159384},1,0))=1),17, IF(OR(D1 < 12,AND(D1=12,G1=6620363)),15,"")), IF(AH1="Oconus",28,""))

      with these conditions:

      =IF(AND(AJ6="Conus",D6<>12,I6="D"), 10,IF(I6="C",12,""))

      The result is a new formula:

      =IF(AH1="Conus", IF(AND(D1=12,SUM(IF(G1={9820580,159384},1,0))=1),17, IF(OR(D1 < 12,AND(D1=12,G1=6620363)),15,"")), IF(AH1="Oconus",28,IF(AND(AJ6="Conus",D6<>12,I6="D"),10, IF(I6="C",12,""))
      ))

      I hope it’ll be helpful.

      • That didn't work :( "C" and "D" values in column I for CONUS are still returning 15 instead of 12 and 10

        • what if i concatenate the ranking (ei. A,B,C,D) with Conus or Oconus. Then i would just need a formula that says:
          if A1=ACONUS or BCONUS and D1 is anything but 12, return 15
          if A1=CCONUS and D1 is anything but 12, return 12
          if A1=DCONUS and D1 is anything but 12 return 10
          if ACONUS, BCONUS, CCONUS, DCONUS and D1=12, return 17
          if A1= AOCONUS or BOCONUS, return 34
          if A1 = COCONUS or DOCONUS, return 32

  9. Hi,
    I'm having a problem with writing the formula for the following with 3 conditions:
    -if column A says yes , and the value in column B=80 then I need to multiply Value in B by 0.30
    if column A says no , then I need to multiply Value in B by 0.45
    Your help will be much appreciated

    • Hello Aneta,
      Please try the following formula:

      =IF(AND(A1="Yes",B1=80), B1*0.3,IF(A1="No",B1*0.45,B1))

      I hope it’ll be helpful.

      • hi ,
        Thank you, that's amazing it works , I have one last question.
        I need to write the formula for the following but the one I did below it does not work:
        =IFS(AND(G9="yes",F9=80),F9*0.3),IF(G9="no",F9*0.45)

        Here are 3 conditions:
        1.IF G9 says yes and F9=80, theN multiply F9*0.30
        3.if G9 says no, then multiply F9 * 0.45
        Your help would be much appreciated. Thank you Alexander

          • Sorry, I'm not sure what happened there, I have one extra condition to enter
            IF G9 says yes and F9 I greater or equal to 80 , then I need to multiply F9*0.30, if G9 says yes and F9 is lower than 80 then multiply F9* 0.15, if G9 says yes then multiply F9 by 0.45

  10. My goal is to know when to Water my lawn. I am trying to nest and or in an if function.
    So on even days if the week day is Monday, Tuesday Friday or Saturday then I water.
    I got the formula to work but on August first - - it switched to odd days.
    this is the formula I used in the first cell for June 1st =IF(AND(OR(WEEKDAY(A1,1)=2,WEEKDAY(A1,1)=3,WEEKDAY(A1,1)=6,WEEKDAY(A1,1)=7), AND(MOD(A1,2)=0)), "Water", " ") --- Where did I go wrong?
    6/1 Monday
    6/2 Tuesday Water
    6/3 Wednesday
    6/4 Thursday
    6/5 Friday
    6/6 Saturday Water
    6/7 Sunday
    6/8 Monday Water
    6/9 Tuesday
    6/10 Wednesday
    6/11 Thursday
    6/12 Friday Water
    6/13 Saturday
    6/14 Sunday
    6/15 Monday
    6/16 Tuesday Water
    6/17 Wednesday
    6/18 Thursday
    6/19 Friday
    6/20 Saturday Water
    6/21 Sunday
    6/22 Monday Water
    6/23 Tuesday
    6/24 Wednesday
    6/25 Thursday
    6/26 Friday Water
    6/27 Saturday
    6/28 Sunday
    6/29 Monday

  11. how can i make a formula using grading system (5,4,3,2,1) in date submission

    5 for earlier than due date by 2 or more days
    4 for earlier than due date by 1 day
    3 for due date
    2 for later than due date by 1 day
    1 for later than due date by 2 or more days

    • this is my sample formula i made, but seems not to get the grade 2 or somethings wrong i think, pls help

      =IF(H17<=F17-2,"5",IF(H17F17,"2",IF(H17>=F17,"1")))))

      • Hello Melvin!
        If I understand your task correctly, the following formula should work for you:

        =IF((F17-H17) >=2,5,IF((F17-H17) >=1,4,IF(F17=H17,3, IF((F17-H17)>-2,2,1))))

        Hope this is what you need.

  12. in excel formula if a1 is between 1 to 5 then multiple 2.5 and if A1 is between 6 to 9 then multiply from 2

    • Hello Sydney!
      If I understand your task correctly, the following formula should work for you:

      =IF(AND(A1 > 1,A1 < 5),A1*2.5,IF(AND(A1 > 6,A1 < 9),A1*2,A1))

      I hope it’ll be helpful.

      • Dear Alex,
        Thank you so much. It answered my question and its perfectly working.

  13. Hello,
    Looking to use conditional formatting to turn a row Green if the word "TEST" is in any cell in that row twice
    Row should turn RED if the word test is only there once

    Thank You!

  14. I'm so stuck!! I'm as blank as the sky !!

    if A3 has "New" and B3 has "CT" then put value of H3 in Cell? ... But with the drop down I need
    if A3 has "New" and B3 has "SUS" then put value of H4 in Cell?

    This Is probably simple but i'm tired but need it :( Thank guys n Girls :)

    • Hello David!
      If I understand your task correctly, the following formula should work for you:

      =IF(AND(A3="New",B3="CT"),H3, IF(AND(A3="New",B3="SYS"),H4,0))

      I hope this will help, otherwise please do not hesitate to contact me anytime.

      • Hello devid,
        I am trying to calculate a cell is eligible or not .like if a cell contain yes,or date then and then he is eligible otherwise no..how to create formula

  15. Need help with a formula !
    My cell contains the following value (95% Cotton, 5% Elastane)
    I need to set a condition that if my cell has the value "cotton" and the percentage before the string(cotton) is >= 50% it should return true if not it should return false.
    Here are a few samples of how the values could be populated.

    90% Cotton, 8% Polyamide, 2% Elastane
    95% Baumwolle (Bio), 5% Elasthan
    90% Cotton, 8% Polyamide, 2% Elastane

    In whatever scenario if the cell has value with "cotton" in it and the value before the string is >= 50% , it should return true.

    Thank you

    • Hello Mustafa!
      If I understand your task correctly, the following formula should work for you:

      =IF(IFERROR(IFERROR(MID(A10,SEARCH("Cotton",A10,1)-4,2), MID(A10,SEARCH("Cotton",A10,1)-3,1)),0) >= 50,TRUE,FALSE)

      I hope this will help, otherwise please do not hesitate to contact me anytime.

  16. If month is 202005 or 202006, and staus is hiring, then vlookup based on business name else 0
    if(or('Org moves'!CO2=202005,'Org moves'!CO2202006) And('Org moves'!CP2="Hiring"),vlookup(Walk!B7,'Org moves'!AB:CQ,68,0),"0")
    i used this. please help resolving error

    • Hello!
      I could not check your formula on real data. Try this formula

      =IF(AND(OR('Org moves'!CO2=202005,'Org moves'!CO2=202006), ('Org moves'!CP2="Hiring")), VLOOKUP(B7,'Org moves'!AB:CQ,68,0),"0")

      I hope this will help, otherwise please do not hesitate to contact me anytime.

  17. Could you help with this data validation custom formula? This formula works:
    =OR(D10="X", D10="B") but when I add an additional condition, it doesn't work. My new conditions are:
    CONDITION 1: D10="X" OR
    CONDITION 2: D10="B" AND E10="55"
    I have tried several combinations of OR and AND formula including the sample here on the this website but none works for me. I appreciate your help. Thank you very much.

    • Hello Montey!
      If I understand your task correctly, the following formula should work for you:

      =IF(OR(D10="X", AND(D10="B",E10=55) ),TRUE,FALSE)

      I hope this will help, otherwise please do not hesitate to contact me anytime.

      • Hi Alexander,
        It works! I just removed the IF function as my condition needs to be always true to allow data entry in another cell. Thank you very much!

  18. IF(OR(D7="N/A", AND(D7="0", F7="Yes")), "0","1")
    I need the value of this formula to be 0 if, either the value of D7 is N/A or if the value of D7=0 AND F7 is Yes.

    Am I using the correct formula for this condition?

    • Hello Sanjay!
      The formula is spelled correctly. However, if you do not write numbers as text, then you do not need to use quotation marks.

      =IF(OR(D7="N/A", AND(D7=0, F7="Yes")), 0,1)

      • Thanks Alexander Trifuntov.
        It worked. I spent a lot of time on this and finally your suggestion did the trick.
        Appreciate the quick turnaround.

  19. =IF(OR(AND(AA2="Canada",Z2="Vancouver"),K2=1,k2=9),M2*5,M2=M2)
    how do i solve the problem below using the nested OR & AND function
    Increment the backers-count by 5 if:
    The launched_at_month is January OR September
    The city is Vancouver AND the country_trimmed is Canada
    If these conditions are not met, the backers-count stays the same.

    • Hello!
      If I understand your task correctly, the following formula should work for you:

      =IF(AND(AA2="Canada",Z2="Vancouver", OR(K2=1,K2=9)),M2*5,M2)

      I hope it’ll be helpful.

  20. lets says =IF(AND(R4>S4,S4>T4,T4>U4,U4>V4,V4>W4,W4>X4),"UP&DOWN",IF(AND(R4<S4,S4<T4,T4<U4,U4<V4,V4<W4,W4<X4),"PASS","NOT GROWN"))
    up&down cannot be used idk why,the circumstance was r4 to w4 just one of them going down its gonna say up&down
    please help

    • Hello!
      Please describe your problem in more detail. It’ll help me understand it better and find a solution for you. Thank you.

Post a comment



Thank you for your comment!
When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to
your query. We cannot guarantee that we will answer every question, but we'll do our best :)