Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hi! I have a column full of dates. I want to do the
following based on dates: 1. If date is Feb-05 - then I want to color only Qtr1 cell. 2. If date is Dec-05 - then I want to color Qtr1, Qtr2, Qtr3 & Qtr4. Is there a way to do it? Thanks. |
#2
![]() |
|||
|
|||
![]()
You can use conditional formatting to colour the cells. For example,
with headings in cells A1:E1, dates in cells A2:A20, Qtr1 in B2:B2, Qtr2 in C2:C20, Qtr3 in D2:D20 and Qtr4 in E2:E20 -- Select cells B2:B20, with B2 as the active cell Choose FormatConditional Formatting From the first dropdown, choose Formula Is In the formula box, type: =MONTH($A2)=1 Click the Format button On the Pattern tab, select a colour Click OK, click OK Repeat for C2:C20, using the formula: =MONTH($A2)=4 Repeat for D2:D20, using the formula: =MONTH($A2)=7 Repeat for E2:E20, using the formula: =MONTH($A2)=10 dipsy wrote: Hi! I have a column full of dates. I want to do the following based on dates: 1. If date is Feb-05 - then I want to color only Qtr1 cell. 2. If date is Dec-05 - then I want to color Qtr1, Qtr2, Qtr3 & Qtr4. Is there a way to do it? Thanks. -- Debra Dalgleish Excel FAQ, Tips & Book List http://www.contextures.com/tiptech.html |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? | Excel Discussion (Misc queries) | |||
How do I isolate my Excel server (automation) from other Excel instances? | Excel Discussion (Misc queries) | |||
VB Automation is Whacking out my Excel Environment | Excel Discussion (Misc queries) | |||
Excel 2000 file when opened in Excel 2003 generates errors? | Excel Discussion (Misc queries) | |||
Excel aficionado wants to learn Access | Excel Discussion (Misc queries) |