Google Sheets LTE Function: How to Use It
In this article
The LTE function in Google Sheets is not a built-in function; it is a common misspelling of the LTE comparison operator, which stands for "less than or equal to." To use it, you type <= between two values or cell references in a formula, for example =A1<=10, which returns TRUE if A1 is 10 or less and FALSE otherwise. This guide shows you exactly how to use the LTE operator in Google Sheets, including with functions like IF, COUNTIF, and SUMIF, and how to avoid the mistakes that make it seem like it is not working.
What You'll Need
- A Google account and access to Google Sheets (sheets.google.com).
- A spreadsheet with some numbers or dates to test with.
- Basic familiarity with typing formulas that start with an equals sign.
Step-by-Step
- Open your spreadsheet. Go to sheets.google.com, sign in, and open a sheet or create a new blank one.
- Click the cell where you want the result. This is where the TRUE or FALSE (or a custom result) will appear.
- Type the LTE operator formula. Start with
=, then the first value or cell reference, then<=, then the second value or cell reference. For example:=A1<=10. Press Enter. The cell shows TRUE if A1 is less than or equal to 10, and FALSE if it is greater. - Use LTE inside an IF function for a readable result. Instead of TRUE/FALSE, type
=IF(A1<=10, "Pass", "Fail"). This returns "Pass" when A1 is 10 or less, and "Fail" otherwise. The<=goes inside the logical test part of IF. - Combine LTE with COUNTIF to count matching cells. Type
=COUNTIF(B2:B20, "<=10")to count how many cells in B2:B20 contain a number less than or equal to 10. Note that the operator and value go inside quotation marks when used as a criterion in COUNTIF. - Combine LTE with SUMIF to add matching values. Type
=SUMIF(B2:B20, "<=10", C2:C20)to sum the values in C2:C20 only for rows where B2:B20 is 10 or less. - Use LTE with dates. Dates work the same way if they are real dates, not text. For example,
=A1<=DATE(2025,12,31)returns TRUE if A1 is on or before December 31, 2025. You can also compare to another date cell:=A1<=B1. - Copy the formula down. Drag the fill handle (the small square at the bottom-right of the cell) down to apply the same LTE comparison to other rows. Relative references adjust automatically.
Common Mistakes
- Typing "LTE" as a function. There is no
=LTE()function in Google Sheets. Writing=LTE(A1,10)returns a #NAME? error. Use the operator<=instead. - Using the wrong order of characters. The operator is
<=(less than sign followed by equals sign), not=<or< =with a space. A space or reversed order causes an error or unexpected result. - Forgetting quotes in COUNTIF and SUMIF. When the criterion includes an operator, it must be a text string:
"<=10". Writing<=10without quotes returns an error. - Comparing text to numbers. If a cell contains text that looks like a number (for example, "10" stored as text), LTE may not behave as expected. Use
VALUE()to convert or check the cell format. - Mixing date and text. Dates entered as text will not compare correctly with the LTE operator. Ensure dates are real date values (right-aligned by default).
Tips
- Use LTE with conditional formatting to highlight values at or below a threshold: select your range, go to Format > Conditional formatting, choose "Less than or equal to" and enter your value.
- Combine LTE with AND or OR for multiple conditions:
=IF(AND(A1<=10, B1>=5), "Yes", "No"). - Remember that LTE is inclusive: 10 <= 10 is TRUE. If you need strictly less than, use
<. - Use cell references instead of hard-coded numbers so you can change the threshold in one place.
- For array formulas, LTE works inside
ARRAYFORMULA:=ARRAYFORMULA(A1:A10<=10)returns an array of TRUE/FALSE.
Troubleshooting
If your LTE formula returns an error, check these in order:
- #NAME? error: You likely typed
LTEas a function. Replace it with the<=operator. - #ERROR! or formula parse error: Check for missing quotes in COUNTIF/SUMIF criteria, or a stray space in the operator.
- Unexpected FALSE when you expect TRUE: Verify the cell contains a number, not text. Use
=ISNUMBER(A1)to check. Also confirm you are not comparing a date to a text string. - Formula not updating: Press Ctrl+Shift+F (or Cmd+Shift+F on Mac) to recalculate, or check that iterative calculation is not interfering (File > Settings > Calculation).
- Conditional formatting not working: Ensure the range is correct and the rule uses the same LTE logic; custom formula rules need a leading equals sign, e.g.,
=A1<=10.
If that did not work, try retyping the formula from scratch in a clean cell to rule out hidden characters.
Frequently Asked Questions
Is there an LTE function in Google Sheets?
No. LTE is not a function; it is the operator <= meaning "less than or equal to." Use it directly in formulas.
How do I type the LTE operator?
Type a less-than sign followed by an equals sign: <=. On most keyboards, hold Shift and press the comma key for <, then press the equals key.
Can I use LTE with text?
Yes, but comparisons are alphabetical. For example, ="apple"<="banana" returns TRUE. It is mainly useful for numbers and dates.
Why does COUNTIF with LTE need quotes?
Because the criterion is a text expression. Google Sheets expects the operator and value as a string, like "<=10".
Does LTE work with dates in Google Sheets?
Yes, as long as the dates are stored as date values, not text. Use =A1<=DATE(2025,12,31) or compare to another date cell.
What is the difference between LTE and LT?
LTE (<=) includes the boundary value; LT (<) does not. For example, 10<=10 is TRUE, but 10<10 is FALSE.