Formatting Issues

Highlight Cells Starting with 201- Using Excel Conditional Formatting

Aamir Naveed AkramAamir Naveed Akram Dec 2, 2026 869 views

Question details

Highlight codes that start with 201- using an accurate conditional formatting formula.

Highlight Cells Starting with 201- in Excel
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.
Before you start

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.

Solution 1Recommended

Create a LEFT formula rule for the selected cells

Use this rule to highlight only values that begin with 201-.

1
Select the codes

Select the target range, such as C2:C100, with C2 as the active cell.

2
Create a formula rule

Go to Home > Conditional Formatting > New Rule, then choose Use a formula to determine which cells to format.

3
Enter the prefix formula

Enter =LEFT(C2,4)="201-" in the formula box. Replace C2 with the first cell of your selected range if it is different.

4
Choose the highlight

Click Format, choose a fill color, and click OK to save the format and rule.

Create a LEFT formula rule for the selected cells
Check the cell reference: The formula reference must match the active first cell in the selected range. LEFT checks the beginning of the value, whereas FIND can match 201- anywhere in the text.
WPS Office

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. 1. Open the spreadsheet: Open your workbook in WPS Spreadsheets and locate the column containing the codes.
  2. 2. Select the range: Select the cells to format, such as C2:C100, starting with C2 as the active cell.
  3. 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. 4. Apply a fill color: Choose a formatting style or fill color and confirm the rule.
Highlights codes only when 201- appears at the beginningSupports Microsoft Excel XLSX and XLS formatsProvides familiar spreadsheet formatting toolsFree to use for everyday spreadsheet tasks
microsoft office alternative - wps office

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.