Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default Conditional Formatting of rows on a calendar

Hello,

What i'm trying to do is conditional format certain columns based on whether
they have "Sat" or "Sun" at the top.

I have the following:

Row 4 Starting at column B Consists of:
Thur Fri Sat Sun Mon etc etc for January (Thursday being the first of the
month and so on)

I then have the same for all the other months, each starting on the first,
with the respective day above it. For example February starts on (B13) the
1st which means that the day would be Sun.

What i'm trying to do is have the columns for Sat & Sun for each particular
month format to grey. Each formatted column will consist of 8 rows.
(Formatting the whole column for 8 rows isn't the problem, it's getting it to
apply only to "Sat" & "Sun")

I have tried the following formula

=B$4="Sat" - which is fine for the first month and formats the whole "Sat"
column, however when applied to the whole sheet it colours straight down
meaning that even though "Sat" is coloured in January, "Tue" will be
formatted in February and March and "Fri" is formatted in April.

I have tried a couple of other forumlas with varying results, but they all
end up formatting the wrong columns.

Any help would be most appreciated.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 222
Default Conditional Formatting of rows on a calendar

Well, the simplest method is to use conditional formatting on the values in
the cells themselves. One would hope each cell in question has a date value
in it that you are formatting to display however you see fit, even if it's
only to show the day. But the date value needs to be in each of the cells.

If it is, use a conditional format on the whole calendar. Let's assume you
highlighted the whole data set and the key cell selected is G8, then this
would be the conditional format:

Condition1: Formula Is:
=OR(WEEKDAY(G8)=1,WEEKDAY(G8)=7)
....format the pattern background as grey.

Does this help?

--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"Ricardo" wrote:

Hello,

What i'm trying to do is conditional format certain columns based on whether
they have "Sat" or "Sun" at the top.

I have the following:

Row 4 Starting at column B Consists of:
Thur Fri Sat Sun Mon etc etc for January (Thursday being the first of the
month and so on)

I then have the same for all the other months, each starting on the first,
with the respective day above it. For example February starts on (B13) the
1st which means that the day would be Sun.

What i'm trying to do is have the columns for Sat & Sun for each particular
month format to grey. Each formatted column will consist of 8 rows.
(Formatting the whole column for 8 rows isn't the problem, it's getting it to
apply only to "Sat" & "Sun")

I have tried the following formula

=B$4="Sat" - which is fine for the first month and formats the whole "Sat"
column, however when applied to the whole sheet it colours straight down
meaning that even though "Sat" is coloured in January, "Tue" will be
formatted in February and March and "Fri" is formatted in April.

I have tried a couple of other forumlas with varying results, but they all
end up formatting the wrong columns.

Any help would be most appreciated.


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
conditional formatting across rows learningdba Excel Worksheet Functions 1 October 1st 08 03:59 AM
Conditional Formatting 2 rows only Tamara Excel Discussion (Misc queries) 2 May 15th 08 10:41 PM
Conditional Formatting of rows KATE MCL Excel Discussion (Misc queries) 11 October 16th 06 12:14 PM
Conditional Formatting for rows... dramajuana Excel Discussion (Misc queries) 1 June 12th 06 07:39 PM
How to get more than 3 rows in Conditional Formatting Shants Excel Discussion (Misc queries) 1 May 29th 06 07:41 PM


All times are GMT +1. The time now is 07:27 PM.

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"