To write "less than or equal to" in Excel, use the combination of the less-than sign and the equal sign: <=. There is no single character for this mathematical symbol in Excel; you must type the two characters side-by-side without any spaces between them. This operator is primarily used in logical tests, such as within IF statements, COUNTIF functions, or Conditional Formatting rules, to determine if one value is smaller than or equal to another.

What You'll Need

  • A computer with Microsoft Excel installed (works across all versions including Office 365, Excel 2021, 2019, and earlier).
  • A dataset or a specific cell where you want to apply a logical comparison.

Step-by-Step

  1. Select the cell where you want the result of your comparison to appear.
  2. Start the formula by typing the equals sign (=). Every calculation or logical test in Excel must begin with this symbol.
  3. Enter the first value or cell reference. For example, if you want to check if the value in cell A1 is less than or equal to 50, type =A1.
  4. Type the operator. Immediately after the cell reference, type the less-than sign (<) followed by the equal sign (=). Ensure there is no space between them. Your formula should now look like =A1<=.
  5. Enter the comparison value. Type the number or select the cell you are comparing against. For example, type 50 or click on cell B1. The full formula would be =A1<=50 or =A1<=B1.
  6. Press Enter. Excel will evaluate the statement. If the value in A1 is 50 or any number lower than 50, the cell will display TRUE. If the value is 51 or higher, it will display FALSE.

Common Mistakes

  • Reversing the Order: A common error is typing =<= as ==<. Excel does not recognize =< as a valid operator. The less-than sign must always come first.
  • Adding Spaces: Typing < = (with a space) can sometimes cause Excel to treat the entry as text rather than a formula, or it may trigger a formula error.
  • Forgetting the Leading Equals Sign: If you simply type A1<=50 into a cell without starting with =, Excel treats it as a literal string of text and will not perform any calculation.
  • Using the Wrong Symbol: Ensure you are using the less-than sign (<) and not the greater-than sign (>), which would check if a value is "greater than or equal to."

Tips

  • Using with the IF Function: Instead of just getting a TRUE or FALSE result, wrap the operator in an IF statement to return custom text. Example: =IF(A1<=50, "Pass", "Fail").
  • Using with COUNTIF/SUMIF: When using the operator inside a function like COUNTIF, you must enclose the operator in double quotation marks. Example: =COUNTIF(A1:A10, "<=50").
  • Conditional Formatting: To highlight cells that are less than or equal to a value, go to Home > Conditional Formatting > Highlight Cells Rules > Less Than.... While the menu says "Less Than," you can manually change the operator to <= in the rule manager or use a formula-based rule.
  • Cell References for Flexibility: Instead of typing a hard number like 50, point the formula to a cell (e.g., =A1<=B1). This allows you to change the threshold value in cell B1 without having to rewrite your formulas.

Troubleshooting

If your formula is not working as expected, try these steps in order:

  1. Check for Text Formatting: If you see the formula itself (e.g., =A1<=50) written in the cell instead of TRUE or FALSE, the cell is likely formatted as "Text." Change the cell format to "General" via the Home tab, then click into the formula bar and press Enter again.
  2. Verify Data Types: Ensure that the cells you are comparing contain actual numbers. If a number is stored as text (often indicated by a small green triangle in the corner of the cell), the logical operator may return an incorrect result. Use the "Convert to Number" option to fix this.
  3. Check for Hidden Spaces: If you are comparing cells that contain text or numbers imported from another software, there may be invisible spaces. Use the =TRIM() function to remove extra spaces.
  4. Review Formula Syntax: Ensure you haven't accidentally placed the operator inside quotes unless you are using it within a function like COUNTIF or SUMIF.

Frequently Asked Questions

How do I write "less than or equal to" as a symbol in a cell for display only?

If you don't want a formula but just want the mathematical symbol (≤) to appear as text, you can go to Insert > Symbol, search for the "Mathematical Operators" subset, and select the ≤ sign. Alternatively, on Windows, you can hold Alt and type 243 on the number pad (though this depends on your font and keyboard settings).

Can I use "less than or equal to" with dates in Excel?

Yes. Excel stores dates as serial numbers, so you can use <= to compare dates. For example, =A1<=DATE(2023,12,31) will return TRUE if the date in A1 is on or before December 31, 2023.

What is the difference between < and <= ?

The < (less than) operator excludes the number you are comparing against. For example, <50 means any number up to 49.99, but NOT 50. The <= (less than or equal to) operator includes the number, so 50 would be considered TRUE.

Why does my COUNTIF formula return 0 when I use <= ?

This usually happens because the operator was not enclosed in quotation marks. Ensure your formula looks like =COUNTIF(Range, "<=50"). If you are referencing a cell for the value, use an ampersand: =COUNTIF(Range, "<=" & B1).

Does the order of the cells matter in a <= formula?

Yes. The value being tested must come first. In the formula =A1<=B1, Excel is asking "Is A1 less than or equal to B1?" If you swap them to =B1<=A1, you are asking if B1 is the smaller value.