How to Change Row Text Color When Excel Status is Completed
Question details
The user needs to automatically change the formatting of an entire row to green when a specific cell in column C contains the word 'completed'.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking project or task statuses where completed items need to be highlighted dynamically using conditional formatting.
- Observed behavior
- The user requires a formula-based rule that applies a format across an entire data range based on a single column's text value.
Ensure your data is organized in a clear tabular format without merged cells, and identify the exact column letter that contains your status indicator (e.g., Column C).
Use Conditional Formatting with a Custom Formula
Applying a formula-based conditional formatting rule is the most effective way to highlight an entire row based on a single cell's text value.
To highlight an entire row instead of just a single cell, you must use a custom formula in the conditional formatting menu. By locking the column reference with a dollar sign (absolute reference), the rule ensures that every cell in the row looks at the specific status column to determine its color.
Highlight the entire dataset you want to format. Do not select the header row. For example, select your data starting from A2 up to your last column and row, such as A2:F100.
Navigate to the Home tab on the ribbon, click on 'Conditional Formatting' in the Styles group, and select 'New Rule' from the dropdown menu.
Choose the option 'Use a formula to determine which cells to format'. In the formula box, enter = $C2="completed". Make sure to replace 'C' with your actual status column letter, and '2' with the first row number of your selected range.
Click the 'Format' button, go to the Font or Fill tab, and choose a green color. Click 'OK' on the format window, then click 'OK' again to apply the rule to your data.

Highlight Rows Instantly with WPS Spreadsheet
WPS Spreadsheet offers powerful, user-friendly conditional formatting tools identical to Excel, allowing you to automate data visualization effortlessly. Easily set up rules to change row colors based on cell values to keep track of your completed tasks.
- 1. Select Your Data: Open your file in WPS Spreadsheet and highlight the rows you want to apply the formatting to, skipping the header.
- 2. Create a New Rule: Navigate to the Home tab on the top menu, click Conditional Formatting, and choose New Rule.
- 3. Apply Formula and Format: Select 'Use a formula to determine which cells to format', type your formula like =$C2="completed", choose your desired green fill color, and click OK.

Frequently Asked Questions
Why is the wrong row changing color when I apply the conditional formatting rule?
This usually happens if the row number in your formula does not match the first row of your selected data range. For example, if you highlight your data starting from row 5, your formula must explicitly start at row 5 as well (e.g., =$C5="completed").
How can I change the row color for multiple different statuses, like pending or delayed?
You can create multiple conditional formatting rules for the same data range. Simply keep your data highlighted, repeat the 'New Rule' process, change the target word in the formula (e.g., =$C2="pending"), and select a different color (like yellow or red) for each specific status.
Is the conditional formatting formula case-sensitive?
No, standard conditional formatting formulas in Excel are not case-sensitive. The rule =$C2="completed" will successfully highlight the row whether the cell contains 'Completed', 'COMPLETED', or 'completed'.
How do I edit or remove the conditional formatting rule?
To manage your rules, go to the Home tab, click Conditional Formatting, and select Manage Rules. From the 'Show formatting rules for' dropdown, choose 'This Worksheet'. You can then select your specific rule to Edit or Delete it.




