AND
Description
AND returns True if all arguments are true; AND returns False if at least one argument is false.
Syntax
AND ( logical_list )
Parameter |
Description |
logical_list |
A list of conditions separated by the corresponding list separator. You can include as many as 30 conditions in the list. The list can contain logical values or a reference to a range containing logical values. Text and empty cells are ignored. If there are no logical values in the list, the error #VALUE! is returned. |
Examples
This function returns True because both arguments are true:
AND(1+1=2, 5+5=10)
This function returns False:
AND(TRUE(), FALSE())
Note:
If an Invalid formula syntax warning appears, check whether the comma is set as the list separator in your regional settings on the Windows Control Panel. If a different character is set as the list separator, use this character in the above examples in place of the comma. (Windows XP: Access the Windows Control Panel and select Regional and Language Options. On the Regional Options tab page, click Customize. On the Numbers tab page, check which character is the default list separator on your computer. Use this character in the above examples instead of the comma.
Also, see