I am trying to write a formula for Is Vendor to be used when appending the table into the Cost Source Master table. There are two conditions that need to be met:
- The vendor type, as referenced in another table, needs to be "VENDOR".
- The cost pool can be neither "Internal Labor" nor "External Labor".
I've written the formula like this, but it doesn't seem to work right.
=If(Lookup(Third Party Number,Vendor List,Supplier Number,Vendor Type)="VENDOR" AND Cost Pool NOT IN("Internal Labor","External Labor"),"Yes","No")
For entries that return a vendor type of something other than "VENDOR," this formula works, and the result is "No." However, if the vendor type is "VENDOR," and the cost pool is something other than "Internal Labor" or "External Labor," then the result is still "No."
I wonder if my "NOT" in front of "IN()" is the cause. Can I use negation like this within an If() conditional?