Conditional Formatting Equation

RLJ

Active Member
Joined
Mar 15, 2011
Messages
417
Office Version
  1. 365
Platform
  1. Windows
I need an equation for some conditional formatting. I want an equation to format a cell if the the adjacent cell is within 5 days of the date in the cell.

Ex: in Cell E2, I want it colored if the value in F2 is within 5 days of the date entered into the cell. So if the date is 5/24/2011, I want the cell E2 to be colored until 5/30/2011.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
It is not working because I do not have a date in E2, just text. I want to just see if the data in cell e2 has been updated within the last 5 days from the date in f2.
 
Upvote 0
Looks like this should work.
=AND(F8>=TODAY(),F8-TODAY()<=5)

Thanks
 
Upvote 0
It looks like the equation is not working. I opened the spreadsheet today and everything with a date of 5/24/2011 is not highlighted anymore.
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,910
Members
452,949
Latest member
beartooth91

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