Conditional Formatting

ejeide

New Member
Joined
Jun 13, 2017
Messages
3
Hi,

I am attempting to use conditional formatting to highlight any cells in a column that meet certain criteria. Simply put, if the difference between cell one (a date) and cell two (a prior date) exceeds a certain number (the number of days between the two dates) I want that cell to be highlighted a certain color. I did something similar years ago using IF THEN, but I can't recall how to do that either. Conditional formatting seems more simple, but I just can't quite figure it out for some reason. To be clear, I have figured out how to do conditional formatting for one set of cells (e.g., C5-B5>730); however, I am having some trouble copying that formula for other cells on my worksheet. When I attempt to copy the formula, it highlights the entire column C instead of just the individual cell. Any help would be much appreciated.

Thanks,

Eric
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hia
re you saying that you are comparing all values contained in col C with the value in B5 ? Or are the cells to be compared in col B and col C ?
 
Upvote 0
Hello and welcome to the forum. Try this:

Select the range that you want the Conditional Formatting applied to > Conditional Formatting > New Rule > Use a formula

=$C5-$B5 > 730

Format: Fill color of your choice > OK > OK.

This assumes that the range you highlighted starts in row 5.
 
Upvote 0
I am attempting to highlight C5, for instance, if the value of C5-B5 is greater than a certain number.
 
Upvote 0
Hello and welcome to the forum. Try this:

Select the range that you want the Conditional Formatting applied to > Conditional Formatting > New Rule > Use a formula

=$C5-$B5 > 730

Format: Fill color of your choice > OK > OK.

This assumes that the range you highlighted starts in row 5.

I think that might have done it. Thanks!
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,315
Members
452,634
Latest member
cpostell

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