This is easy to do without a macro and without using a function. INDIRECT
, , 2, "" C , :
, . A2: J100
, ,
=AND($C2="Saturday",A2<>"")
, col C - "", . C2 $, C A2 $
, OR, i.e.
=AND(OR($C2="Saturday",$C2="Sunday"),A2<>"")
.... C
=AND(WEEKDAY($C2,2)>5,$C2<>"",A2<>"")
. CF