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. Is there a way that I can combine an IF with an AND and OR functions?
    Here are the two that I need help combining:
    IF(AND(A1="fruit",B1="old"),C1*70%,C1*55%)
    IF(AND(A1="veggie",B1="old"),C1*50%,C1*40%)

    • Hello!
      These two formulas cannot be combined into one, since they contradict each other. If A1 = ”fruit”, B1 = ”new”. These values mean FALSE in both formulas. What should the formula return - C1 * 55% or C1 * 40%?

      • That's what I was afraid of... -_-
        Thank you for your help!

  2. Dear Alexander,
    I am sorry for confusing you,
    I have four columns: Gender(there it is written Male and Female), than Score(Percent of score written), Productivity(number written) and empty column named(Good boy student/good girl student)
    The task is to make formula which checks if it is a male of female, than if the score is more than 70% and if the productivity is more than 0.5. If all conditions is met it should write in column "Good boy student/good girl student" that it is a good boy student if it is Male and a good girl student if it is Female.
    Is it also possible that if conditions are not met it would leave blank or write N/A in the cell?
    Best regards

  3. Hello,
    I have three different strings(Gender(Male/Female), Score and Productivity.
    My task is to tel that if it is Male and score is more than 70% and productivity is more than 0.5 it is a good boy student, otherwise it is a good girl student. How to make that if one of conditions are not met it would leave blank or N/A?
    I have tried something like this: If(OR(And(B2="Female", I2>70%, G2>0.5)),"Good girl student", "Good boy student").

    • Hello Dom!
      Specify your conditions. According to you, "if it is Male and score is more than 70% and productivity is more than 0.5 it is a good boy student, otherwise it is a good girl student." What does "otherwise" mean? And if it is Male and score is less than 70 % and productivity is less than 0.5 it is a good girl student? It suits your conditions.

      • I am sorry for confusing you,
        I have four columns: Gender(there it is written Male and Female), than Score(Percent of score written), Productivity(number written) and empty column named(Good boy student/good girl student)
        The task is to make formula which checks if it is a male of female, than if the score is more than 70% and if the productivity is more than 0.5. If all conditions is met it should write in column "Good boy student/good girl student" that it is a good boy student if it is Male and a good girl student if it is Female.

        • Dear Alexander,
          Is it also possible that if conditions are not met it would leave blank or write N/A in the cell?
          Best regards

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

          =IF(AND(B1 > 0.7,C1 > 0.5),IF(A1="Male","Good boy student","Good girl student"),"")

          Hope this is what you need.

          • Thank you very much,
            It works,
            Best regards

  4. =IF(AND(C10="upendra",C11>=70%),"yes",IF(AND(C10=" vivek",C11>=60%),"yes"," no"))

  5. 1st set of data Input data Result data
    1 4 1 4 6 1 9 1
    2 6 3 2 3
    9 9 4 9
    4 6
    I have the data in 3 columns,named as "first set of data". If I enter the secondary data called as "input data" How I can design the formula to get the result data according to mentioned in result data? Any body can help me please.

    • Hello!
      I’m sorry but your task is not entirely clear to me. For me to be able to help you better, please describe your task in more detail. Please specify what you were trying to find, what formula you used and what problem or error occurred. Give an example of the source data and the expected result.
      It’ll help me understand it better and find a solution for you. Thank you.

  6. Hi;
    I need some advise for this situation :
    Any advise how would the formula looks like for multiple conditions
    Conditions:
    IF number<=5,and size <= 10 return "Small"
    IF number<=10,and size <= 10 return "Upsize"
    IF number<=10,and size <= 20 return "Upsize"
    IF number<=15 and size <= 30 return "Large"
    IF number= 30 return "Upsize"
    IF number= 30 return "Upsize"

    • Hello!
      The article above details how to use IF nested functions.
      You can use something like this

      =IF(AND(A1<=5,B1<=10),"Small", IF(AND(A1<=10,B1<=10),"Up", IF(AND(A1<=10,B1<=20),"Up", IF(AND(A1<=15,B1<=30),"large", IF(A1=30,"Up","")))))

  7. Hello Sir,

    I need you help for below situation:

    In column A there are Fruit names, in column B Purchase dates, in column C values are Open or Closed and in Column D Today's date is mentioned. Please help me generate a formula so that it meets below condition:
    If Fruit names are either Apple, Mango or Grapes and if Purchase dates is less than Today's date and in column C value is Open, then result should be 1 else 0.
    Thanks,
    Klywin

    • Hello Klywin!
      If you apply the IF function to many conditions, the formula will be very large and complex. I recommend using this formula:

      =SUM(IF(A1={"Apple","Mango","Gapes"},1,0)) * (--(B1<TODAY()) * (--(C1="Open")))

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

  8. i am unable to merge two formulas
    =IF(F2<=1000,IF(G2=1,2499,IF(F21000,F2<=1800),IF(G2=1,2999,IF(G2=2,1999,"Invalid detail")))
    if i write this formula in one column then it only gives result of first formula condition.

    • Hello!
      I’m sorry but your task is not entirely clear to me. For me to be able to help you better, please describe your task in more detail. Please specify what you were trying to find, what problem or error occurred. The formula you wrote is incorrect. This may be a copy error. Give an example of the source data and the expected result.
      It’ll help me understand it better and find a solution for you. Thank you.

  9. If Column A has 3 same values i.e 1,1,1 and column B has three different values i.e A,B,C and column C also have three different values P,Q,R so column D should display only Values which are available for A in column C i.e P.

    A B C D(Formula)
    1 A P P
    1 B Q P
    1 C R P
    2 A L L
    2 B M L
    2 C N L

    • Hello Sir,

      Need your help to create formula for this.

  10. Dear Alexander
    please help me with this.
    I need a formula that can return the highest value in a group of Data.
    let say
    A1=D-300 B1=1 C1=1
    A2=D-300 B2=1 C2=2
    A3=D-300 B3=2 C3=1
    I need a formula that can take into consideration the value in column A and B (even if column A has the same value and column B has different value) and return the highest value in column C. Such that the result will read
    D-300 FOR 1 = 2
    D-300 FOR 2 = 1

    • I did not quite understand what result you want to get (number, text, or something else). But I think that this formula will be useful.
      To find the value in column A that matches the maximum value in column B, use the formula

      =INDEX(A1:A37,MATCH(MAX(B1:B37),B1:B37,0))

  11. Dear All,
    I require to find three successive cell data A, WO, A in multiple rows in a single page.Then I have to replace any cell data of my choice based on the condition met.
    For eg. the following shows multiple successive cell data present in a sheet.
    P A WO A
    If successive cells are A WO A respectively, then I Have to replace "WO" with "A"

    Please solution

    • Hello!
      If I understand you correctly, some values are written in several cells. You want to change some of them using a formula with the IF function. But an Excel formula can only change the value of the cell in which it is written. In your case, you need to use VBA.

  12. I have product names in multiple columns and marked the customer name and quantity they ordered in rows. Now I want a different sheet with customer name, quantity and name of product customer ordered. is there a formula to bring the name and quantity of the product customer ordered in columns if the quantity is >= to 0.5.
    I have used IF formula and it works for just one column. How do I go about giving multiple commands to have the result as in below in one cell?
    2 Apples, 1 Orange, 5 mangoes

  13. =IF((AND(I13=,I22=0,I29=0,I30=0),"0.00%",SUM(I13:I35)/SUM(K13:K35)))
    is this possible?

  14. I have a multi-layer problem set, if anyone can help.
    This is a data of around 50k Rows. So i have 2 rows. Row A contains item ordered, Row B has timestamps. If i want to calculate the item wise time gaps, how do i go about it? So for example:
    Row A: Row B:
    Dell Laptop 11:23:04
    Mouse 11:39:00
    Snickers 12:45:01
    Dell Laptop 12:49:08
    Dell Laptop 12:51:46
    Mouse 12:45:00

    I need Row C to show time difference between the next sale of Dell Laptop and first sale, time gap between then third sale of Dell Laptop and second sale.Same goes with Mouse, Snickers, etc
    so Row C1 should ideally be (12:49:08-11:23:04) = 01:26:04
    C2 (12:45:00-11:39:00) = 01:06:00
    and so on. The gaps should calculate only time difference of items sold for only those particular items.

    Complicated for me. Would appreciate the help thanks.

    • Hello!
      If in your table the first row is the heading, column A contains the goods, column B contains the time of sale, then in cell C2 write down the formula

      =IF(INDEX($B$1:B1, LARGE(IF($A$1:A1=A2,ROW($A$1:A1),1),1))=0,"", B2-INDEX($B$1:B1,LARGE(IF($A$1:A1=A2,ROW($A$1:A1),1),1)))

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

  15. Hello,
    Sorry.I need a formula to calculate incentive on sale.
    Creiteria - if sale(D3) is less than 1.51L the incentive is 0. if the sale is above 1.51L the incentive is equal to same figure in % (1.51%), if the sale is 1.52L then the incentive is 1.52%, it continues up to 4.99L same percentage (4.99%) and above 5L the incentive is 5% flat.
    Please do the needful.
    Thank you

  16. Hello,
    I need a formula to calculate incentive on sale.
    Creiteria - if sale(D3) is less than 1.51L the incentive is equal to same figure in % (1.51%), if the sale is 1.52L then the incentive is 1.52%, up to 4.99L same percentage (4.99%) and above 5L the incentive is 5% flat.
    Please do the needful.
    Thank you

  17. Hello Alexander,
    You give great hacks. Please guide me in one condition.
    I want to mark special present (CV) to 2000 employee for 1-17 May 2020. However, in the excel sheet there might be already P (Present), or Y (Half Day) status for employee and remaining cells as blank. I want to ensure that i give maximum 14 CV attendance in blank cells. Rest cells with value "P" and "Y" to remain unchanged. Please guide. I have made the below formula:
    =IF(OR(D1="P",D1="Y",D1="R"),D1,"PL")
    However, i am not able to stop formula from giving CV beyond 14 times.
    Please guide.
    Thanks in advance.

    • Hello Ankur!
      I’m sorry but your task is not entirely clear to me.
      For me to be able to help you better, please describe your task in more detail. There is no CV in your formula. Do you want to record CV no more than 14 times in the cells for your employees? Then you need to use the COUNTIF function. Please let me know in more detail what you were trying to find, what formula you used and what problem or error occurred. In that case I will try to help you.

      • My Bad. Let me again explain my question to you:
        I want to mark special present (CV) to 2000 employee for 1-17 May 2020. Out of these 2000 employees many might have worked also and might have got the real attendance. However, in the attendance (excel) sheet there might be cells with P (Present), R (Rest) or Y (Half Day) status for employee and remaining cells as blank (Absent). I want to ensure that i give maximum 14 CV attendance in blank cells (from B1 to R1). Rest cells with value "P", "Y" & "R" to remain unchanged. Please guide. I have made the below formula:
        =IF(OR(D1="P",D1="Y",D1="R"),D1,"CV")
        However, i am not able to stop formula from giving CV beyond 14 times.
        Please guide.

        • For now, when i am using this formula, the result comes as "CV" for all the blank cells till R2 (that is 17th May). SO the condition of stopping CV after 14 days is not fulfilled. I want to ensure that while using this formula, i do not give "CV" attendance more than 14 times.

          Thanks in advance.

          Regards

        • Hello!
          You can use the data validation tool to limit the number of CV values. Select the range B1: R1 and use the formula = COUNTIF ($ B1: $ R1, "CV") <15 to check the data.
          You cannot enter your CV more than 14 times.
          Read more about data validation here.
          If you use the formula to automatically fill in the values, then in cell B1 you can write the formula

          =IF(COUNTIF($A1:A1,"CV") < 15,"CV","")

          Then copy it to the right along the line. Not more than 14 CVs will be recorded.

  18. Hello All,
    I am trying to get these three conditional "follow up status" from the variables "QA=1 means Followed Up and QA=2 means Not Followed Up" and PZ2=Estimated Follow up Date. But I still can not find the right and correct calculation. So may I get any help for the solution?
    =IF(AND(QA=1, PZ2<"5/31/2020"),"Followed up", IF(AND(QA=2, PZ2"6/1/2020"),"Waiting for follow up")))

    • Hello All,
      I am trying to get these three conditional "follow up status" from the variables "QA=1 means Followed Up and QA=2 means Not Followed Up" and PZ2=Estimated Follow up Date. But I still can not find the right and correct calculation. So may I get any help for the solution?
      Please ignore the first one.
      =IF(AND(QA=1, PZ2<"5/31/2020"),"Followed up", IF(AND(QA=2, PZ2"6/1/2020"),"Waiting for follow up")))

      • Hello Dev!
        To check the condition with the date, use the expression PZ2 < DATE (2020,5,31) instead of PZ2 < "5/31/2020"

        In addition, QA cannot be a reference to a cell. Maybe you wanted to write QA1? Or is it a named range?

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

        • Dear Alexander,
          As you suggested I tried adding "DATE" like this but still I couldn't get the right/correct solution. Could you have any next way and right way to solve this one?

          =IF(AND(QA2>0, PZ2<DATE(2020,5,31)),"Followed up", IF(AND(QA2=2, PZ2DATE(2020,6,1)),"Waiting for follow up")))

          Thank you very much!

          • Dear Alexander,
            As you suggested I tried adding "DATE" like this but still I couldn't get the right/correct solution. Could you have any next way and right way to solve this one?

            =IF(AND(QA2>0, PZ2<DATE(2020,5,31)),"Followed up", IF(AND(QA2=2, PZ2DATE(2020,6,1)),"Waiting for follow up")))

          • Dear Dev!
            Your answer is not entirely clear to me. I will try to find a solution, but more information is needed. What is the mistake in your opinion? Give an example of the source data and the expected result. It’ll help me understand it better and find a solution for you.
            I suggest this version of the formula

            =IF(AND(QA2 > 0,PZ2 < DATE(2020,5,31)),"Followed up",IF(AND(QA2=2,PZ2 < DATE(2020,6,1)),"Waiting for follow up","0"))

            Thank you.

            • Dear Alexander,

              Thank you for your quick responses on my issue. I solved my issue with your reference using the function;
              =IF(AND(ISNUMBER(S2)),"Followed up",IF(AND(QA2=2,PZ2<DATEVALUE("5/31/2020")),"Follow up missing","Waiting for follow up"))

              • Dear Alexander,

                This the final I used function. Thank you for good responses.
                =IF(AND(QC3=1), "Followed up", IF(AND(QC3=2,QB3<DATEVALUE("5/31/2020")), "Follow up missing", "Waiting for follow up"))

                Happy!!!

  19. Hello iam looking for a formula for this, if A1=A2,B1=B2,M1=M2 then it is a "True Duplicate" otherwise "NO" the result "True Duplicate" or "NO" is supposed to show up in both rows

    Please help

    • Hello Penny!
      Write this formula in the cells in which you want to see messages

      =IF(AND(A1=A2,B1=B2,M1=M2),"True Duplicate","No")

      I hope my advice will help you solve your task.

  20. Hi Again, the previous formula didn't return the needed updated results. So i wondered if i concatenate the ranking (ei. A,B,C,D) with Conus or Oconus. Then i would just need a formula that calculates the below requirements, can you please help?:
    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

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 :)