To use the less than symbol (<) in Excel, you simply type it using your keyboard (Shift + ,) within a formula or a cell. In formulas, it acts as a logical operator that returns TRUE if the first value is smaller than the second, and FALSE otherwise. This symbol is fundamental for creating conditional logic, filtering data, and building complex calculations in spreadsheets.
What You'll Need
- A computer with Microsoft Excel installed (any version from Excel 2010 to Microsoft 365).
- A standard QWERTY keyboard (or equivalent) with a comma key.
- A dataset or a few numbers in a worksheet to test the logic.
Step-by-Step
- Basic Data Entry: Select a cell and type the < symbol. If you are just using it as a text label (e.g., typing "< 50" to indicate a range), Excel will treat this as text. Press Enter to finalize the entry.
- Using the Symbol in a Basic Comparison: To check if one cell is less than another, click on an empty cell and type an equals sign (=) to start a formula. Type the cell reference for the first value, then the less than symbol, then the second value. For example:
=A1<B1. Press Enter. Excel will display "TRUE" if A1 is smaller than B1. - Implementing the IF Function: To perform a specific action based on the less than condition, use the IF function. The syntax is
=IF(logical_test, value_if_true, value_if_false). For example, if you want to mark a score as "Fail" if it is less than 60, type:=IF(A1<60, "Fail", "Pass"). - Using Less Than in COUNTIF: To count how many cells in a range meet a "less than" criteria, use the COUNTIF function. The syntax requires the criteria to be in double quotes. For example, to count all values in range A1:A10 that are less than 100, type:
=COUNTIF(A1:A10, "<100"). - Using Less Than in SUMIF: To sum values that are less than a certain threshold, use the SUMIF function. For example, to sum all values in range A1:A10 that are less than 50, type:
=SUMIF(A1:A10, "<50"). - Combining with Other Operators: If you need to check if a value is "less than or equal to," type the less than symbol followed immediately by the equals sign:
<=. For example:=A1<=B1. - Applying Conditional Formatting: To visually highlight cells that are less than a specific value, select your data range. Go to the Home tab, click Conditional Formatting > Highlight Cells Rules > Less Than. In the dialog box, enter the threshold value and choose your formatting style (e.g., Light Red Fill with Dark Red Text).
Common Mistakes
One of the most frequent errors occurs when users forget to put the less than symbol inside double quotes when using functions like COUNTIF, SUMIF, or AVERAGEIF. If you type =COUNTIF(A1:A10, <100), Excel will return a formula error because it expects a string for the criteria. The correct format is "<100".
Another common mistake is the incorrect order of symbols when creating a "less than or equal to" operator. The less than symbol must always come first (<=). If you type =<, Excel will not recognize it as a logical operator and will likely trigger an error message or treat the entry as text.
Users also often confuse the less than symbol (<) with the greater than symbol (>). A helpful mnemonic is that the symbol looks like an arrow pointing to the smaller number, or that the "open mouth" always wants to eat the larger number, meaning the pointed end points to the smaller value.
Finally, attempting to use the less than symbol in a cell without an equals sign (=) at the start will result in the symbol being treated as a literal character. If your goal is to perform a calculation or a logical test, the formula must begin with =.
Tips
When referencing a cell instead of a hard-coded number inside a COUNTIF or SUMIF function, you must use the ampersand (&) to concatenate the symbol with the cell reference. For example, if your threshold value is stored in cell C1, the formula should be =COUNTIF(A1:A10, "<"&C1). This makes your spreadsheet dynamic, as changing the value in C1 will automatically update all your counts and sums.
For those dealing with dates, remember that Excel stores dates as serial numbers. This means you can use the less than symbol to find dates before a certain point. To find all dates before January 1, 2024, you can use =COUNTIF(A1:A10, "<1/1/2024") or reference a cell containing that date.
If you need to use the less than symbol purely as a visual indicator in a cell without Excel thinking it is a formula, you can start the cell entry with a single apostrophe ('). Typing '< 10 tells Excel to treat the entire entry as text, preventing any accidental formula triggers.
To make your logical tests easier to read in complex nested IF statements, use parentheses to group your logic. While not always required by Excel's order of operations, it helps other users understand where one comparison ends and another begins.
Troubleshooting
If your formula returns a #VALUE! error, check the data types of the cells you are comparing. The less than symbol requires numeric values (including dates and times). If one of the cells contains text that looks like a number but is actually formatted as text, the comparison may fail. You can fix this by selecting the column and changing the format to "Number" or using the VALUE function to convert text to numbers.
If your COUNTIF or SUMIF formula returns 0 when you know there are values that meet the criteria, double-check your quotes. Ensure the symbol and the number are both inside the quotes: "<10". If you are using a cell reference, ensure the ampersand is present: "<"&B1.
If the conditional formatting is not applying to the correct cells, check the "Applies to" range in the Conditional Formatting Rules Manager. Sometimes, when copying and pasting cells, the range can become fragmented or shifted, causing the highlighting to appear in the wrong place.
If you see the formula itself (e.g., =A1<B1) displayed in the cell instead of the result (TRUE/FALSE), the cell is likely formatted as "Text." Change the cell format to "General," then click into the formula bar and press Enter to force Excel to re-evaluate the formula.
Frequently Asked Questions
How do I type the less than symbol on a Mac?
On a Mac keyboard, the less than symbol is located on the same key as the comma. Hold the Shift key and press the comma key to produce the < symbol.
Can I use the less than symbol with text strings?
Yes, but it works based on alphabetical order. For example, "Apple" is considered less than "Banana" because A comes before B. This is useful for sorting or filtering lists alphabetically.
What is the difference between < and <= ?
The < symbol is "strictly less than," meaning if the two values are identical, the result is FALSE. The <= symbol is "less than or equal to," meaning if the values are identical, the result is TRUE.
Why does my less than formula return TRUE when I think it should be FALSE?
Check for hidden decimals. If cell A1 is 4.1 and cell B1 is 5, but A1 is formatted to show zero decimals, it might look like 4. However, if A1 is actually 5.1 and formatted to look like 5, the comparison =A1<B1 (5.1 < 5) will return FALSE. Increase the decimal places to see the true values.
Can I use the less than symbol in an Excel Table filter?
Yes. Click the filter dropdown arrow in the column header, select Number Filters, and then choose "Less Than..." from the list. This allows you to enter a value without writing a manual formula.
Does the less than symbol work in Google Sheets too?
Yes, the less than symbol works identically in Google Sheets as it does in Microsoft Excel, using the same logical rules and function syntax for IF, COUNTIF, and SUMIF.