Hi friends,
How to write this formula in VBA....
I only want the result not the formula in range H11 to H403.
Regards,
Humayun
How to write this formula in VBA....
=IF(AND($C$1="ALL",$C$2="ALL"),SUMIFS(orders_quantity,orders_po_shipment_date,">="&F$2,orders_po_shipment_date,"<="&F$4,orders_ref,$B11),IF(AND($C$1="ALL",$C$2<>"ALL"),SUMIFS(orders_quantity,orders_supplier,$C$2,orders_po_shipment_date,">="&F$2,orders_po_shipment_date,"<="&F$4,orders_ref,$B11),IF(AND($C$1<>"ALL",$C$2="ALL"),SUMIFS(orders_quantity,orders_customer,$C$1,orders_po_shipment_date,">="&F$2,orders_po_shipment_date,"<="&F$4,orders_ref,$B11),IF(AND($C$1<>"ALL",$C$2<>"ALL"),SUMIFS(orders_quantity,orders_supplier,$C$2,orders_customer,$C$1,orders_po_shipment_date,">="&F$2,orders_po_shipment_date,"<="&F$4,orders_ref,$B11),""))))
I only want the result not the formula in range H11 to H403.
Regards,
Humayun