Conditional Formatting for Weekday

azad092

Board Regular
Joined
Dec 31, 2019
Messages
198
Office Version
  1. 2007
Platform
  1. Windows
dear members
hi
I have an attendance sheet as you can see in the given image
I want to apply conditional formatting for the week day
I want that in the attendance sheet every column (with in selected range) which have the value sun should be coloured
please guide me how I can do this
 

Attachments

  • weekday.JPG
    weekday.JPG
    74.5 KB · Views: 13

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
you want Sunday to be coloured
what does (within selected range) actually mean

I cant tell from an image if the numbers are Dates formatted or if the days of week again are dates formatted to show the weekday

Book2
ABCDEFGHIJKLMN
101020304050607080910111213
2SatSunMonTueWedThuFriSatSunMonTueWedThu
3
4
5
6
7
8
9
10
11
12
13satSunmontuewedthufrisatsunmontuewedthu
14
15
16
17
18
19
20
Sheet1
Cell Formulas
RangeFormula
B2:N2B2=B1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B14:N20Expression=B$13="sun"textNO
B3:N8Expression=WEEKDAY(B$2,2)=7textNO


Note: Images are difficult to see , and also requires that I input all the data myself, which is very time consuming.

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
 
Upvote 0

Forum statistics

Threads
1,215,357
Messages
6,124,483
Members
449,165
Latest member
ChipDude83

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