ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   if conditions, and statements (https://www.excelbanter.com/excel-discussion-misc-queries/244554-if-conditions-statements.html)

Cinnabonns

if conditions, and statements
 
I am having trouble creating "and conditions" and "if conditions". can anyone
help?

Jacob Skaria

if conditions, and statements
 
In general

'AND() returns true only if all conditions are satisfied
=IF(AND(condition1,condition2,...), TRUE statement, FALSE statement)

'OR() returns true if any one of the condition is met
=IF(OR(condition1,condition2,...), TRUE statement, FALSE statement)

Example of a condition would be say
IF(AND(A1=1,A1<=10),"Cell A1 between 1 and 10","Outside the range 1-10")

If this post helps click Yes
---------------
Jacob Skaria


"Cinnabonns" wrote:

I am having trouble creating "and conditions" and "if conditions". can anyone
help?



All times are GMT +1. The time now is 02:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com