Hi @Muhammad Asif ,
You can try to create a start date and end date, then enter the formula:
=SUMPRODUCT(--($A$1:$A$5>=$H$1),--($A$1:$A$5<=$H$2),--($B$1:$B$5=B1))
Just checking in to see if the information was helpful. Please let us know if you would like further assistance.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.