=subtotal(6,IF((Sheet 1'!$B$2:$B$3761=$A9)*('Sheet 1'!$H$2:$H$3761=1)*('Sheet 1'!$J$2:$J$3761=1),'Sheet 1'!M$2:M$3761))) and pressing ctrl+shift+enter.
The problem is whenever the if condition results in a FALSE, the array stores a FALSE and the product is resulting in #Value. Can anyone help...