+ Reply to Thread
Results 1 to 9 of 9

Conditional Formatting Depending on Day of the Week

  1. #1
    Registered User
    Join Date
    04-12-2013
    Location
    Utah, United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Conditional Formatting Depending on Day of the Week

    I am working on a time card spreadsheet. Each day of the week has a column. The top cell says the day of the week, the cell below has the date, and the next cells below are blank to enter the punch in and punch out times.

    I need conditional formatting to shade cells below any column for Saturday and Sunday. I have tried multiple things and gotten close, but I can't get the forumula exactly right. I'm new here so go easy on me.

    I can give more details if they are important, just didn't want to make my first post too long. Thanks for your help.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Conditional Formatting Depending on Day of the Week

    Just out of curiosity..

    Do the Saturday and Sunday Columns Move?
    Or is Sunday Always in column A and Saturday Always in G (or something like that) ?

    If they don't move, why bother with conditional formatting? Just format the columns by hand.


    Maybe I missed something..

  3. #3
    Registered User
    Join Date
    04-12-2013
    Location
    Utah, United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Conditional Formatting Depending on Day of the Week

    They do move. I am making a template time card, and when you enter in the month, it automatically fills out the days of the week and the dates. I recently started working here and everyone was filling out their time cards manually every 2 weeks, and I knew that excel could just do it automatically. When I showed my boss the new time card he wanted the weekends shaded, which wouldn't be that hard to shade them each time I made a new time card, but It's nicer to just have them shade automatically.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Conditional Formatting Depending on Day of the Week

    I see you marked the thread [Solved] ?

    So you got it going then?

  5. #5
    Registered User
    Join Date
    01-01-2005
    MS-Off Ver
    2007
    Posts
    368

    Re: Conditional Formatting Depending on Day of the Week

    Bisquick,

    See attached file. Change the date in cell C3. Hope you like it.
    Look at the conditional formatting and make the changes you need.


    Regards,
    Elio Fernandes
    Attached Files Attached Files
    Last edited by efernandes67; 04-12-2013 at 05:28 PM.

  6. #6
    Registered User
    Join Date
    04-12-2013
    Location
    Utah, United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Conditional Formatting Depending on Day of the Week

    Alright I figured it out! Hopefully this thread will be helpful to someone in the future. I applied this conditional formatting to the table below the days of the week and the dates, =FIND("Saturday",C$8), for some reason I had to add a $ before the 8, when I put a $ before C, it only shaded one of the cells in the column I wanted shaded. I don't really understand why, if anyone wanted to explain that I would be curious. Hopefully i'm explaining clearly enough for this to make sense.

  7. #7
    Registered User
    Join Date
    04-12-2013
    Location
    Utah, United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Conditional Formatting Depending on Day of the Week

    Okay so I'm not very good at explaining but I attached an example of what I ended up with. If you edit the month (needs to be the 15th day for the way I made it) then it will fill out the time card automatically. Feel free to look at it and give me any suggestions.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-01-2005
    MS-Off Ver
    2007
    Posts
    368

    Re: Conditional Formatting Depending on Day of the Week

    Look at the attached file.

    I created a new condional rule in each worksheet. It's the first one.
    Attached Files Attached Files

  9. #9
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Conditional Formatting Depending on Day of the Week

    Hi Bisquick

    For the conditional formatting, select C10:Q15

    For the rule: =NETWORKDAYS(C$9,C$9)=0
    Format as required.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

+ 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