excel - Cell reference in conditional formatting -
my apologies if text in document in german, i'll try explain possible.
basically, sheet contains dates , times employee working. weekdays automatically generated, e.g. when month set october 2013, weekdays automatically update. ("di" -> "tu"/tuesday, "mi" -> "we"/wednesday, ...)
this works out alright, don't have problems that. actual goal is, wanted make little bit better readable adding thicker lines after every sunday, signalizing end of week.
using conditional formatting, i've managed every line. e.g. line 14, used formula =mod(value($b$14);7)=1 determine, if value in column b , line 14 in fact sunday. if modulus of weekday divided 7 1, sunday , formatting style applied cells.
now, formula makes little hard work with. i'd have copy-paste lines each time , change line number each line. thought possible make more dynamic leaving out $-symbol (=mod(value($b1);7)=1), reason didn't work me.
what have type in inside value reference b-column in same line?
okay, issue applying condition on range on wrong active cell.
an active cell cell less blue in selected region; instance, in picture below, active cell a1:
and if active cell, able use formula:
=mod(value($b1);7)=1
there's simpler formula though:
=weekday($b1)=1
this means if active cell a32 or h32 in picture, formula wouldn't have worked, because condition formatting being applied wrong cell!
Comments
Post a Comment