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!
 

Some videos you may like

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Lewiy

Well-known Member
Joined
Jan 5, 2007
Messages
4,284
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>
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Select B1:Z1 and use the following formula in Conditional Formatting:

=WEEKDAY(B1)>4
 

diggs2701

New Member
Joined
Jul 23, 2008
Messages
18
Thank you all! I also found out I can use cell=TEXT(B5,"ddd") and conditional = "Thu","Fri","Sat"

Thanks!
 

Watch MrExcel Video

Forum statistics

Threads
1,122,804
Messages
5,598,151
Members
414,214
Latest member
marketingnumbersguy

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
Top