Conditional Formatting of cells between days of week (Sun to Mon Only)

Manexcel

Board Regular
Joined
Dec 28, 2015
Messages
128
Office Version
  1. 365
Platform
  1. Windows
In col A I have a list of dates for any given month. In col B I have the days of the week that correspond to the date in Col A. In col C to F there is other data.

My challenge is that I wish to format the cells with a line between each Sunday and Monday of each week in the month.

Example data is:

ColA ColB
1 Mon
2 Tues
3 Wed
4 Thur
5 Fri
6 Sat
7 Sun
8 Mon

to

31

So in the above example I wish to insert a line between days 7 and 8 and for the other Sundays and Mondays in the month

Can you please advise how to approach.

Many thanks as always
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Select the entire range

Conditional Formatting
New Rule
Use a formula to determine...

=($B1="Sun")

Format using the border tab and add a line at the bottom
Use Format painter (paintbrush icon) to copy to other cells
 
Upvote 0
Your solution works just great. Thank you so much. Much appreciated.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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