In Operator

Determines whether the value of an expression is equal to any of several values in a specified list.


expr [Not] In(value1, value2, . . .)


The In operator syntax has these parts:




Expression identifying the field that contains the data you want to evaluate.

value1, value2

Expression or list of expressions against which you want to evaluate expr.

If expr is found in the list of values, the In operator returns True; otherwise, it returns False. You can include the Not logical operator to evaluate the opposite condition (that is, whether expr is not in the list of values).

For example, you can use In to determine which orders are shipped to a set of specified regions:

FROM Orders
WHERE ShipRegion In (‘Avon’,’Glos’,’Som’);

Stay a step ahead with Microsoft 365

Need more help?

Expand your Office skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.