How To Write Not Equal In Excel . A pair of brackets pointing away from each other, like so: =if (a2=b2, yes, no) this formula will test cells a2 and b2 to see if they're equal. Not Equal to in Excel How to use Not Equal To Operator? (with Examples) from www.wallstreetmojo.com If they are not equal, it will output true, and. =if (a2=b2, yes, no) this formula will test cells a2 and b2 to see if they're equal. Most often, excel comparison operators are used with numbers, date and time values.