Used within another function to return true if all provided logical expressions are true.
Syntax
AND(logical_expression1, [logical_expression2, ...])
- logical_expression1—Expression that evaluates to either true or false.
- logical_expression2, ... —[optional]Additional expressions that evaluate to true or false.
Sample usage
IF(AND(Status1 = "Complete", Status2 = "Complete", Status3 = "Complete"), "All Tasks Complete", "Tasks Incomplete")
Examples
This example references the following sheet information:
Row # | In Stock? | Units Sold | Order Date | Price Per Unit |
---|---|---|---|---|
Row # 1 | In Stock? true | Units Sold 78 | Order Date 02/12/23 | Price Per Unit $15.00 |
Row # 2 | In Stock? false | Units Sold 42 | Order Date 02/15/23 | Price Per Unit $35.50 |
Row # 3 | In Stock? true | Units Sold 217 | Order Date 02/20/23 | Price Per Unit $200.00 |
Based on the table above, here are some examples of using an AND() function in a sheet:
Formula | Description | Result |
---|---|---|
Formula =IF(AND([Units Sold]3> 50, [In Stock?]3 = 1), "In Stock", "Requires Restock") | Description IF the Units Sold column row 3 is greater than 50 and the In Stock column equals 1 (true), return the value In Stock. If not, return the value Requires Restock. | Result In Stock |
Formula =IF(AND(NOT(ISBLANK([Order Date]1)), [In Stock?]1 = 1), "Ready To Ship", "Out of Stock") | Description IF the Order Date column row 1 is not blank, and the In Stock column row 1 equals 1, return the value Ready To Ship. If not, return the value Out of Stock. | Result Ready To Ship |
Formula =SUMIF([Order Date]:[Order Date], AND(MONTH(@cell) < 4, MONTH(@cell) >= 1), [Price Per Unit]:[Price Per Unit]) | Description Sum the Price per Unit column IF the Order Date column has a Month value less than 4 (April) and a Month value greater than or equal to 1 (January). Rows 1, 2, and 3 apply because their Month is 2 (February). | Result $250.50 |
Still need help?
Use the Formula Handbook template to find more support, resources, view 100+ formulas, a glossary of every function that you can practice working with in real time, and examples of commonly used and advanced formulas.
Find examples of how other Smartsheet customers use this function or ask about your specific use case in the Smartsheet online Community.