Boa noite!!
Tente
Sub Formula()
[A1].Formula = "=SUMIFS(AGENDA!C2:C200,AGENDA!B2:B200,B2,AGENDA!A2:A200,"">=""&(TODAY()-MOD(WEEKDAY(TODAY())-WEEKDAY(BA9),7)),AGENDA!A2:A200,""<=""&(TODAY()+MOD(WEEKDAY($BA$9)-WEEKDAY(TODAY())+6,7)))"
End Sub
Att
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel
Postado : 01/02/2015 6:42 pm