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)

4506 comments

  1. Trying to write a nested if/or statement based on criteria in multiple cells:

    If AB1<4000 AND AC1<-.2 return 'Delete'
    OR
    If X1='New' return 'New'
    OR
    If C1='DB' return 'Discontinued'
    OR
    If C1='DM' return 'Discontinued'
    I none of the above is true then leave blank

    What I've tried so far is not working; I'm at the end of my knowledge...
    =IFs(OR(AB5<4000, AC5<-0.2,"Delete"),X5=New,"New",(C5=DM,"Discontinued",(C5=DB,"Discontinued"," "))))

    Any help appreciated.

  2. Simple question for you guys, I have this formula in a cell but I want the formula to work when I13 is equal to 3 and 5. and change and change (E13-H13 TO H13-E13) When I13 is 1, 2 and 4

    This what I have and works for I13 equal to 3

    =IF(I13="","",(IF(I13=3,(14000*((0.785*(P13^2)-(R13^2)))+((0.785*(R13^2)*(E13-H13))))/(0.7*J13*VLOOKUP(K13,'Stud Data'!$G$13:$J$36,2,FALSE)))))

  3. Hello Svetlana,I'm lee. Nice to meet you. I have some difficulties in applying multiple condition based on one column of data set.

    I had created one formula based on one data set as "condition 1" and it worked.
    "=COUNTIFS(Sheet1!$D3:$D10000,"2012",Sheet1!$O3:$O10000,"No",Sheet1!$AD3:$AD10000,"No",Sheet1!$AY3:$AY10000,"May.2016")"

    However, when i created another different formula base on the same data set as "condition 2", it cannot work.

    =COUNTIFS(Sheet1!$D3:$D10000,"2012",Sheet1!$O3:$O10000,"Yes",Sheet1!$AD3:$AD10000,"No",Sheet1!$AY3:$AY10000,"Nov.2016")

    Can you please help me to solve this situation? I had tried to do it but I can't solve it. Thank a lot.

    • Hi Svetlana. I can send you one sample of that problem. Please help me to solve it. Thank a lot. =D

  4. thanks for this command

    dear all

  5. Hello Svetlana,

    I'm having difficulty with this formula. I have multiple conditions, one of which needs a return value of "" (blank cell).

    Ultimately, I need a return value of C (Community) or H (Hospitalization). But if the cell of which the formula is referencing is empty, I need the value to be a blank or empty cell.

    I have a list of multiple hospitals which would result in "H" value, and list of multiple community locations, which would result in "C" value. Here's my current formula:

    =IF((OR(O117="FREMONT", O117="JOHN MUIR", O117="ST. MARY'S", O117="ST. HELENA", O117="ALTA BATES", O117="HERITAGE OAKS", O117="WILLOW ROCK", O117="VMC", O117="EPS", O117="KAISER", O117="SUTTER", O117="ST. LOUISE", O117="SJRMC")), "H", "C")

    My questions are, 1) is there a way to make this formula simpler? and 2) how would I rewrite this formula to include a result of a blank cell if the cell in reference is empty?

    Thank you for your suggestions.

  6. Thanks Svetlana. You have really helped a great deal.

    Please how can one find two cells with same value side by side at same time in excel.

    For example, say A1=34, B1=39, How can one find same numbers side by side in excel. like F23=34 , G23=39.

    Thanks,
    Jolly.O.A

  7. Hi,

    I have a problem, I need to use if function. say if, A1 has a date. I need to check if the Date is in YYYY-MM-DD format. if it is not then it should show Null.

    I tried both these formulas = if (A1="YYYY-MM-DD", "YYYY-MM-DD", "NULL") and = if(Not(iserror(datevalue(Text(A1, "YYYY-MM-DD"))))A1,"Null")

    But did not get desired results.

    Please help.

  8. Hello,

    I'm trying to write IF,OR,AND statement for conditional formatting. It is based on dates in multiple cells, 12 to be exact. I am only trying to do it based on 2 dates/2 cells right now, but would like it to compare 12 dates. I am highlighting a cell red based on the number of days it is from the date. For example, IF today's date is within 1 AND 30 days of the date in cell B8, OR IF today's date is within 1 AND 30 days of date in cell C8 highlight A7 in red. Here is what I wrote:=IF(OR(AND($B8-TODAY()>=1, $B8-TODAY()=1,$C8-TODAY()<30))). Anyone's help would be much appreciate.

  9. if the income range(One individual cell) is =>15000 to 20000 to 30000 to =15000,CD2*6,IF(CD2>=20000,CD2*8,IF(CD2>=30000,CD2*10,IF(CD2>=50000,CD2*12,IF(CD2>=70000,CD2*15,0)))))

  10. Hi Svetlana,

    I'm looking to populate a cell value with a number based on how many cells have the colour green.

    So:
    A1 B1 C1 D1 (E1- Answer '1' will appear here)
    G NG NG NG (G= Green, NG= Not Green)

    Another example:
    A1 B1 C1 D1 (E1- Answer '2' will appear here)
    G G NG NG (G= Green, NG= Not Green)

    If all cells are not green, then 0 will appear here.

    What I have so far:
    =IF(GetFillColor(A1)=4,"1", IF(GetFillColor(A1:B1)=4,"2"), IF(GetFillColor(A1:C1)=4,"3"), IF(GetFillColor(A1:C1)=4,"4", "0"))

    Any help would be much appreciated, Thanks.

    • Sorry, a slight change. Because a CountIF I don't think will work.

      Answer change: I would like to use percentage instead?

      example 1:
      A1 B1 C1 D1 (E1- Answer '15%' will appear here)
      G NG NG NG (G= Green, NG= Not Green)

      Another example:
      A1 B1 C1 D1 (E1- Answer '30%' will appear here)
      G G NG NG (G= Green, NG= Not Green)

      • Need a formula for the following please;
        If Cell D2 = "QLD" and Cell F2 = "5", then (5*200),
        If Cell D2 = "QLD" and Cell F2 = "6", then (6*200),
        If Cell D2 = "QLD" and Cell F2 = "7", then (7*200) etc.

  11. how can i use if maltipal condition

  12. A B C D I WANT RESULT THIS. WHAT TO DO?
    1 A1 B1 C1 D1 "A1 B1 C1 D1 A2 B2 C2 D2 A3 B3 C3 D3 A4 B4 C4 D4"
    2 A2 B2 C2 D2
    3 A3 B3 C3 D3
    4 A4 B4 C4 D4
    5
    6
    7

  13. Hi i need some help,

    D11>=TODAY()-7 is not working in below formula, i would like to return result, if DateToday >= 7 days

    =IF(AND(A11="TEST",B11="MT",D11>=TODAY()-7,(H11=IF(H11="","","N")),(L11=IF(L11="","","N"))),"ALERT 1.1",IF(AND(A11="TEST1",B11="MT",(H11=IF(H11="","","N")),(L11=IF(L11="","","N"))),"ALERT 1.1","OK"))

    This is the result expected. Anyone can help convert this into above formula?
    =(IF((D11>=TODAY()-7),"Y","N"))

    Thank you so much

    • Please help to add =(IF((D11>=TODAY()-7),"Y","N")) into

      =IF(AND(A11="TEST",B11="MT",

      D11>=TODAY()-7, (THIS ONE!I tried multiple times but not working)

      (H11=IF(H11="","","N")),(L11=IF(L11="","","N"))),"ALERT 1.1",IF(AND(A11="TEST1",B11="MT",(H11=IF(H11="","","N")),(L11=IF(L11="","","N"))),"ALERT 1.1","OK"))

  14. Hi I need some help.

    Ticket sales

    Price = $10 each

    A1 (Title): Sold
    A2 -> 2
    A3 -> 2
    A4 -> 3

    B1 (Title): Group
    B2 -> Adult
    B3 -> Child
    B4 -> Senior

    How to write the formula stating that as long as there are 2 child, 2 adult and 2 senior then add the sum together ? But my sum should be $60 not $70

  15. Hi i need below function

    I need result in C with below condition

    A column=300/200/100 or below 100 and B column 60/40/20 or below 20

    if A1>=300 & B1>=60 then gold
    if A1>=200 & B1>=40 then silver
    if A1>=300 & B1>=60 then Bronze otherwise it should be "Not Applicable"

    • Hi i need below function

      I need result in C with below condition

      A column=300/200/100 or below 100 and B column 60/40/20 or below 20

      if A1>=300 & B1>=60 then gold
      if A1>=200 & B1>=40 then silver
      if A1>=100 & B1>=20 then Bronze otherwise it should be "Not Applicable"

  16. Hi Svetlana,

    =if(D7<5000,d7*50%,2250) & if(5000<d7<10801,d7*45%,2500) & if(10800<d721600,d7*35%,8500)

    This formula returns 4 result at a time. But I need only one return based on these arguments. Please help. Thanks in advance.

    AMIT MOHAJON

  17. A table data fill in a row,sequence be in table same as.

  18. Hi Svetlana,

    Great tutorial. I have a spreadsheet with cells that are differently coloured for different markets. I.e. Green - UK market, Yellow - EMEA market. I just need to do a sum of all those in green (i.e. UK), istead of manually adding the cells, is there are local test i can perform to add it automatically.

    I.e. IF (E1=GREEN,'UK','OTHERREGION') OR

    SUMIF CELLS ARE HIGHLIGHTED GREEN?

    Thanks,
    Andreea

  19. Hi all - First time experience with nested IF formulas. I wrote the formula below and tested it out along the way. There are 16 if statements. When I tested it at 8 and 12 IF statements everything worked fine. It was only when I added the final 4 IF statements that I got an error message stating that I had created too many IF statements. From what I can see you are allowed to hav3 60 statements and yes I have excel 2013. Does anyone have an answer as to why I am limited?

    =IF(A19="44006 EE","$57.90",IF(A19="44006 EC","$283.54",IF(A19="44006 ES","$328.66",IF(A19="44006 EF","$531.78",IF(A19="43950 EE","$76.45",IF(A19="43950 EC","$376.29",IF(A19="43950 ES","$436.25", IF(A19="43950 EF","$706.13",IF(A19="76070 EE","$46.46",IF(A19="76070 EC","$226.38",IF(A19="76070 ES","$262.38",IF(A19="76070 EF","$424.30",IF(A19="76076 EE","$66.28",IF(A19="76076 EC","$325.48",IF(A19="76076 ES","$377.32", IF(A19="76076 EF","$610.60",,IF(A19="77077 EE","$66.28",IF(A19="77077 EC","$325.48",IF(A19="777077 ES","$377.32", IF(A19="77077 EF","$610.60",))))))))))))))))))))

  20. In my excel sheet,
    Customer Id Customer Name Sub Channel Location Area Checkoutcounter Contact person Salesmanname
    What to sum the checkcounter
    If subchannel = Category and location = Place and Area = A1
    sum Checkoutcounter for Salesmanname = Sales

    Could anybody help in providing a simple excel command for this?

  21. Hello.
    Apologies if you have already answered this but i want to return a number result where there is specific text in two cells.
    i.e a1 = Green b1 = Yes
    a2 = Green b2 = No

    How many are green = 1.
    I know that this is probably an nested IF/AND formula but i just can't seem to get it to work.
    Many thanks.

    • Hello Rebecca,

      If my understanding is correct, you want to count how many cells have "green" in column A and "yes" in column B. If so, you can use the COUNTIFS formula like this:

      =COUNTIFS(A1:A10, "green", B1:B10, "yes")

  22. Hi Good Evening,

    Could you please help me to get the excel formula for the Turn Around Time of our suppliers in unloading wastepaper.
    I have a "Start Column (F)", "Finish Column (G)" and "Unloading Time (I)".
    The basic formula would be I = G - F, but we have a break times that we would like to automatically deduct from their Turn Around Time..

    For example:

    If the supplier started to unload at 6:00 AM and finishes on 2:00 PM, we will deduct 30 mins for the 9:00 to 9:30 break and another 45 mins for the lunch break 12:00 PM to 12:45 PM.

    Break Times:
    9:00 AM to 9:30 AM - 30 mins deduction
    12:00 PM to 12:45 PM - 45 mins deduction
    3:00 PM to 3:30 PM - 30 mins deduction
    6:00 PM to 6:45 PM - 45 mins deduction
    10:00 PM to 10:30 PM - 30 mins deduction

    Please help me.

    Looking forward for your kind support & thank you in advance.

    Thanks & Regards
    Rash

  23. I'm trying to set up a spreadsheet that provides a list of attendees based on dates of meetings. I have a drop down list in one cell for dates. When I choose a date, I want the cells below the date to show the list I have on another sheet with the attendees for that date. Can I write a formula for that?

  24. i need (c>=2,D=1200)if(c==1)D=600if(c==0D=0)

  25. I emailed earlier and found a solution:
    '=IF(AND(F3="Y",D3>25,AND(D3<=35)),E3," ")
    Thanks

  26. Hi
    I have one value in a cell, say C3, i want result in C4 testing 3 conditions i.e C3 must be equal to or greater than 4 but less than 8 to get value of 0.5 otherwise result value 1 and if value in C3 is less than 4 than result value should be 0. Please can anyone help!!!

    • Hi!

      Try this formula:
      =IF(AND(C3>=4,C3<=8), 0.5, IF(C3<4,0,1))

  27. formula for roundup if 1050 say 1000 and if 1051 say 1100 as applied formula in matrix table for 7th pay commission

  28. Hai,

    I am doing attendance sheet like m5 =(P/A/L/F) if than i can get (D5=P or E5=A or F5=L or G5=F)

    please help me on this programme

  29. I am trying to write a formula to sum values with removing text and has blanks. I get the expected answer in the fx check, but it does not show up in the answer section on excel. What am I missing?

    =SUM(VALUE(LEFT((IF((A2:A25)="",0,A2:A25)),3)))

    (all rows below Product are blank except where listed)
    Product

    84 (D1)

    24 (D2)

    #VALUE! - (Where expected value of 108 should be)

  30. I was trying to write the formula .. i have 5 columns in excel .. in 6th column i need to get this result.. in 1st column i have tenure and if it exceeds more than 36 and also in out of other four columns if in three columns the values are same for ex : EM in 3 columns out of four .. If both the conditions are true then it should say "YES" or "NO"

  31. Hi, i need a formula for the below conditions :
    IF >0 AND >30 = 10%
    IF >0 AND >21 = 20%
    IF >-10% AND >1 = 30%
    IF >-20% AND >1 = 40%

  32. IF AG3 IS 2 DAYS BEFORE DELIVERY DATE THE RESULT IS "DELIVERY DATE" IF AFTER DELIVERY DATE THE RESULT IS "DONE" WHEN AG3 HAS NO DATE THE RESULT IS "NO SUPPLIER DELIVERY DATE" OTHERWISE "ON GOING

  33. Good afternoon,
    I was trying to write the following function:
    =IF(H4" C4/2, C4/(2^H4))
    The problem is adding the ">" symbol before the number given by C4/2

    Thanks in advance for your time

    • Hi Abed,

      Sorry, I don't quite understand the challenge. Just type it without double quotes:
      =IF(H4>C4/2, C4/(2^H4))

  34. Hi,
    I have two circles with centres (xo,yo) and (x1,y1) respectively. The two circles have radius R1 and R2. The circles are already plotted with help of a series of cumulative small angles (theta) and radius. The two circles intersect at (xi,yi) and (xf,yf) which I have already found as well.

    Now, i want to ignore the intersection portions between the two circles. I have a list of x,y co-ordinates of both the circles. Now, I need excel to ignore the points forming arcs within the intersection.

    All I need is the circumferential co-ordinates, forming kind of a peanut structure.

  35. hello
    how can show multiple fond color depending on different condition

    for example

    Condition 1 false = Read letterfond
    Condition 2 true = Green letterfond
    Condition 3 non of the above= letter black fond

  36. Please a formula that express the following if I put in "C" yes proceed with first formula or in "C" No proceed with second formula.

    Example if I have a balance of 100 and rest 20 I will have a balance of 80, but if I win 10 I supposed to have a balance of 110 (80+20+10) but if I loss the 20 I only have a bal of 80.

    any help on this would be appreciate

  37. hi,

    Please help me for the following condition:-
    IF A1>0 RESULT = PAUL
    IF A2>0 RELSUL = SAM
    IF BOTH A1 AND A2 ARE GREATER THAN 0 RESULT = PAUL/SAM

    PLEASE HELP ME OUT IT'S URGENT!!

  38. Hi, I want to count below 7 "Days" or below 24 "Hrs" or below 60 "Minutes" male, female patients no. The requisite data is under column (C32:C131) for SEX, (D32:D131) for UNIT, (E32:E131) for AGE. Pls. pls advice me.
    I want the data looks like:
    Below 7 days male =
    Below 7 days female =

  39. hi

    I have some values in b5:b14 currency format, the same way C5:c14 date format. I need recently increased amount, which is increased and which date.
    so please suggest which formula I can use for the scenarios.

  40. this formula is good use this one i resolved my problem

    =IF((AND(F5>=40, F6>=20)), "2", "1")

  41. Hi,
    how can we use a formula with unlimited character ?
    I have the problem with 255 limited character

  42. Please help me write a formula that gives this result (if possible).

    if column A = Column C then put the title of column B into column D

    A B C D
    Course Title Course Title

    1001350 Eng 2 H 1001370
    1001380 Eng 3 H 1001350
    1001370 Eng 3 1001380

    I've read the If's, Concatenate, If, and I can't remember the rest and I guess I'm not that smart b/c it seems like it should be simple. Thanks.

  43. Hi have a great day,
    i want the formula the below items with condition as follows

    1.Pass & A Excellent
    2.Pass & B Very good
    3.Pass & C Good
    4.Pass & D Improve
    the above all conditions needs in single formula
    i try to find only one condition =IF(AND(A2="Pass",B2="A"),"Excellent","") but i don't know how to continue the rest of the conditions in the same cell.

    Result Grade Remarks
    Pass A Excellent
    Pass B
    Pass C
    Pass D
    Pass A
    Pass A
    Pass B
    Pass A
    Fail D
    Fail B

    • =IF(AND(A13="Pass",B13="a"),"excellent",IF(AND(A13="pass",B13="b"),"very good",IF(AND(A13="Pass",B13="c"),"good",IF(AND(A13="pass",B13="d"),"improve",""))))

      • Thanks a lot..That was helpful for me too!!

  44. Hi I want to make a formula looking for specific text in one column. Ex. If text in column A contains "more", but not "more details" than display TRUE, if the text doe snot contain "more" than False.

    Thank you in advance!

  45. Hi,
    I am trying to display the count of value "lost" in cells present in column C. Prior to fetching the count, there are two conditions which needs to be validated on the other two columns. Column A should contain the value "Render" and column b should contain the value "Team1". if both those value exist it should display the count of value "lost" in the column c.

    The raw data present in the sheet named "Consolidated_Data" has to be read and the result should be displayed in the "Summary" sheet.

  46. Hi- Love the site - so helpful! having issues with =IF(OR(AND =IF(OR(AND formula - if the exact condition is not meant I need a blank return right now its returning the ECK2 for everything. Column A has several diff Acct#s and Column C has different card Symbols VI, MC, AX DI & EC - I need the EC to be the variable that returns the info in column B with ECK1 for acct 8559 & ECK2 for Acct#3086. Thanks for assistance and I hope this makes sense. (C7="EC",A7=xxx58559),AND(C7="EC",A7=xxxxx943086)),"ECK1","ECK2")

  47. Hi I am trying to set a condition for a taxable item. Column D has my department number. I have 9 departments 3 of which are non-taxable is this the correct formula?
    =IF(D2="1", "NO", IF(D2="2", "yes", IF(D2="3", "yes", IF(D2="4", "yes", IF(D2="5", "yes", IF(D2="6", "no", IF(D2="7", "no", IF(D2="8", "no", IF(D2="9", "no")))))

  48. Can any one let me know the logical formula to create.

    If H1 has got number >=1000, f1 should show as "A", if H1 has got number >=500,<999, f1 should show as "B", if H1 has got number <499, f1 should show as "NA"

  49. Hi, I currently have two formulas that I need to make into one.
    If cell D4 is greater than cell F3 then do this =IF(E4=C4-2;4;IF(E4=C4-1;3;IF(E4=C4;2;IF(E4=C4+1;1;0))))
    But if cell D4 is less than cell F3 then do this =IF(E5=C5-2;5;IF(E5=C5-1;4;IF(E5=C5;3;IF(E5=C5+1;2;IF(E5=C5+2;1;0)))))

    can you possibly show me how to join these into one long formula

    thanks
    Gordon

  50. hi i need help with a formula, if cell 1a is from 0 - 500 * it by .2 if 1a is between 501-1000 then = 100 if 1a over 1001 * it by .15 , also I will need to * the answer by a %

    thanks

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