Kristin wrote:
I have a formula, =IF(K57900<>"SALES",AND,IF(AJ57900="SIC","Review Plan Type"," "))
I'm trying to flag the data where the Job Function is not equal SALES, and the Bonus type is SIC, with the Text "Review Plan Type". This formula is returning the flag where the Function is equal to Sales, instead of when Function does not equal sales.
Your syntax for "not equal" is correct (<>). It is you syntax for AND that is wrong. Write:
=IF(AND(K57900<>"SALES",AJ57900="SIC"),"Review Plan Type","")
Note: I changed " " (with a space in between) to "" (the null string). It is a good practice. It might make other dependent formulas easier to write.
PS: The posted syntax actually gives me a #NAME error, not "the flag" ("review..."). If that is what you meant, fine. Otherwise, in the future, copy-and-paste from the Formula Bar, especially when you have a syntax question.