Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 128
Default Alternating row colour according to month

I have a list of dates, in ascending order.
I'd like to be able to alternate the cell colour according to month, i.e.
all Jan dates need to be blue, all Feb dates need to remain white, all March
dates need to be blue, all April dates need to remain white, and so on.
I'm thinking this is some sort of conditional formatting?
Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Alternating row colour according to month

Select the cells you need to shade and use conditional formatting. Assuming
for this example that your dates are in column A and begin at A1, choose the
Formula Is option in conditional formatting and enter a formula like this:
=MOD(MONTH($A1),2)=1
and set the format. This will set shading for cells when it is an odd
numbered month, as Jan, Mar, May...November. If you use
=MOD(MONTH($A1),2)=0
the the even numbered months would be shaded.

"Sarah (OGI)" wrote:

I have a list of dates, in ascending order.
I'd like to be able to alternate the cell colour according to month, i.e.
all Jan dates need to be blue, all Feb dates need to remain white, all March
dates need to be blue, all April dates need to remain white, and so on.
I'm thinking this is some sort of conditional formatting?
Any ideas?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Alternating row colour according to month

Yes. Format/ Conditional formatting/ Formula is: =MOD(MONTH(A1),2)=1
and choose your blue format.
--
David Biddulph

"Sarah (OGI)" wrote in message
...
I have a list of dates, in ascending order.
I'd like to be able to alternate the cell colour according to month, i.e.
all Jan dates need to be blue, all Feb dates need to remain white, all
March
dates need to be blue, all April dates need to remain white, and so on.
I'm thinking this is some sort of conditional formatting?
Any ideas?



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
alternating format BorisS Excel Discussion (Misc queries) 2 April 12th 09 04:49 PM
alternating cell colour mohd21uk via OfficeKB.com New Users to Excel 2 May 12th 06 12:17 PM
How can i change cell colour depending on month of date in cell? andy75 Excel Discussion (Misc queries) 2 January 6th 06 07:46 AM
Alternating Margins michaelgrant Excel Discussion (Misc queries) 2 September 13th 05 08:03 PM
Alternating colors for rows jp Excel Discussion (Misc queries) 1 December 28th 04 09:00 PM


All times are GMT +1. The time now is 01:27 AM.

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

About Us

"It's about Microsoft Excel"