#1   Report Post  
Posted to microsoft.public.excel.programming
Tcs Tcs is offline
external usenet poster
 
Posts: 3
Default cell color

I have a column of days of the week. (Sat, Sun, Mon, etc.) Is there
any way I can automate changing the cell's color and/or pattern, based
on whether or not the say is 'Sat' or 'Sun'?

Thanks in advance,

Tom
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default cell color

Yes

Use Conditional Formatting

select the cell(s) then pull-down Format Conditional Formatting...

and then set the value and format. Note you can have multiple conditions.
--
Gary''s Student


"Tcs" wrote:

I have a column of days of the week. (Sat, Sun, Mon, etc.) Is there
any way I can automate changing the cell's color and/or pattern, based
on whether or not the say is 'Sat' or 'Sun'?

Thanks in advance,

Tom

  #3   Report Post  
Posted to microsoft.public.excel.programming
Tcs Tcs is offline
external usenet poster
 
Posts: 3
Default cell color

Thanks. But I'm having a problem with it. The formula in my cell,
let's say F21, is "=A21". A21 is where my date is, but F21 is
fomratted to give me the day of week. I can't get the conditional
formatting to work unless I just replace the "=A21" with "Sat" or
"Sun". I even tried setting the date to the date I want. And tht
didn't work either. (I'm *trying* to set up my worksheet so that when
I copy it for a new year, I only have to change ONE date, in ONE
place, in column "A", and the rest of the spreadsheet automatically
adjusts. But it appears I can't get both this *and* the formatting.
At the same time. :) )

Am I doing something wrong? Not doing something that I should?

Thanks,

Tom

On Sat, 24 Sep 2005 18:19:01 -0700, Gary''s Student
wrote:

Yes
Use Conditional Formatting
select the cell(s) then pull-down Format Conditional Formatting...
and then set the value and format. Note you can have multiple conditions.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default cell color

Excel has a function for that
Weekday(Serial_number,1) depending on international setting in US Sunday is 1
= weekday(date) provides an integer from 1 to 7 you can set your conditions
on this


"Tcs" wrote:

Thanks. But I'm having a problem with it. The formula in my cell,
let's say F21, is "=A21". A21 is where my date is, but F21 is
fomratted to give me the day of week. I can't get the conditional
formatting to work unless I just replace the "=A21" with "Sat" or
"Sun". I even tried setting the date to the date I want. And tht
didn't work either. (I'm *trying* to set up my worksheet so that when
I copy it for a new year, I only have to change ONE date, in ONE
place, in column "A", and the rest of the spreadsheet automatically
adjusts. But it appears I can't get both this *and* the formatting.
At the same time. :) )

Am I doing something wrong? Not doing something that I should?

Thanks,

Tom

On Sat, 24 Sep 2005 18:19:01 -0700, Gary''s Student
wrote:

Yes
Use Conditional Formatting
select the cell(s) then pull-down Format Conditional Formatting...
and then set the value and format. Note you can have multiple conditions.


  #5   Report Post  
Posted to microsoft.public.excel.programming
Tcs Tcs is offline
external usenet poster
 
Posts: 3
Default cell color

Works just great. Thanks so much.

On Sun, 25 Sep 2005 07:46:07 -0700, Vacation's Over
wrote:

Weekday(Serial_number,1)

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
Can't format cell color/text color in Office Excel 2003 in fil Tony S Excel Discussion (Misc queries) 1 December 21st 07 01:41 PM
Excel: Syntax to change cell color based on color of another cell davew18 Excel Worksheet Functions 1 January 4th 07 01:24 PM
Can't format cell color/text color in Office Excel 2003 in files . albertaman Excel Discussion (Misc queries) 0 February 16th 06 03:56 AM
How to change the default Border, Font Color, and Cell Color Elijah Excel Discussion (Misc queries) 3 November 2nd 05 11:52 PM
Browse Forms Controls and change TextBox color based on cell color StefanW Excel Programming 2 November 21st 04 07:06 PM


All times are GMT +1. The time now is 03:45 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"