I am attempting to use conditional formatting using an if or statement while also including an and statement. Upon completion of the statement the selected cells aren't shading. I entered the formula in a separate cell to see if I could get it to work and it did. Below is the formula that I entered separately, excel added the asterisk before the "and" portion of the statement. Upon completion of the formula if the two criteria are met a true or a false is properly displayed.
=IF(OR(K5>100000,K5<-100000)*AND(OR(M5>10%,M5<-10%)),"true","false")
Below is the statement as it appears in the "Edit formatting rule" box. I have also entered it with the asterisk before "and" and the formula didn't work:
="if(OR(K5>100000,K5<-100000)and(or(M5>10%,M5<-10%)))
Below are the cells the formula applies to:
=$K$5:$K$175,$M$5:$M$175
The cells do not properly shade if the statement is true.
=IF(OR(K5>100000,K5<-100000)*AND(OR(M5>10%,M5<-10%)),"true","false")
Below is the statement as it appears in the "Edit formatting rule" box. I have also entered it with the asterisk before "and" and the formula didn't work:
="if(OR(K5>100000,K5<-100000)and(or(M5>10%,M5<-10%)))
Below are the cells the formula applies to:
=$K$5:$K$175,$M$5:$M$175
The cells do not properly shade if the statement is true.