Bonjour a tous
j essaye de comprendre une formule excel pour la reproduire avec SQL.
Pouvez vous m'aider a la comprendre?
=SUMPRODUCT(
('feuil1'!$A$2:$A$50000="Auto")*
('feuil1'!$C$2:$C$50000=" ")*
('feuil1'!$F$2:$F$50000=$C28)*
(
(TRIM('feuil1'!$H$2:$H$50000)="NEWFOUNDLAND")+
(TRIM('feuil1'!$H$2:$H$50000)="NOVA SCOTIA")+
(TRIM('feuil1'!$H$2:$H$50000)="NEW BRUNSWICK")+
(TRIM('feuil1'!$H$2:$H$50000)="PRINCE EDWARD ISLAND")
)*
('feuil1'!$O$2:$O$50000>=table!$M$5)
*
(
('feuil1'!$O$2:$O$50000<=table!$M$4)*('feuil1'!$Q$2:$Q$50000>=table!$M$5)
+
(('feuil1'!$O$2:$O$50000>table!$M$4)*('feuil1'!$Q$2:$Q$50000<=table!$M$4)*('feuil1'!$Q$2:$Q$50000>=table!$M$5))
)
)
Partager