PC Review


Reply
Thread Tools Rate Thread

color cells of period

 
 
abu abdullah........halsaeed85@gmail.com
Guest
Posts: n/a
 
      7th Sep 2008
hi all
i have column c for start month & column d for end month then i have
12 column to give the period from e to p for year months from jan to
dec i need if i put in c4 as start month as example feb & put in d4
jul as end month i need to color cells from f4 to k4 means from feb
column to jul column & so on in other rows . any help will be
appreciated .
thanks for all
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      7th Sep 2008
I usually convert the month names to serial dates (a number) and then test if
one serial date is less than or greater than a reference date


For example to convert Jany to a serial date

A1 = January
Then in B1 to get a serial date
=DateValue(A1&" 1, 2008"), Notice the blank space before the 1.

This formula produces =DateValue("January 1, 2008")

I Assume you have the month names in Row 1.
Now we can use conditional formating in F4 use

=and(DateValue(F$1&" 1, 2008")>=DateValue($C4&" 1, 2008"),DateValue(F$1&" 1,
2008")<=DateValue($D4&" 1, 2008"))


"abu (E-Mail Removed)" wrote:

> hi all
> i have column c for start month & column d for end month then i have
> 12 column to give the period from e to p for year months from jan to
> dec i need if i put in c4 as start month as example feb & put in d4
> jul as end month i need to color cells from f4 to k4 means from feb
> column to jul column & so on in other rows . any help will be
> appreciated .
> thanks for all
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing text/color after a time period? metalsped Microsoft Excel Misc 2 15th Jul 2005 05:53 PM
Change outlook calendar background color by day, or time period =?Utf-8?B?bWFsZWNrNDQ=?= Microsoft Outlook Calendar 1 3rd Oct 2004 06:32 PM
Making cells change color after a specified period of time. Marc Microsoft Excel Programming 3 15th Jan 2004 02:31 PM
Making cells change color after a specified period of time. Marc Microsoft Excel Programming 3 15th Jan 2004 02:22 PM
Making cells change color after a specified period of time. Mike Microsoft Excel Worksheet Functions 9 6th Jan 2004 10:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:08 PM.