SOLVED

conditional formatting excel

Copper Contributor

Hello

is there a chance to automate this tabele color?

If open qty bigger than stock = red
If stock is bigger than open qty = green

Thank you!

 

Cuorepazzu_1-1697124310379.png

 

 

2 Replies
best response confirmed by Cuorepazzu (Copper Contributor)
Solution

@Cuorepazzu 

Select the range that you want to color this way.

Set the fill color to light green - this will be the default.

The active cell within the selection should be in the top row.

In the following, I'll assume that the open qty data are in B2 and down, and the stock data in C2 and down.

On the Home tab of the ribbon, click Conditional Formatting > New Rule...
Select 'Use a formula to determine which cells to format'.
Enter the formula

=$B2>$C2

Click Format...
Activate the Fill tab.
Select light red as highlight color.
Click OK, then click OK again.

Thank you!
1 best response

Accepted Solutions
best response confirmed by Cuorepazzu (Copper Contributor)
Solution

@Cuorepazzu 

Select the range that you want to color this way.

Set the fill color to light green - this will be the default.

The active cell within the selection should be in the top row.

In the following, I'll assume that the open qty data are in B2 and down, and the stock data in C2 and down.

On the Home tab of the ribbon, click Conditional Formatting > New Rule...
Select 'Use a formula to determine which cells to format'.
Enter the formula

=$B2>$C2

Click Format...
Activate the Fill tab.
Select light red as highlight color.
Click OK, then click OK again.

View solution in original post