using conditional formatting

Green1972

Board Regular
Joined
Dec 8, 2008
Messages
161
Hello.
Ok what i have is a range of cells containing different dates (row E100 to BB100). In cell B20 i have another date. What i want to do is use conditional formatting to highlight the cells in row E100 to BB100 that are within 7 days of the date in cell B20. Is it even possibel.:stickouttounge:
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
I think you need to create your own rule for conditional formatting using a formula. Haven't used this before but think it is what u need.
 
Upvote 0
Search ="DATEDIF in conditional format", you will find the answer.
 
Upvote 0
Hello.
Ok what i have is a range of cells containing different dates (row E100 to BB100). In cell B20 i have another date. What i want to do is use conditional formatting to highlight the cells in row E100 to BB100 that are within 7 days of the date in cell B20. Is it even possibel.:stickouttounge:
What version of Excel are you using?
 
Upvote 0
Try this,
Highlight your range E100:BB100, and use this formula in conditional format,

=AND(DATEDIF($E$100,A10,"D")<7)


Where A10 is where your date is, and format it as you want.
 
Upvote 0
Hi have tried the formula "Sirzki" posted and i dont know how to do a search in conditional formatting.
 
Upvote 0
Hello.
Ok what i have is a range of cells containing different dates (row E100 to BB100). In cell B20 i have another date. What i want to do is use conditional formatting to highlight the cells in row E100 to BB100 that are within 7 days of the date in cell B20. Is it even possibel.:stickouttounge:

Hello all. I'am using Excel 2010
I don't have Excel 2010 but this should be the same as it is in Excel 2007.

Select the *entire* range E100:BB100 starting from cell E100.
Cell E100 will be the active cell. The active cell is the
one cell in the selected range that is not shaded. The
formula will be relative to the active cell.
  • Goto the Home tab>Styles>Conditional Formatting>Manage rules>New rule>Use a formula to determine which cells to format
  • Enter this formula in the box below:
    =AND(E100>=$B$20-7,E100<=$B$20)
  • Click the Format button
  • Select the desired style(s)
  • OK out
 
Upvote 0

Forum statistics

Threads
1,224,570
Messages
6,179,608
Members
452,930
Latest member
racefanjtd

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