#1   Report Post  
dipsy
 
Posts: n/a
Default Excel

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   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
How do I isolate my Excel server (automation) from other Excel instances? Joseph Geretz Excel Discussion (Misc queries) 5 July 19th 13 03:18 PM
VB Automation is Whacking out my Excel Environment Joseph Geretz Excel Discussion (Misc queries) 2 December 29th 04 03:49 PM
Excel 2000 file when opened in Excel 2003 generates errors? Doug Excel Discussion (Misc queries) 13 December 25th 04 10:20 PM
Excel aficionado wants to learn Access Hari Excel Discussion (Misc queries) 0 December 3rd 04 05:47 AM


All times are GMT +1. The time now is 11:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"