Forum Discussion
brianclarke
Jan 27, 2024Copper Contributor
Conditional formatting - changing color/pattern based on a simple "greater than" condition
I'm simply trying to change a cell's color based on whether its number value is greater than an adjacent cell's value:
3 Replies
Sort By
- NikolinoDEGold Contributor
You can use Conditional Formatting in Excel to change the color of a cell based on a "greater than" condition. Here's a step-by-step guide:
- Select the Cell/Range: Click on the cell or select the range of cells where you want the formatting to apply.
- Go to Conditional Formatting:
- In the Excel ribbon, go to the "Home" tab.
- Click on "Conditional Formatting" in the toolbar.
- Create a New Rule:
- Choose "New Rule" from the dropdown menu.
- In the "Select a Rule Type" window, choose "Format cells that contain".
- Set the Condition:
- In the "Format cells that contain" window, set the first dropdown menu to "Cell Value".
- Set the second dropdown menu to "greater than".
- In the third box, enter the reference to the adjacent cell (e.g., =$A$1).
- Format the Style:
- Click on the "Format" button.
- In the "Format Cells" window, go to the "Fill" tab.
- Choose the background color or pattern you want for cells that meet the condition.
- Click "OK" to apply the formatting.
- Click OK:
- After setting up the condition and formatting style, click "OK" in the "Format Cells that Contain" window.
- Preview and Apply:
- You should now see a preview of how the formatting will look.
- Click "OK" to apply the formatting.
Now, the selected cells will change their color based on whether their values are greater than the specified adjacent cell's value.
Repeat these steps for any additional formatting rules or different cells you want to apply the formatting to. AI was partially deployed to support the text.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark as best response and Like it!
This will help all forum participants.
- OliverScheurichGold Contributor
- brianclarkeCopper Contributor