Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
GregR
 
Posts: n/a
Default Conditional Format Holidays

I have a worksheet with holidays listed in M2:M12. I want to conditionally
format a cell if the date is a holiday. Additionally, if the holiday falls
on Sat, I want the previous Fri. formatted and if the holiday falls on Sun,
the following Mon. TIA

Greg


  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
lets assume your dates are in A1:A10 (and you have selected this range)
1. Format holidays. in the conditional format dialog enter the following
formula:
=COUNTIF($M$2:$M$12,A1)
and choose your format

2. Format the Fridays:
- select A1:A9
- open the conditional format dialog
- enter the following formula:
=AND(WEEKDAY(A1)=6,COUNTIF($M$2:$M$12,A2))

2. Format the Mondays:
- select A2:A10
- open the conditional format dialog
- enter the following formula:
=AND(WEEKDAY(A2)=2,COUNTIF($M$2:$M$12,A1))


--
Regards
Frank Kabel
Frankfurt, Germany

GregR wrote:
I have a worksheet with holidays listed in M2:M12. I want to
conditionally format a cell if the date is a holiday. Additionally,
if the holiday falls on Sat, I want the previous Fri. formatted and
if the holiday falls on Sun, the following Mon. TIA

Greg



  #3   Report Post  
GregR
 
Posts: n/a
Default

Frank, thank you very much

Greg
"Frank Kabel" wrote in message
...
Hi
lets assume your dates are in A1:A10 (and you have selected this range)
1. Format holidays. in the conditional format dialog enter the following
formula:
=COUNTIF($M$2:$M$12,A1)
and choose your format

2. Format the Fridays:
- select A1:A9
- open the conditional format dialog
- enter the following formula:
=AND(WEEKDAY(A1)=6,COUNTIF($M$2:$M$12,A2))

2. Format the Mondays:
- select A2:A10
- open the conditional format dialog
- enter the following formula:
=AND(WEEKDAY(A2)=2,COUNTIF($M$2:$M$12,A1))


--
Regards
Frank Kabel
Frankfurt, Germany

GregR wrote:
I have a worksheet with holidays listed in M2:M12. I want to
conditionally format a cell if the date is a holiday. Additionally,
if the holiday falls on Sat, I want the previous Fri. formatted and
if the holiday falls on Sun, the following Mon. TIA

Greg





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 format of data tables in charts [email protected] Charts and Charting in Excel 2 January 25th 05 03:56 PM
copy conditional format as ACTUAL format Dana Zulager Excel Discussion (Misc queries) 7 December 7th 04 11:02 PM
deleting a conditional format [email protected] Excel Discussion (Misc queries) 4 December 7th 04 10:45 PM
make a conditional format the default Fred Evans Excel Discussion (Misc queries) 3 December 6th 04 05:01 AM
Conditional format rexmann Excel Discussion (Misc queries) 4 December 2nd 04 12:01 PM


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