Conditional Formatting and Days of the Week

diggs2701

New Member
Joined
Jul 23, 2008
Messages
18
I am trying to find out the correct formula for conditional formatting days of the week.

In cell B2 I have the date (ex: 7/1/2008)
In cell B1 I have the day of the week (B1=B2 but the format is DDD so it shows up Tue)

I would like to highlight B1:Z1 (end of data range) and turn any Thursday, Friday or Saturday into red font with grey background. Any suggestions? Thank you in advance!
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Try using =WEEKDAY(A1). This will return 1 for Sunday through to 7 for Saturday.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
 
Upvote 0
Select B1:Z1 and use the following formula in Conditional Formatting:

=WEEKDAY(B1)>4
 
Upvote 0
Thank you all! I also found out I can use cell=TEXT(B5,"ddd") and conditional = "Thu","Fri","Sat"

Thanks!
 
Upvote 0

Forum statistics

Threads
1,214,861
Messages
6,121,969
Members
449,059
Latest member
oculus

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top