Originally Posted by
XOR LX
But you'd already put that rule in the Conditional Formattting yourself ("The absent rule is based on a 12 month period, so that one was easy to figure out"), so I just added it in to my combined version.
This is your formula for Conditional Formatting which applies to cells A9:A10 (Early/Late):
=OR(SUM($C$9:$BB$10)>6,ISNUMBER(MATCH(2,SUBTOTAL(9,OFFSET($C$9,,ROW(INDIRECT("1:"&COUNTA($C$6:$BB$6)-3))-1,2,4)),0)))
This is your formula for Conditional Formatting which applies to cell A11 (Absent):
=SUM($C$11:$BB$11)>6
This is your formula for Conditional Formatting which applies to cell A12 (Missing Punches):
=ISNUMBER(MATCH(2,SUBTOTAL(9,OFFSET($C$12,,ROW(INDIRECT("1:"&COUNTA($C$6:$BB$6)-3))-1,1,12)),0))
As for rolling on the years, it would increase the complexity quite a bit to adapt this solution to work with more than one worksheet. The alternative would be to extend your dates to the right, which would make things simpler (i.e. you could extend the range in the COUNTA($C$6:$BB$6) part (and obviously also in the simpler SUM formulae) to some appropriate column reference beyond or equal to that which contains your data – though I might add that it’s usually not best Excel practice to set range references equal to whole rows or columns.
I confess though that I'm always slightly surprised to see worksheets arranged this way (i.e. 'landscape') - why didn't you lay it out with the E, L, A, MP, etc. as column headers? Excel is always more user-friendly to the portait layour in my opinion (hence the ratio of 64:1 in its favour in terms of number of cells).
Anyway, whatever you decide, all the best.
Regards
Bookmarks