I need to run a formula to know how long the report takes to complete I try to get the Min and Max with an array but didn't work I don't know if the date format is the problem array used:
=MIN(IF($B$2:$B$6077=$D4,IF(INT($A$2:$A$6077)=E$1,$A$2:$A$6077)))

I know the request was for a formula or macro, but here is a procedure that works. The data in Sheet1 has multiple days for each report that may run at different times, and the span of time from 10/1 thru 10/31 may give wrong results.
We need to first get the min&max DateTime of a given Date, and compute the Minutes that the report took. That is then wrapped in an outer Select that looks for the maxMinutes of any date for each given report.