conditional formatting

corsairles

New Member
Joined
Jan 22, 2013
Messages
1
Office Version
  1. 365
Hi All,
I would like to turn all cells in column A and B green whenever column A equals Mon

example
Column B has the date, column A returns the day equal to the date entered in column B
A B
1 =B1 15/02/22
2 =b2 16/02/22
3 =b3 17/02/22

thank for your help in advance
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Select all the cells in Cols A&B you want this CF to pertain to then apply the CF formula and format shown below.
Book1
AB
112/14/2022
222/15/2022
332/16/2022
442/17/2022
552/18/2022
662/19/2022
772/20/2022
812/21/2022
Sheet4
Cell Formulas
RangeFormula
A1:A8A1=WEEKDAY(B1,2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:B8Expression=WEEKDAY($B1,2)=1textNO
 
Upvote 0
none of those are a monday
BUT use weekday()

=WEEKDAY($B1,2)=1

Book2
AB
12/15/22
22/14/22
32/17/22
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:B3Expression=WEEKDAY($B1,2)=1textNO
 
Upvote 0

Forum statistics

Threads
1,214,432
Messages
6,119,468
Members
448,900
Latest member
Fairooza

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