Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
violasrbest
 
Posts: n/a
Default Conditional formatting using weekday

Hi

I want to shade a cell if the date shown is not a weekday. I know I need to
use conditional formatting, but I can't work out what formula to use.

Thanks
  #2   Report Post  
violasrbest
 
Posts: n/a
Default

It's OK, I've sorted it now.

"violasrbest" wrote:

Hi

I want to shade a cell if the date shown is not a weekday. I know I need to
use conditional formatting, but I can't work out what formula to use.

Thanks

  #3   Report Post  
David
 
Posts: n/a
Default

?B?dmlvbGFzcmJlc3Q=?= wrote

I want to shade a cell if the date shown is not a weekday. I know I
need to use conditional formatting, but I can't work out what formula
to use.


You say "the date", but if you have a column or row of dates, select them
all and apply Formula Is:

If column A
=WEEKDAY($A1,2)=6
If row 1
=WEEKDAY(A$1,2)=6

Choose desired format

--
David
  #4   Report Post  
David McRitchie
 
Posts: n/a
Default

Hi David (Turner),
Glad you posted the solution, even though you would not
have had time to see that the original poster found
his own solution.

It seems to me that someone who asks a question, and then
says "never mind, I found the answer" is simply not sharing.
Someone might see the thread, and think I need that answer or
more likely find the thread in Google and want to know the answer and
it would not be there had you not answered. In fact that is one
of the points mentioned in Hints for New Posters
http://www.cpearson.com/excel/newposte.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"David" wrote in message ...
?B?dmlvbGFzcmJlc3Q=?= wrote

I want to shade a cell if the date shown is not a weekday. I know I
need to use conditional formatting, but I can't work out what formula
to use.


You say "the date", but if you have a column or row of dates, select them
all and apply Formula Is:

If column A
=WEEKDAY($A1,2)=6
If row 1
=WEEKDAY(A$1,2)=6

Choose desired format

--
David



  #5   Report Post  
David
 
Posts: n/a
Default

David McRitchie wrote

Hi David (Turner),
Glad you posted the solution, even though you would not
have had time to see that the original poster found
his own solution.

It seems to me that someone who asks a question, and then
says "never mind, I found the answer" is simply not sharing.
Someone might see the thread, and think I need that answer or
more likely find the thread in Google and want to know the answer and
it would not be there had you not answered.


You've described precisely how and why *I* read newsgroups when not seeking
specific answers for my own projects.

Thanks for the feedback.

--
David
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
difficulty with conditional formatting Deb Excel Discussion (Misc queries) 0 March 23rd 05 06:13 PM
conditional formatting question Deb Excel Discussion (Misc queries) 0 March 23rd 05 02:07 AM
Effect of Conditional Formatting, Data Validation Bill Sturdevant Excel Discussion (Misc queries) 1 January 25th 05 11:50 PM
Determine cells that drive conditional formatting? Nicolle K. Excel Discussion (Misc queries) 2 January 7th 05 01:08 AM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM


All times are GMT +1. The time now is 09:44 PM.

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"