Solved

Conditional formatting for timesheet

Posted on 2013-12-02
4
260 Views
Last Modified: 2013-12-02
In the attached file range A11:AE25 I would like some conditional formatting which would check the following.

If the dates before today have not been filled and are not weekends then color those dates (row 11 to 25) red.
If any of the dates filled does not sum up to 8 then color the entire date range (row 11 to 25) green.

I did make an attempt which was working at the end of November but is now not working for December.
Timesheet.xlsx
0
Comment
Question by:Saqib Husain, Syed
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 50

Expert Comment

by:barry houdini
ID: 39689848
Hello Saqib,

If you use the whole range A11:AE25 as "applies to" range then you can use this formula for red condition

=(A$8<>"W")*(A$7<DAY(TODAY()))*(SUM(A$11:A$25)=0)

...but if you use that today there won't be any red rows because there are no previous weekdays in December - test with TODAY() replaced with a cell where you can vary "today's" date.

For green did you want to format all of A11:AE25 if a single column doesn't sum to 8....or just that specific column? Should that take precedence over the red?

regards, barry
0
 
LVL 43

Author Comment

by:Saqib Husain, Syed
ID: 39689860
Thanks, barry, Yes I realize that today is still not beyond the first work day. That probably works and will work OK.

For the second condition I would like to colour that particular date which is not working at the moment.
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 39689880
OK this one should format columns which are not weekends, not empty but also not = 8

=(SUM(A$11:A$25)<>8)*(A$8<>"W")*(SUM(A$11:A$25)>0)

you should order the conditions so that the red one comes first

regards, barry
0
 
LVL 43

Author Closing Comment

by:Saqib Husain, Syed
ID: 39689897
Perfect, Thanks.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
using vb script 5 52
Excel with two IF statements 3 11
Access Excel ADO SQL question 8 14
Excel VBA Sort Toggle 5 14
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question