+ Reply to Thread
Results 1 to 5 of 5

Change the row background color by weekend dates

  1. #1
    Registered User
    Join Date
    10-05-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    57

    Change the row background color by weekend dates

    Hi,

    I am trying to format the rows in my sheet based on weekend dates. I tried to use conditional format but was unsuccessful. I have attached my work sheet. Column C has a calendar object.
    I have used =INDIRECT("C"&Row())= Weekday($C5,2)>5) but not doing any think. Any help is greatly appreciated.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Change the row background color by weekend dates

    Hi kammariarun,

    try this in a conditional formatting formula
    Please Login or Register  to view this content.
    See attached
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Change the row background color by weekend dates

    In the attachment the conditional formatting appears to be working fine with the formula

    =WEEKDAY($C5,2)>5

    which is pretty much what I would have suggested - I don't see the problem
    Audere est facere

  4. #4
    Registered User
    Join Date
    11-03-2011
    Location
    Shelton, CT
    MS-Off Ver
    Excel 2010
    Posts
    67

    Re: Change the row background color by weekend dates

    Just change your conditional format range to $C$5:$X$214

  5. #5
    Registered User
    Join Date
    10-05-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: Change the row background color by weekend dates

    Quote Originally Posted by optomyst View Post
    Just change your conditional format range to $C$5:$X$214
    Thank you all. It worked when I chnaged the range. Did not realize that conditional format function automatically updates entire row.

    Have a great day...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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