Link to home
Start Free TrialLog in
Avatar of Saqib Husain
Saqib HusainFlag for Pakistan

asked on

Conditional formatting for timesheet

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
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

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
Avatar of Saqib Husain

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Perfect, Thanks.