change style based on higher, lower or equal to another - conditional formatting the solution?

pook_666

Board Regular
Joined
Aug 16, 2018
Messages
94
Hi there,

I have the below example of a table. What I want to do is compare each products price and change the style of the cell in column C to good if higher than column B, neutral if the same and bad if lower.

1617159332534.png


So in the end I want to have the below. Is there anyway I can do a conditional format to do this automatically instead of just manually comparing? (currently have data 100's row long, so trying to avoid doing it manually!!!)

1617159501364.png
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
I couldn't get your colors but is this what you had in mind ?

20210331 Conditional Formatting.xlsx
ABCD
1
213
331
444
554
699
713
835
962
10
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2:C9Expression=C2>B2textYES
C2:C9Expression=C2=B2textYES
C2:C9Expression=C2<B2textNO
 
Upvote 0

Forum statistics

Threads
1,215,766
Messages
6,126,754
Members
449,336
Latest member
p17tootie

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top