Highlight cell if value higher

OlivierS

New Member
Joined
May 29, 2014
Messages
28
Hi,

I'm trying to compare two columns. When the value in column 2 is higher than in column 1, I highlight the cell.

I've selected my first cell (let's say B1) and went to Conditional Formating > Highlight Cell > Greater Than and selected my first cell from my first column (A1).

Now, I need to 'duplicate' this rule for the remaining rows. If I drag B1 through column 2, it only compre the values with the first cell from the first column A1.

I can't manage to find an easy way to compare A1 with B1, A2 with B2, etc.

Any idea?

Thanks
 

Attachments

  • Screenshot 2020-05-11 at 13.50.41.png
    Screenshot 2020-05-11 at 13.50.41.png
    124.3 KB · Views: 85

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
If you have a whole range of cells to apply Conditional Formatting to, I usually find the best way is to select the whole range first, then set-up the Conditional Formatting rule as it applies to the first cell in your selected range. The other cells should adjust automatically.

I usually use the Formula option, just because I know I have a lot of flexibility and can make it do what I want.
For any column or row reference that you want to not "float" or change for the other cells, you put a $ sign in front of it to lock that part of the range.
 
Upvote 0
1) select B1:B100
2) go to Conditional Formating---new rules(my language is not english, maybe this is not the exact descreption)---use formula to.....(the last one in the list)
3) enter =B1>A1 in the textbox below
4) Click the Format button, in the last tab, select a color you like.
 
Upvote 0
You are welcome.
Glad we could help!
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,593
Members
452,654
Latest member
mememe101

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