Hi ,
Your thread title does not match your explanation , since June 20 is not the maximum date ; if we go by your explanation , then the following formula will work :
=SUMIFS($M$2:$M$26,$L$2:$L$26,">=" & "01-06-2016",$L$2:$L$26,"<=" & "20-06-2016")
If we go by the thread title , then the following formula will work :
=SUMIFS($M$2:$M$26,$L$2:$L$26,">=" & "01-06-2016",$L$2:$L$26,"<=" & MAX($L$2:$L$26))
Narayan