Comments on: Excel IF statement with multiple conditions

For powerful data analysis, you may often need to build an Excel IF statement with multiple conditions or use IF together with other functions. This tutorial will show you the most effective ways to do this. Continue reading

Comments page 41. Total comments: 4557

  1. Hello, i have three equations.
    In sales team monthly target assigned, if salesman achieve less than 60% comm. will b zero, if 60-80% 2.5% comm. & more than 80% 2.5+1.5%(team leader1.5%)
    Please help me !!!!!

    1. Hello!
      I’m sorry but your task is not entirely clear to me. Could you please describe it in more detail?
      What is "2.5% comm"? What does "2.5 + 1.5% (team leader1.5%)" mean?

      1. Lemme explain you again ... we have a sales team with monthly commission assigned, if salesman achieve less than 60% of his target then commission will b zero, if he achieve 61-80% of his target will 2.5% of commission on same, if he achieve more 81% and above will get 2.5% commission & his team leader will get 1.5% commission ...
        hope its clear, pls help urgently

        1. Hello!
          If cell D1 contains the monthly sales target, and cell G1 contains the total sales of the seller, then the commission formula might be:

          =IF(G1/D1<0.6,0,G1*0.0025)

          For the team leader -

          =IF(G1/D1<0.8,0,G1*0.0015)

  2. Hi, Im trying to create a formula using the IF Function with multiple conditions.
    My scenario is that if
    Q1= Yes and Q2, Q3, Q4, Q5 and 6 = Yes or No the outcome = Significant.
    But if Q1 = No and Q2 or Q3 or Q4 = Yes the outcome = High (it doesnt what Q5 and Q6 equal)
    And if Q1, Q2, Q3 or Q4 = No but Q5 or Q6 = Yes then the outcome = medium
    And if all questions = no then outcome = low
    Thank you

    1. Hello!
      I hope you have studied the recommendations in the above tutorial.
      Please try the following formula:

      =IF(AND(Q1="Yes",OR(Q2="Yes",Q2="No"),OR(Q3="Yes",Q3="No"), OR(Q4="Yes",Q4="No"),OR(Q5="Yes",Q5="No"),OR(Q6="Yes",Q6="No")),"Significant", IF(AND(Q1="No",OR(Q2="Yes",Q3="Yes",Q4="Yes")), "High",IF(AND(OR(Q5="Yes",Q6="Yes"), OR(Q1="No",Q2="No",Q3="No",Q4="No")),"Medium", IF(AND(Q5="No",Q6="No",Q1="No",Q2="No",Q3="No",Q4="No"),"Low",))))

  3. Hi! I am trying to create a royalty % using the IF formula with multiple conditions.
    My scenario is that I have 5,000 patients in this 5 year plan. I am trying to come up with a 2 formulas broken out in two Tiers. The first tier or formula is 1,000 patients onboarded in Year 1 receive a 20% royalty. The second tier is royalty percentage for cumulative onboarding or remaining 4,000 patients receive a 3% royalty. BUT if we add new patients in year 3, those patients receive the 20%.

  4. I need specific formula for this problem
    I check attendance 3 times: 1st , 2nd, 3rd
    Now I would like my excel to mark LATE if the student:
    Got the 2nd and 3rd attendance but not the 1st
    and
    Got the 1st and 3rd attendance but not the 2nd
    and
    Got the 1st and 2nd attendance but not the 3rd

    1. Hello!
      I assume that if the attendance is negative, then the cell is empty. You can use the formula

      =IF(SUM(--ISBLANK(A1:A3))=1,"Late","")

      I hope it’ll be helpful.

  5. Hi! I am trying to create an IF formula with multiple conditions.
    My scenario is that I have 5,000 patients in this 5 year plan. The first 1,000 patients onboarded in Year 1 receive a 20% royalty. After that, the remaining 1000 patients onboarded receive only a 3% royalty. BUT if we add new patients in year 3, those patients receive the 20%. Let me know if I explained it correctly.

    1. To add: I am looking for a royalty % using the IF formula with multiple conditions.

      I am trying to come up with a 2 formulas broken out in two Tiers.

      The first tier is a royalty percentage the moment patients get enrolled in the model.
      The second tier is royalty percentage for cumulative onboarding of patients.

      1. Hello!
        Unfortunately, without seeing your data it hard to give you advice.
        For the condition in the IF function, I recommend using the COUNTIFS function. With COUNTIFS, you can count the number of patients in a given time. I recommend examples of using COUNTIFS.

        1. Hi! No problem, would the below data be helpful? Here is a financial model with the following scenario

          Contract value: $30,000,000
          Years: 5 year model
          Number of patients: up to 6,000
          Revenue per patient: 5,000
          Royalty to patients: Right now its fixed at 20% but I would like to base it on patients enrolled
          Gross Margin per patient: $2,062
          COGS: $2,938 (includes a 20% fixed royalty)
          Gross Margin: $12,373,920
          Gross Margin %: 41.2%

          I am struggling with coming up with a COUNTIFS formula for "royalty to patients"

  6. Hi there
    I#m trying several nests in my formula, but something is not working... And I'm not sure what can it be
    =IF( (D52>2); (if(2900>I52>5000); (if(J52="FC");"yes";"no");"no"))

    1. Sorry, this is the one I think should be ok
      =IF( ((D52I52>5000); (if(J52="FC");"yes";"no");"no");”no”)

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

  7. Hi,
    please help me out

    i have so many column from A to N
    i want to add value from A C D F H J L N
    COLUMN B E G I K M CONTAIN DIGIT 1 TO 4
    IF VALVE 1 OR 4 COME THEN IT ADD A AND C OR STOP TO ANOTHER COLUMN
    IF VALUE 3 OR 2 COME THEN ADD A C D AND AGAIN SEARCH VALUE.

    ONLY 1 OR 4 COME MEAN IT WILL STOP ADDING NEXT COLUMN OTHERWISE 2 OR 3 COME MEAN IT ADD ANOTHER COLUMN AND SEARCH FOR NEXT COLUMN.

    1. 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.

      1. a b c d e f g h i j k
        19 3 15 2 11 2 16 1 16 3 15

        i want to add 19+15+11+16 when 2 or 3 come after any number.
        if 1 or 4 come then stop adding another column

        1. Hello!
          Explain the phrase "i want to add 19 + 15 + 11 + 16 when 2 or 3 come after any number." Why are these cells selected? Where do you enter 2 and 3?

  8. Hello, i have three set of data inputted manually. I have another column for the set of data to be copied if i input a character corresponding to that set of data.
    Example:
    A , B , C , D
    1 Q , R , S ,
    2 10, 19 , 7
    3 5 , 11 , 66 ,
    4 1 , 9 , 3 ,
    5 23 , 3 , 8 ,
    i want to type into D1 "1" for all the data under Q (i.e A2:A5) and it will copy that data into column D. If i type in "2" into D1, i want all the data under R to be copied in the column D. And if i type in "3" into D1, it will copy all the data under S into column D.
    Is this possible?
    Thank you in advance

    1. Hello!
      Column D in your case already contains data. Therefore, you can only replace this data with values from other cells using a VBA macro.

      Your phrase "And if i type in“ 3 ”into D1, it will copy all the data under S into column D." looks strange since this data is already written to column D

      1. Thanks for your response.
        D is meant to be a blank column. I think the spacing is making it look like it has data. D1:D5 is all empty. I want to put my formula in E1 so that the data will be copied onto column D.
        A , B , C , D , E
        1 Q , R , S ,
        2 10, 19 , 7
        3 5 , 11 , 66 ,
        4 1 , 9 , 3 ,
        5 23 , 3 , 8 ,
        Hope this is clearer.
        Thank you in advance for your time.

  9. HI,
    Please help me with formula using ifs
    Total marks is = 30
    Time limit to complete the exam is 10 mins , prior to which following deductions will be made :
    If the person completes the exam in 11 mins, 15% marks will deduct
    from the total marks.
    If the person completes the exam in 13 mins, 30% marks will deduct
    from the total marks.
    If the person completes the exam in 15 mins, 50% marks will deduct
    from the total marks.
    If the person exceeds 15mins, the marks will be nil.

    1. Hello!
      I hope you have studied the recommendations in the above tutorial.
      If I understand your task correctly, the following formula should work for you:

      =IFS(B1>15,0,B1>13,C1*0.5,B1>11,C1*0.7,B1>10,C1*0.85,B1<=10,C1)

  10. A+A+A=3.How is possible in MS Excel work sheet

  11. How to distribute numbars according to slabs, and short upto 100 with different rates as well

    1. 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.

  12. Hello,

    Below is column A, B & C and in column D I need is.. if A1 is equal to "UKB" and then if B1 is equal to C1 the field should be blank or it should say "PLS CHECK" and if A is not equal to UKB then Column D field should be blank.

    UKB M07595448 M07595448
    UKB M07595448 M07595448
    UKB M07748431 M07748431
    UKB M07744464 M07744464
    UKB M07744464 M07744464
    UKB M07685293 M07685293
    UKB M07685293 M07685293
    UKB M07685293 M07685293
    UKB M07794223 M07794223
    UKB #N/A M04787723
    UKB #N/A M04395096
    UKB #N/A M04395096
    UKB #N/A M04395096
    UKB #N/A M04395096
    UKB #N/A M02083964
    UKB #N/A M02083964
    UKB #N/A M02083964
    UKB #N/A M01861464
    UKB #N/A M01861464
    UKB #N/A M01861464
    UKB #N/A M01861464
    UKB #N/A M01861464
    UKB #N/A M01861464
    UKB #N/A M04802877
    301219 #N/A M02731841
    301219 #N/A M02731841
    301219 #N/A M02731841
    301219 #N/A M02731841
    290120 #N/A M08189356

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

      =IF(A1="UKB",IF(B1=C1,"PLS CHECK",""),"")

      I hope this will help

      1. Actually, I have multiple conditions. Firstly, if A1 is equal to "UKB" then it should check whether B1 is also equal to C1 and B1 & C1 matches then the D1 field should be blank and if B1 & C1 does not match then it shoudl display as "PLS CHECK" and suppose if A1 is not equal to 'UKB" then the field should be blank.

        1. Hello!
          The formula I sent to you was created based on the description you provided in your first request. Why couldn't all the conditions be described at once? I think that you yourself can add all the conditions that you have to my formula.

          1. I tried but not able to get it. Pls help me.

  13. If a1 contain 60 and I input any value in a2 which cannot be divided by A1 as a whole number (eg. 120/60=3) as correct and (140/60=2.33 or 30/60=0.5) as wrong. How can I check for these and then advise person entering the a2 data that his value does not fall into the allowable multiples of 60 lots

    1. Hello!
      You can use this formula for Data Validation or to check a condition

      =IF(MOD(A1,60)=0,TRUE,FALSE)

      I hope it’ll be helpful.

  14. I have a spreadsheet with 10 years and am trying to blend in raises over that time to figure an amount we can afford each year. Current Wage versus what they should be at (new wage). So, if current wage is 10 and new wage is 15, he is 50% behind. I have 100 employees and have 4 tiers to try to catch them up depending on how far behind whereby those that are further behind will get a bigger pay increase. My problem is they need to be more than tier 1 behind but less than tier 2 and, if the percentage increase brings them over the new wage, they should only get up to that new wage. G3 is the current rate and N3 is the new rate. O3 is the percentage behind they are. Q1,R1,S1,T1 are where I'm figuring the percentage behind is what will give them the % raise (which is Q2, R2, S2, T2). Help please?

    G=IF(OR(G3>N3,G3),IF(OR(O3=$Q$1,O3=$R$1,O3=$S$1),(G3*$S$2)+G3,IF(OR(O3>=$T$1),(G3*$T$2)+G3,G3))))))

    1. Hello!
      I’m sorry but your task is not entirely clear to me. Could you please describe it in more detail? What do you want to calculate with this formula? What result do you want to get? Give an example of the source data and the expected result.
      Thank you!

  15. hi
    I want to set a criteria when met by three scenarios e.g. if extraction % is greater than 80%,waste % is greater than 60% and status is ready, Give me Sample the Area.

    1. Hello!
      I’m sorry but your task is not entirely clear to me. Could you please describe it in more detail? What result do you want to get? Thank you!

  16. Never mind this one

  17. Hello! I have another problem with my formula again, because my boss wants to add some details:

    Column A have either "Oranges" or "Appleas", Column B have either "Fresh", "Moderate", or "Mature", I'll input a number on C, and result on D

    If A1 is "Oranges"
    (a) If B1 is "Fresh",
    (1) If C1 is greater than or equal to 50, C1 should multiply to 3
    (2) If C1 is less than 50, C1 should be subtracted by 10
    (b) If B1 is "Moderate", the value of C1 is the same as result in D1
    (c) If B1 is "Mature", the value of C1 should multiply to 3
    If A1 is "Apples", it should multiply B1 to 5, regardless of B1 and C1's values
    If A1 is empty, C1 and D1 should be empty too

    I tried to modify the old formula, but it's confusing! Please help me!
    Thank You and God Bless!

    1. Hello!
      I recommend that you study the recommendations on how to use the AND function in the conditions of the IF function, which are given above in this article.

  18. Is it possible to do a formula like this. If the value of cell F65 is "Negligible" and the value of cell G65 is "Insgnificant" then cell F66 will be "Low". I have multiple conditions I would need to add to this formula along with what I provided above. For example if F65 is "Very Low" and G65 is "Minor" then F66 will be "Low" also if F65 is "Negligible" and G65 is "Minor" then F66 is "Low" could we add all of this to one formula and add more conditions if needed later on?

  19. Thank you for your page, it really helped me in some of the formulas I was looking for.
    I thank you for all your future assistance in advance and I will be keep in contact and.

  20. Is it possible to use an IF statement to sum columns? That is, if any cell in E3:E17 = Y, sum the values in their respective C3:C17 cells

  21. HI, I was just wondering if you could help me.
    What excel formula should I use to carry out this task:
    If B1 is in A:A then C1 to be 'True'

    Thank you so much

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

      =IF(COUNTIF(A:A,B1),TRUE,"")

      I hope this will help

  22. Hi,
    If i have 3 values of same number i.e A1=1,B1=1,C1=1, i need a result as "ok". Appreciate the help

    1. Hello!
      I hope you have studied the recommendations in the above tutorial.
      Please try the following formula:

      =IF(AND(A1=1,B1=1,C1=1),"OK","")

  23. Hi,
    I am working on a commission sheet and would like to put a formula so that the user does not have to manually put the commission %. I have four ranges and 0 to 20 % discounts.
    So the criteria is:
    1) amount is less than equal to 50,000, disc is 0%, 4% commission,
    2) amount is greater than 50,000 and less than equal to 250,000, disc is 0%, 3% commission,
    3) amount is greater than 250,000 and less than equal to 500,000, disc is 0%, 2% commission,
    4) amount is greater than 500,000 1% commission.
    IF function works fine till I have 1 and 2, but once I add 3 It gives FALSE value, cant figure out the issue can anyone help.
    =IF(A550000,IF(A5250000,IF(A5<=50000,IF(B5,"0"%,2%))))))
    Thank U

  24. Hi,
    I am working on a commission sheet and would like to put a formula so that the user does not have to manually put the commission %. I have four ranges and 0 to 20 % discounts.
    So the criteria is:
    1) amount is 50,000 and 250,000 and 500,000 1% commission.
    IF function works fine till I have 1 and 2, but once I add 3 It gives FALSE value, cant figure out the issue can anyone help.
    =IF(A550000,IF(A5250000,IF(A5<=50000,IF(B5,"0"%,2%))))))
    Thank U

    1. Hello!
      If I understood your problem correctly you can use something like this formula

      =IF(A5<50000,0,IF(A5<250000,1,IF(A5<=500000,2,"")))

      Replace 0,1,2 with what you need

  25. Hello,
    I have the following situation:
    Column A - unique patient ID
    Column B - Diagnostics Service
    Column C - Therapy Service
    Patient IDs can repeat in Column A if they have received multiple services (Diagnostics and Therapy)
    I am trying to create formula:
    If patient ID has diagnostics AND therapy, then display 1
    If patient ID only has one service (either one), then display 0
    Thank you

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

      =IF(COUNTIFS($A$2:$A$5,A2,$B$2:$B$5,"Diagnostics") + COUNTIFS($A$2:$A$5,A2,$C$2:$C$5,"Therapy")=2,1,"")

      I hope this will help

  26. Hi Need help on an a if formula.
    Two partners (A&B) invest in a project; A puts in £80000 and B £Nil. At end of the project if there is a loss, A & B get NIL back. If its is a profit then;
    (i) Profits are split 50:50 till both A & B have £80000 profit allocated; and
    (ii) Once profits have been allocated as in (i), then all other profits get split between A and B as 40:60.
    I need to be able to show on excel so that I can change the profit figure to show various scenarios (e.g. if profit was £20000, £100000, £400000, etc)
    Thanks
    Sanjay

  27. Muchos Gracias! :)

  28. I am trying to right a formula that will do the following:
    If Cell B13 is 1 or 2 then (B13*1.1)
    If Cell B13 is 3 4 or 5 then (B13*1.05)
    If Cell B13 is 6,7,8 or 9 then (B13*1)
    If Cell B13 is 10,11,12,13,14 or 15 then (B15*.09)
    I've spent hours trying to figure this out any help would be appreciated, Thanks

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

      =IF(OR(B13=1,B13=2),B13*1.1,IF(OR(B13=3,B13=4,B13=5),B13*1.05,IF(B13<10,B13*1,IF(B13<16,B13*0.9, ) ) ) )

      You can change this formula and use the OR function in all conditions.

  29. I am a salesman trying to take when I have reached a certain number in sales that I reach a new bonus level. So say I sell between 14 to 16 cars then I get a bonus of $2500. How could I use an IF function and use a range for 14-16. Right now I have to do individual numbers like IF(C17=14,2500) then IF(C17=14.5,2500) and so on.

    1. Hello!
      Your condition for the sale of 14 to 16 cars can be written as a formula

      =IF(AND(C17<=16,C17>=14),2500,0)

      I hope it’ll be helpful.

      1. Thank you so much! It worked! I was doing something close but it wouldn’t calculate

  30. I have this problem:
    Column A have either "Apples" or "Oranges", I'll input a number on B, and result on C
    If A1 is "Apples", it should multiply B1 to 5, regardless of B1's value
    If A1 is "Oranges" --- If B1 is greater than or equal to 50, B1 should multiply to 3
    If B1 is less than 50, B1 should be subtracted by 10
    If A1 is empty, C should be empty too

    I did a lot of thinking, but can't get it right. Please help me!
    Thank You and God Bless!

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

      =IF(A1="Apples",B1*5, IF(A1="Oranges", IF(B1>=50,B1*3,B1-10), "") )

      1. Thank You Very Much for the answer! :)

    2. Never mind this duplicate

  31. I have 3 cells that have yes or no drop down boxes. How can I write a formula for a 4th cell that gives a different specific number value if all are yes, all are no, one is yes and two are no, two are yes and one is no, and all other possible combinations?

    1. Hello!
      To count the number of "Yes" in cells, you can use the formula

      =SUM(--(A1:D1="Yes"))

      I cannot give more detailed recommendations, since the description of your problem is very short.

      1. I think this is what he wants Alex (hopefully lol):
        Col A Col B Col C Col D
        Row 1 Answer 1 Answer 2 Answer 3 Count
        Row 2 Yes Yes Yes 3
        In Cell D2 Type this in: =COUNTIFS(A2:C2, "Yes")
        and as Long as your Yes is exactly the same as the yes in the formula you should be fine

  32. Hello, This has all been really helpful and i've solved an awful lot of issues with it. Unfortunately I have one I cant solve.
    I'm trying to reduce a list of items that have qtys in the next column. The list may be 20 rows long but only 10 have qtys. I would like the new list to ignore blank rows and only pull through the 10 items into a new list.
    Column A Column B
    Books 5
    Films
    CDs 56
    Tapes 4
    Videos

    The new list should read
    Books
    CDs
    Tapes

    Without blank rows between them, I've been playing with nested IF & VLOOKUP but cant get the blanks lines removed.I've started with a simple IF formula below
    =IF(B1="","",A1)
    I feel like the 'If True' part needs to have something that tells it to look for the next non blank cell.

    1. Hello Alan!
      Select the range of cells in which you want to get the result. Then, in the formula bar, enter your array formula.

      =IFERROR(INDEX(A1:A10, SMALL(IF(ISNUMBER(B1:B10), ROW(A1:A10)-0), ROW(INDIRECT("1:"&ROWS(A1:A10))))),"")

      This is an array formula and it needs to be entered via Ctrl + Shift + Enter.
      I hope my advice will help you solve your task.

      1. Well, it appears to be doing mostly what I'm looking for but has pulled the wrong items through. Does it matter if the number in question is 0.7, instead of a whole number?

        I can't see how it has pulled the items through given the selection I have gone with as it would skip them as they are blank. So unsure where I may have selected the wrong details.

        1. Hello!
          The formula I sent to you was created based on the description you provided in your first request. The formula works with any numbers. But if your number is written as text, then it won't work. You haven't written what exactly doesn't work. But I recommend checking your data. You haven't written what doesn't work. And I will not guess.

  33. I am trying to have one cell reference another, but if blank have it reference a different cell with getting a FALSE response.
    I have been using
    =IF(L4="",D4)

    and this works as long as L4 remains blank, but the goal is if I put something in L4 then THAT is what goes into my desired formula cell, not "FALSE."

    1. Hello Tracy!
      If I got you right, the formula below will help you with your task:

      =IF(L4="",D4,L4)

      I hope my advice will help you solve your task.

    2. Sorry, *without getting a "FALSE" response.

  34. How to i make a list of words in a drop down box in excel equal a number 1 or 0 when selected.

    1. 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. 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.

  35. Please help in vote results to ascertain Candidate(s) who only WON, TIED in top results in cell G2:G106 "Who Won" in polling stations B2:B106 in colum B2 for
    Two or more candidates results example Abraham Colum C2=40, Bryan Colum D2=70, Charles Colum E2=102 Denis Colum F2=102

    1. 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 do you want to write in columns B and G? Give an example of the expected result.
      It’ll help me understand it better and find a solution for you. Thank you.

  36. Hello! I need help with an IF formula:

    If column A is CAD, return value from column F
    If column A is USD, return value from column F & G with a space between the two values. Column F will always be text and G will be numbers.

    Thanks!

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

      =IF(A1="CAD",F1,IF(A1="USD",F1&" "&G1,""))

      or

      =IF(A1="CAD",F1,IF(A1="USD",CONCATENATE(F1," ",G1),""))

      or

      =IFERROR(IFS(A1="CAD",F1,A1="USD",CONCATENATE(F1," ",G1)),"") (Office2019, Office365)

      I hope it’ll be helpful.

      1. Thank you sooo much this worked perfectly!!

  37. Hi, I am new to excel formulas. Can you help me with this
    if a date listed in a column of another page equals the same date of the current page, then a specific column/row total from the other page equals total on current page designated column/row.
    thanks

    1. hmm, guess I don't even get a reply...? thanks

      1. Hello!
        Your description of the problem is not very clear. However, a formula like this may be suitable for you.

        =IF(A1=Sheet1!A1,SUM(Sheet1!B:B),0)

        If this is not what you wanted, please describe your problem in more detail.

  38. I have days in one column line 1, 2, 5, 6, 1, 2, 6 5,3,2,0,4,6,7,4,1,3,2
    I need the result like if the days are between 1 to 3, then the next column should update as 1 to 3 Days.

    1 next to that cell should show 1 to 3 Days
    2 next to that cell should show 1 to 3 Days
    3 next to that cell should show 1 to 3 Days
    4 next to that cell should show 4 to 6 Days

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

      =IF(A1<4,"1 to 3 Days",IF(A1<6,"4 to 6 Days","7 Days" ))

      I hope this will help

    2. Hi,
      had to try. I have a suggestion for this. It is not pretty, someone for sure will find more elegant solution, but it should work.

      For me in this forum the larger than and smaller than symbols doesn't seem to show at all so I'll use capital L for larger than symbol and capital S for smaller than symbol. Let's assume that the list of days is located to A-column and it starts from line 2. I wrote this formula on cell B2.

      =If(A2L6, "error, too high date", IF(A2L=, "4 to 6 Days", IF(A2=0, "error too low", IF(A2S=3, "1 to 3 Days", "unknown error")

      Hopefully this helps :)
      Antti

  39. Hi,
    I think this answer should be exctremely easy, but I just cant find the correct answer.

    I have column with differend numbers (1-18 representing differend areas and I have named the column "Area") and I like to use the Area column to let my formula count all the data from that spesific line. Formula looks something like this:

    =AVERAGEIFS(E3:E1500, E3:E1500,"0", Area, 1)
    (there might be errors in my typing, because Finnish version has a bit differend style to write the formula).

    I would just like to be able to choose with the same time with the same formula multiple area numbers. Like:
    =AVERAGEIFS(E3:E1500, E3:E1500,"0", Area, 1 or 3 or 8)

    Thank you for your help.

    1. I don't know why it removed my typing for with the 0. The formula checking that the counted number is differend than 0 (with Finnish Excel it is " 0")

      1. Ok, larger than and smaller than wont show up :)

  40. Hello - I need some help with IF/AND functions or maybe it is another formula entirely. I have two columns of data with numbers separating subsets. I am trying to assign the number value to each subset. So there could be 10 data points in one subset, and 20 in another but I want the same identifier for all of the datasets in that subset. This formula simply found that what I'm looking for is a number, but how do I return the value of that number? =IF(ISTEXT(B4),"Text",IF(ISNUMBER(B4),"Number",IF(ISBLANK(B1),"Blank",""))) Thank you!

  41. hey everyone, need help with a formula with a different outcome for 4 different Conditions;
    IF A1=R output should be 25
    IF A1=RR output should be 37.5
    IF A1=G output Should be 50
    IF A1=GG output Should be 93
    please anyone???

    1. Hi,
      Try this.
      =IF(A1="R", 25, IF(A1="RR", 37.5, IF(A1="G, 50, IF(A1="GG", 93, "Wrong input"))))
      Sincerely,
      Antti

  42. Hi!
    I need to highlight 20 columns, if 3 of the columns have yes then its good if not I need it flagged. How can I accomplish this?

  43. Hi, I have a pretty complex (for me) formula that i want to write.
    If a<b, then a*c
    If d e, AND if f="x", then a*g; BUT if f="y", then a*h; BUT if f="z", then a*i
    If j k, AND if f="x", then a*l; BUT if f="y", then a*m; BUT if f="z", then a*n
    If o p, AND if f="x", then a*q; BUT if f="y", then a*r; BUT if f="z", then a*s
    If a>p, AND if f="x", then a*t; BUT if f="y", then a*u; BUT if f="z", then a*v
    Can anyone please suggest a way how I can do this.

  44. Hi, I am using the IF with AND & OR functions. Within that though, I have a cell with a flavour name, which I want to assign a number. How do I do that, please?

    1. Basically, I want to say "(C3)banana + (D3)1.0 = (E3)$40" or "(C3)banana + (D3)2.0 = (E3)$75"
      C3 being the flavour and D3 being the weight, while E3 has the function which gives the price for the stated flavour and weight.

  45. I am trying to work an amortization schedule that will be calculated base on Purchase date-Sale Date-Floor plan-Non Floor Plan Date and availability date.
    Column G Column H Column K Column M
    Date of Purchase Date of Sale Floor plan due date Loan End date
    Jun-17 Jun-20 Dec-19 Jul-20
    Jun-17 Available None May-22
    Jun-17 June-20 None May-22
    This is what i have so far and it is working great.
    =IFS($K$99=$H$99,0,P1>$M$99,0,P1=$K$99,$O$99,P1$H99,0,P1>$K$99,O100-P32,$K$99=$H$99,0,TRUE,0)
    But as soon as my Floor Plan end date has None, the formula doesn't work any more. I need to add a this condition to my formula IF(AND(AND(Month=G1,K1="None",h1="available",Loan amount,0)
    Any suggestions?

  46. Hello.
    I have a spreadsheet that is giving me an issue.
    This what I have and its returning the correct response except for 128:Up with 132: Down
    and it returns "FALSE" if AV5 is blank.
    =IF(AW$5>0,IF(AW132="Down",IF(AW128="Down","Yes",IF(AW128="Up",IF(AW132="Up","Yes","No"))),"Yes"))

    What I want it to do in cell AV134:
    If AV5 is blank then I want AV134 to also be blank.
    IF AV132 AV128 AV134
    Down Down Yes
    Down Up No
    Up Down No
    Up Up Yes
    Thank you for any clarification that you are able to provide.

  47. I need to write formula where if column A equals multiple value (e.g. 1, 2, 5 & 6) and column B is more than 7, then "Y" if not "N".
    I wrote the formula as "IF(AND(OR(A=1, A=2, A=5, A=6), (B>7), "Y", "N")
    i think it's wrong since there's no "Y" value at all.
    Thanks!

  48. D S.I 0-35 36-45 46-60 70+
    300000 300000 1778 2576 3651 6642
    300000 500000 2446 3451 4646 8283
    500000 500000 1523 1936 2480 4127
    500000 700000 1790 2240 2888 5167
    600000 600000 1398 1707 2310 4127
    600000 800000 1650 1993 2643 5006
    800000 800000 1387 1570 2230 4641
    800000 1000000 1655 1859 2576 5397
    1000000 1000000 1409 1560 2089 4641
    1000000 1500000 2052 2272 2982 6073
    1500000 1000000 1325 1449 1955 3471
    1500000 1500000 1968 2160 2848 4641
    1800000 1000000 1306 1437 1967 3029
    1800000 1200000 1563 1722 2325 3471
    2000000 1000000 1294 1432 1979 2795
    2000000 2000000 2506 2785 3682 4899
    2000000 3000000 3652 4076 5310 6936

    how to use if formula when i enter age, deductible and sum insured and automatically premium generated

  49. What kind of formula I need to obtain expiration date on courses that have different length of expiration i.e some expire in 7 days, some in 14 and others in 21 days. I only have their start date.

  50. Hello everyone,
    I hope you are well.
    I have a question, if somebody can help me out, I am struggling long time already.

    i have numbers from 0 to 360°. When i enter any numbers from 0 to 360, it should gave me the final answer as per below table. I did a formula that works but only for few numbers not all (=IF(AND(0H10), "0.5", "0")), so if am choosing numbers from 0 to 44, i have the answer 0.5 and more than 45 is answer 0,
    but now i came to a problem how to insert multiple IF and AND in one long formula. I tried but always something wrong.
    I would like to have in the empty cell with formula that is choosing automatically from the main table as per the insert number from 0 to 360°.

    N 000 0.5
    015 0.5
    030 0.5
    NE 045 0
    060 0
    075 0
    E 090 -1
    105 -1
    120 -1
    SE 135 -1.5
    150 -1.5
    165 -1.5
    S 180 0
    195 0
    210 0
    SW 225 -0.5
    240 -0.5
    255 -0.5
    W 270 0.5
    285 0.5
    300 0.5
    NW 315 0
    330 0
    345 0

    Thank you very much guys, much much appreciated. Have a great day all !!

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