TRUE Function

The TRUE function returns the boolean value TRUE. Learn how to use TRUE in formulas, logical tests, and conditional calculations.

ExcelExcel
Google SheetsGoogle Sheets
logical
beginner
Syntax Preview
ExcelExcelGoogle SheetsGoogle Sheets
=TRUE()
What is the TRUE Function?

Practical Examples

Basic TRUE Function Usage

Demonstrating the simplest use of TRUE in a cell

Result: TRUE

TRUE in IF Statement Condition

Using TRUE as a condition that always evaluates to true

Result: Always shows this

TRUE in Boolean Comparison

Comparing cell values to TRUE for validation

Result: TRUE or FALSE

TRUE with AND Function

Combining TRUE with other logical conditions

Result: TRUE or FALSE

TRUE in Data Filtering

Using TRUE to mark rows for filtering or processing

Result: TRUE

TRUE as Default Value in VLOOKUP

Using TRUE for approximate match in VLOOKUP

Result: Matched price value

TRUE in Array Formula Logic

Using TRUE in complex array filtering with multiple conditions

Result: Filtered array of matching rows

Common Errors and Solutions

#NAME?

TRUE is not recognized as a valid function

Cause:

Typing TRUE with incorrect syntax, such as adding parameters: =TRUE(1) or misspelling as =TRU()

Solution:

Ensure you type =TRUE() with empty parentheses and no parameters. The function takes no arguments. Alternatively, you can simply type TRUE without the function wrapper, which works identically in modern Excel and Google Sheets.

Prevention:

Remember that TRUE() requires exactly zero parameters. Use formula autocomplete features to ensure correct spelling.

Frequency: 15%

Example:

Text Instead of Boolean

Formula treats TRUE as text "TRUE" instead of boolean

Cause:

Typing 'TRUE' with quotes makes it text, not a boolean: ="TRUE" creates text, not a logical value

Solution:

Remove the quotes around TRUE. Use =TRUE() or just =TRUE without quotes to get the boolean value. If you have text 'TRUE' that you need to convert to boolean, use =IF(A1="TRUE",TRUE(),FALSE()) or =EXACT(A1,"TRUE") depending on your needs.

Prevention:

Never put quotes around TRUE in formulas unless you specifically want the text string. Excel's color coding helps: boolean TRUE appears in blue, text "TRUE" appears in black.

Frequency: 30%

Example:

Unexpected FALSE Result

Comparison with TRUE() returns FALSE when it should be TRUE

Cause:

Comparing TRUE() with text "TRUE", numbers like 1, or comparing different data types

Solution:

Understand that TRUE() is a boolean value, not text or a number. The comparison A1=TRUE() only returns TRUE if A1 contains the boolean value TRUE. If A1 contains the text 'TRUE' or the number 1, the comparison returns FALSE. For text, use A1="TRUE". For numbers, Excel treats non-zero as TRUE in logic but 1=TRUE() is FALSE in direct comparison.

Prevention:

Be explicit about data types in your formulas. Use CELL or TYPE functions to verify what type of data you're working with. Consider using VALUE or TEXT functions to convert between types when needed.

Frequency: 40%

Example:

Logic Not Working as Expected

Formula with TRUE() doesn't behave as anticipated in conditional logic

Cause:

Misunderstanding operator precedence or how TRUE interacts with other logical operators (AND, OR, NOT). For example, =A1>0 AND TRUE() produces an error because AND requires function syntax: =AND(A1>0, TRUE())

Solution:

Always use proper function syntax for logical operators. Remember: AND(condition1, TRUE()) not condition1 AND TRUE(). Also understand that TRUE() in boolean algebra acts as a neutral element: AND(anything, TRUE())=anything, but OR(anything, TRUE())=TRUE always.

Prevention:

Sketch out your logical flow before writing complex formulas. Use helper columns to break down complex logic into steps. Test each component separately before combining.

Frequency: 25%

Example:

Best Practices and Tips

Use TRUE for Formula Readability

In complex formulas with multiple logical conditions, using =TRUE() explicitly makes your logic more readable than relying on implicit TRUE values. For example, =IF(AND(condition1, TRUE()), result1, result2) clearly shows you're intentionally including a TRUE value in the logic, which helps when reviewing or debugging formulas months later.

TRUE as a Formula Template Placeholder

When building formula templates or complex logical frameworks, use TRUE() as a placeholder for conditions you'll add later. For instance, =AND(A1>100, TRUE(), TRUE()) clearly shows you have two more conditions to add. This is better than leaving empty parameters or using dummy text, as TRUE() maintains valid formula syntax while you develop your logic.

Prefer Direct TRUE Over Function in Simple Cases

For simple formulas and modern Excel versions (2010+), you can use TRUE directly without the function wrapper: =IF(A1>100, TRUE, FALSE) works identically to =IF(A1>100, TRUE(), FALSE()). The direct approach is cleaner and faster to type. Reserve =TRUE() for situations requiring explicit function format or when working with older systems that might require it.

Avoid Redundant TRUE Tests

Don't write redundant comparisons like =IF(A1=TRUE()=TRUE(), ...). If A1 already contains TRUE or FALSE, simply use =IF(A1, ...) because Excel automatically evaluates the cell's boolean value. The comparison A1=TRUE() is only needed when you want to distinguish between boolean TRUE and other truthy values (like non-zero numbers).

TRUE in Data Validation Rules

Use TRUE() in custom data validation formulas to create always-valid or always-invalid cells. For testing purposes, setting validation to =TRUE() makes any entry valid, while =FALSE() makes all entries invalid. This is useful when temporarily disabling validation rules without deleting them, or when creating controlled test scenarios.

TRUE in Boolean Arithmetic

Excel allows arithmetic operations with boolean values where TRUE=1 and FALSE=0. This means =TRUE()+TRUE() equals 2, and =SUM(TRUE(),TRUE(),TRUE()) equals 3. While this works, it's generally clearer to use 1 and 0 explicitly when you intend mathematical operations, reserving TRUE and FALSE for logical contexts only.

TRUE vs FALSE Functions
Related Logical Functions
Platform Compatibility

Need Help with TRUE Function?

Stop struggling with formula syntax. Use AskFormulas to generate validated formulas instantly with our AI-powered tool.

Example Excel formula:

Related Formulas

AND Function in Excel

Master the AND function to test multiple conditions simultaneously. Learn logical tests, error handling, and conditional formulas with examples.

beginner
logical
ExcelExcel
Google SheetsSheets
Validated
IF Function in Excel

Master the IF function with practical examples and error solutions. Learn conditional logic in Excel and Google Sheets for smarter decision-making.

beginner
logical
ExcelExcel
Google SheetsSheets
Validated
NOT Function in Excel

The NOT function reverses logical values in Excel and Sheets, turning TRUE to FALSE and FALSE to TRUE. Master error-free logical operations.

beginner
logical
ExcelExcel
Google SheetsSheets
Validated
OR Function Excel & Sheets

Master the OR function to test if any condition is TRUE. Learn syntax, practical examples, and error handling for logical operations in Excel and Google Sheets.

beginner
logical
ExcelExcel
Google SheetsSheets
Validated