Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Assuming it's row 3 you want to highlight (i.e. the row with the date in it),
try these steps: 1. Format R3 to date, and type a date in the cell. 2. Click in cell R3 then click FormatConditional Formatting. 3. Under Condition 1 select 'Formula Is', then type this formula in the next box =DATEDIF($R$3,TODAY(),"D")<30 4. Click the Format button, then the Patterns tab, select the green color, click OK. 5. Back at the Conditional Formatting dialogue, click Add and under Condition 2 select 'Formula Is', then type this formula in the next box =AND(DATEDIF($R$3,TODAY(),"D")=30,DATEDIF($R$3,TO DAY(),"D")<60) 6. Click the Format button, then the Patterns tab, select the yellow color, click OK. 7. Back at the Conditional Formatting dialogue, click Add and under Condition 3 select 'Formula Is', then type this formula in the next box =DATEDIF($R$3,TODAY(),"D")=60 8. Click the Format button, then the Patterns tab, select the red color, click OK twice. 9. Copy cell R3 (Ctrl + C), then highlight row 3 (by clicking the row number), right click, select Paste Special, then Formats, then OK. That should shade the cells in row 3 according to your conditions. Note I've amended the conditions slightly: less than 30 is green; 30 or more but less than 60 is yellow; 60 or more is red. Hope that works for you. Regards, Tom "chickalina" wrote: Hello, I have scoured the newsgroups and searched quite a few posts for what I would like to do. We will use cell R3 as an example. I have Office 2007 and I would like to do the following: Highlight the row green if the date in R3 is less than 30 days old. Highlight the row yellow if the date in R3 is more than 30 but less than 60 days Highlight the row red if the date in R3 is more than 60 days old I have tried a variety of methods, but I cannot get any one to work. Please help! thanks so much. M |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sum of named ranges conditional to date? | Excel Worksheet Functions | |||
Formatting based on date ranges | Excel Discussion (Misc queries) | |||
Conditional formatting date ranges | Excel Worksheet Functions | |||
Conditional Formatting - date ranges | Excel Discussion (Misc queries) | |||
Ranges within Conditional Formatting | Excel Discussion (Misc queries) |