Copy Conditional Formatting Rules Down Every Excel Row
Question details
Apply conditional formatting to each row based on the status in that 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.
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.
Apply a Formula-Based Rule to the Full Data Range
Use this method to format each row based on the status in column B.
In Excel, select A2:F201, or select the full range you want to format, starting with its first data row.
Go to Home > Conditional Formatting > New Rule. Choose Use a formula to determine which cells to format.
Enter =$B2="Sample Received". The dollar sign fixes column B, while the row number remains relative so each row checks its own status.
Click Format, choose a fill or other formatting, and click OK to create the rule.
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 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. Open and select the range: Open your workbook in WPS Spreadsheets and select A2:F201, or the range you want to format.
- 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. Enter the formula and format: Enter =$B2="Sample Received", then choose Format and select the appearance you want.
- 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.

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".




