+ Reply to Thread
Results 1 to 2 of 2

WEEKDAY - Highlight Row Gray if Sunday

  1. #1
    Registered User
    Join Date
    08-20-2013
    Location
    Boston
    MS-Off Ver
    Excel 2010
    Posts
    11

    WEEKDAY - Highlight Row Gray if Sunday

    I just want to gray out SUNDAY rows.

    As an example, Column A contains the year, column B contains the month, column C contains the day.

    Visible, usable data are in columns D through I.

    =WEEKDAY(DATE(A4,B4,C4))=1

    APPLIES TO ONE ROW: $D$4:$I$4 - doesn't work.
    APPLIES TO A SUNDAY ROW: $D$8:$I$8 - doesn't work.
    APPLIES TO ENTIRE AREA: $D$4:$I:$35 - doesn't work.

    I give up.


    I wanted to upload an attachment but I got a malware warning!!????!!!???!!!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: WEEKDAY - Highlight Row Gray if Sunday

    Let's assume you want to format the range D4:I35.


    Select the ENTIRE range D4:I35 starting from cell D4.
    Cell D4 will be the active cell. The active cell is the
    one cell in the selected range that is not shaded. The
    formula will be relative to the active cell.

    Goto the Home tab>Styles>Conditional Formatting>
    Manage rules>New rule>Use a formula to determine
    which cells to format

    Enter this formula in the box below:

    =WEEKDAY(DATE($A4,$B4,$C4))=1

    Click the Format button
    Select the desired style(s)
    OK out
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel VBA code to return weekday name from a date then autofilters for userdefined weekday
    By studyengineering in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-10-2016, 03:24 PM
  2. Highlight whole row if date falls on a Sunday / Add Year
    By bgalarneau in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-03-2015, 05:01 PM
  3. Weekday/Sunday
    By seftonbarn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-19-2014, 03:02 AM
  4. [SOLVED] If Weekday() = vbSaturday Or Weekday() = vbSunday Then
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-09-2014, 09:48 AM
  5. [SOLVED]Time Card Auto highlight Sunday
    By blues_oo7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-13-2010, 01:06 PM
  6. [SOLVED] When I convert a date to a weekday, Sunday becomes Thursday?
    By FredYorkII in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-03-2006, 01:35 PM
  7. How do I get every other row to highlight gray
    By Nancy C in forum Excel General
    Replies: 3
    Last Post: 03-08-2005, 05:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1