Excel TRUE function
The TRUE function is one of the logical functions in Excel, it returns the logical value TRUE. It is as the same as to entering the Boolean value TRUE directly in a formula. It is a compatibility function, always be used with other logical functions such as IF, ERROR, etc.
The syntax for the TRUE function in Excel is:
Return the logical value TRUE.
Example 1: Check if cell value is greater or less than a specific value
For example, I have a list of actual sales table of the products, now, I want to check if the actual sales exceed the target sales or not, see screenshot:
Please apply this formula, and then you will get TRUE if met the condition, if the condition is not met, a FALSE is returned, see screenshot:
Note: You can also enter the value TRUE directly into the formula as this: =IF(B2>300,TRUE).
Example 2: Compare if values in two adjacent cells are equal
To compare two adjacent cells if they are equal or not, the TRUE function can do this operation.
Please use the following formula, and you will get the result as below screenshot shown:
Note: You can also enter the value TRUE directly into the formula as this: =IF(A2=B2,TRUE).