Try this...

Use cells to hold the date criteria.

A1 = start date
B1 = end date

=SUMIFS(BAR!$K$1:$K$9022,BAR!$A$1:$A$9022,V$2,BAR!$AK$1:$AK$9022,$A58,BAR!$G$1:$G$9022,">="&A1,BAR!$H$1:$H$9022,"<="&B1)