
In this formula, we are using the ISBLANK function to check if all 3 cells A1, B1, and C1 are blank, and if they are return a blank value (""). I need help setting up this formula so that when the 3 columns are left blank, the cell with the formula is left blank as well.Īnswer: Using the AND function and the ISBLANK function, you can write your IF statement as follows: =IF(AND(ISBLANK(A1),ISBLANK(B1),ISBLANK(C1)),"",IF(OR(A1>40, B1>40, C1>40), "20", (A1+B1+C1)-20)) The problem is that, when left blank, the total in the formula cell is -20. I have 3 columns that are needed based on the type of sale. If one of my salesman does sale for $40-$49, then his commission is $20 however if his/her sale is less (for example $35) then the commission is that amount minus $20 ($35-$20=$15). I have tried many formulas but just can't get it right, can you help please?Īnswer: You can write an IF statement that uses the AND function and the OR function as follows: =IF(AND(C2>=1,C2=0),C1+A2, IF(AND(ISBLANK(B2)=FALSE,B2>=0),C1-B2, IF(AND(ISBLANK(A2)=TRUE, ISBLANK(B2)=TRUE),C1,""))) Question: I have been looking at your Excel IF, AND and OR sections and found this very helpful, however I cannot find the right way to write a formula to express if C2 is either 1,2,3,4,5,6,7,8,9 and F2 is F and F3 is either D,F,B,L,R,C then give a value of 1 if not then 0. IF the outcome is zero, I would like the BAC (Budget At Completion), currently recorded in another cell (L24), to be repopulated in the current cell as the EAC.Īnswer: You can write an IF statement that uses the OR function and the ISERROR function as follows: =IF(OR(S24=0,ISERROR(M24+((L24-S24)/AA24))),L24,M24+((L24-S24)/AA24)) The initial part of the formula calculates the EAC (Estimate At completion = AC+(BAC-EV)/CPI) however if the current EV (Earned Value) is zero, the EAC will equal zero. Below is my attempt at creating an IF statement that would populate the data however, I was unsuccessful. Question: In Microsoft Excel, I am trying to create an IF statement that will repopulate the data from a particular cell if the data from the formula in the current cell equals 0. Question: In Microsoft Excel, I'm trying to use the IF function to return 25 if cell A1 > 100 and cell B1 100,B1 4 but 9 but = 15, return $75Īnswer: In cell C5, you can write a nested IF statement that uses the AND function as follows: =IF((A1+B1)4,(A1+B1)9,(A1+B1)1,000,000 then A1*.01% but maximum 5000Īnswer: You can write a nested IF statement that uses the MAX function and the MIN function as follows: =IF(A11000000,MIN(5000,A1*0.01%),"")) Otherwise, it will return the value in cell A1. In this example, the formula will return 0 if cell A1 was either less than 150,000 or greater than 250,000. Otherwise, it should return A1.Īnswer: You can use the OR function to perform an OR condition in the IF function as follows: =IF(OR(A1250000),0,A1) Question: In Microsoft Excel, I'd like to use the IF function to create the following logic: This formula would also return "investigate" but this time, it is because the value in cell B3 is greater than 5%. Let's take a look at one more example that involves ranges of percentages.īased on the spreadsheet above, we would have the following formula in cell D2: =IF(OR(B2>=5%,B2=5%,B3<=-5%),"investigate","")

In the examples above, only one of the conditions within the OR function must be TRUE for the condition to be met. This comes in very handy in Excel formulas.īased on the spreadsheet above, you can combine the IF function with the AND function as follows: =IF(AND(A2="Anderson",B2>80), "MVP", "regular") When using the AND function, all conditions within the AND function must be TRUE for the condition to be met.

The IF function can be combined with the AND function to allow you to test for multiple conditions. You can combine the IF function with other logical functions such as AND, OR, etc. Quite often, you will need to specify more complex conditions when writing your formula in Excel.

Result: 12 Combining the IF function with Other Logical Functions
#EXCEL NOT EQUAL TO HOW TO#
Let's explore how to use the IF function as a worksheet function in Microsoft Excel.īased on the Excel spreadsheet above, the following IF examples would return: =IF(B2=20, 12, 0)
