=SOMME.SI.ENS($B$2:$B$7;$C$2:$C$7;"<="&H$5;$D$2:$D$7;">="&H$5)+NB.VIDE($D$2:$D$7)
=LET(qte;INDIRECT("t_Qte[qté]");entree;INDIRECT("t_Qte[date entrée]");sortie;INDIRECT("t_Qte[date de sortie]");SOMMEPROD(qte*(entree<=H$5)*((sortie>=H$5)+(sortie=""))))