AND Function

Used within another function to return true if all provided logical expressions are true.
Sample Usage
IF(AND(Status1 = "Complete", Status2 = "Complete", Status3 = "Complete"), "All Tasks Complete", "Tasks Incomplete")
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.
Examples

This example references the following sheet information:

Row #In Stock?Units SoldOrder DatePrice Per Unit
1true7802/12/23$15.00
2false4202/15/23$35.50
3true21702/20/23$200.00


Based on the table above, here are some examples of using an AND() function in a sheet:

FormulaDescriptionResult
=IF(AND([Units Sold]3> 50, [In Stock?]3 = 1), "In Stock", "Requires Restock")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 RestockIn Stock
=IF(AND(NOT(ISBLANK([Order Date]1)), [In Stock?]1 = 1), "Ready To Ship", "Out of Stock")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.Ready To Ship
=SUMIF([Order Date]:[Order Date], AND(MONTH(@cell) < 4, MONTH(@cell) >= 1), [Price Per Unit]:[Price Per Unit])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). $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.

Ask the Community