Highlight Cells Starting with 201- Using Excel Conditional Formatting
Question details
Highlight codes that start with 201- using an accurate conditional formatting formula.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A user wants to format cells containing codes with the prefix 201-.
- Observed behavior
- Only cells whose values begin with 201- should be highlighted; matches elsewhere in a cell should be ignored.
Identify the range of codes and its first cell. Select the range starting with that cell so it remains active when you create the rule.
Create a LEFT formula rule for the selected cells
Use this rule to highlight only values that begin with 201-.
Select the target range, such as C2:C100, with C2 as the active cell.
Go to Home > Conditional Formatting > New Rule, then choose Use a formula to determine which cells to format.
Enter =LEFT(C2,4)="201-" in the formula box. Replace C2 with the first cell of your selected range if it is different.
Click Format, choose a fill color, and click OK to save the format and rule.

Highlight codes starting with 201- in WPS Spreadsheets
Use a formula-based conditional formatting rule in WPS Spreadsheets to highlight codes with the exact starting prefix.
- 1. Open the spreadsheet: Open your workbook in WPS Spreadsheets and locate the column containing the codes.
- 2. Select the range: Select the cells to format, such as C2:C100, starting with C2 as the active cell.
- 3. Add the formula: Go to Home > Conditional Formatting > New Rule, choose the formula-based rule, and enter =LEFT(C2,4)="201-". Adjust C2 to match the first selected cell.
- 4. Apply a fill color: Choose a formatting style or fill color and confirm the rule.

Frequently Asked Questions
Why is Excel highlighting the wrong row?
Check that the formula refers to the active first cell of the selected range. For C2:C100, use =LEFT(C2,4)="201-" and check the range under Home > Conditional Formatting > Manage Rules.
Why shouldn't I use FIND for this rule?
FIND can locate 201- anywhere in a cell. LEFT(C2,4) checks only the first four characters, so it matches the prefix rather than text in the middle.
How do I apply the rule to a range starting at C1?
Select the range starting with C1, then create a formula-based rule using =LEFT(C1,4)="201-".
Can I change the highlight color later?
In Excel, go to Home > Conditional Formatting > Manage Rules, select the rule, and choose Edit Rule to change its format.




