Formatting Issues

Copy Conditional Formatting Rules Down Every Excel Row

Algirdas JasaitisAlgirdas Jasaitis Dec 2, 2026 868 views

Question details

Apply conditional formatting to each row based on the status in that row.

How to Copy Conditional Formatting Rules Down Every Excel Row
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet has status values in column B, and the user wants to format columns A through F according to each row's status.
Observed behavior
Each row should be formatted based on its own status rather than the status in a fixed row.
Before you start

Identify the status column and the first row of the data range. In the example below, statuses are in column B and the data starts on row 2.

Solution 1Recommended

Apply a Formula-Based Rule to the Full Data Range

Use this method to format each row based on the status in column B.

1
Select the data range

In Excel, select A2:F201, or select the full range you want to format, starting with its first data row.

2
Create a formula rule

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

3
Enter the status formula

Enter =$B2="Sample Received". The dollar sign fixes column B, while the row number remains relative so each row checks its own status.

4
Choose the formatting

Click Format, choose a fill or other formatting, and click OK to create the rule.

5
Check the rule range

Go to Home > Conditional Formatting > Manage Rules and check that Applies to is =$A$2:$F$201. Adjust it to match your selected data range.

Apply a Formula-Based Rule to the Full Data Range
Match the first row: The row number in the formula must match the first row of the Applies to range. For other statuses, create additional rules with the same reference and change the status text.
Format rows by status

Apply Conditional Formatting to Rows in WPS Spreadsheets

Use a formula-based conditional formatting rule in WPS Spreadsheets to format each row according to its own status.

  1. 1. Open and select the range: Open your workbook in WPS Spreadsheets and select A2:F201, or the range you want to format.
  2. 2. Start a new rule: On the Home tab, open Conditional Formatting and choose New Rule. Select the option to use a formula to determine which cells to format.
  3. 3. Enter the formula and format: Enter =$B2="Sample Received", then choose Format and select the appearance you want.
  4. 4. Apply and check the rule: Confirm the rule, then open Conditional Formatting > Manage Rules and check that it applies to the full selected range.
Apply one status-based rule across a full data rangeUse relative row references to check each row separatelyOpen and save Microsoft Excel XLSX files
QA img-9

Frequently Asked Questions

Why does the formula use $B2 instead of $B$2?

$B2 keeps the status column fixed while allowing the row number to change for each row. $B$2 would make every row check cell B2.

How do I extend an existing conditional formatting rule to more rows?

Go to Home > Conditional Formatting > Manage Rules, select the rule, and expand its Applies to range, for example to =$A$2:$F$201.

How can I use different colors for different statuses?

Create a separate formula-based rule for each status under Home > Conditional Formatting > New Rule. For example, change the text in =$B2="Sample Received" for each status and choose a different format.

What if my data starts on a different row?

Use the first row of the Applies to range in the formula. For example, if the range starts at A5, use =$B5="Sample Received".