Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Need some help for the captioned subject. I am entering a date on the top cell of col B Then there are numbers from 1 to 31 from cell B5 downwards. These numbers represent the day of the month. I want to highlight the cells that are having sundays with one colour and those out of month with another colour. Is it possible? Thanks, Jagruti. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Jagruti,
Do the following. Select the first cell which contains 1 i.e. B5. Go to Format Conditional Formatting. Select formula is and enter the following formula in the adjoining box: =WEEKDAY(DATE(YEAR($B$1),MONTH($B$1),B5))=1 select a format color for the cell. This will format all cells which are sundays to your conditional format color. As for the other cells, you can directly choose a required background color. The conditional format will override this for sundays. -------------- Mangesh *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
forgot to mention:
copy paste the format for the rest of the 30 cells. -------------- Mangesh *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Out of month
=MONTH(DATE(YEAR($B$1),MONTH($B$1),B2))<MONTH($B$ 1) -- HTH Bob Phillips "Jagruti" wrote in message ... Hi, Need some help for the captioned subject. I am entering a date on the top cell of col B Then there are numbers from 1 to 31 from cell B5 downwards. These numbers represent the day of the month. I want to highlight the cells that are having sundays with one colour and those out of month with another colour. Is it possible? Thanks, Jagruti. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Protect Cell Formatting including Conditional Formatting | Excel Discussion (Misc queries) | |||
using conditional criteria for weekdays | Excel Discussion (Misc queries) | |||
Conditional formating for weekdays | Excel Worksheet Functions | |||
Conditional Formatting that will display conditional data | Excel Worksheet Functions | |||
Macro for formatting columns with dates, weekdays, and widths? | Excel Programming |