Your date criterias:

...($L$2:$L$25=$AN$3)*($L$2:$L$25=$AO$3)...

should be:

...($L$2:$L$25>=$AN$3)*($L$2:$L$25<=$AO$3)...