A
aw
Dear all,
I have a formula to sum QTY for 2 criteria [that is product = apple (column
AL) & Vendor = ABC Company (column R)].
=SUMPRODUCT(--($AL$5:$AL211="apple"),--($R$5:$R211=â€ABC Companyâ€),$U5:$U211)
It works great. However after I rewrite the formula by using the range name
(aim to simplify my formula) , it finds error. just replace the range by
range_name i.e.
=SUMPRODUCT(--(my_product="apple"),--(my_vendor=â€ABC Companyâ€),my_QTY)
Remark :
$AL$5:$AL211 = column of “product†= range named “my_productâ€
$R$5:$R211 = column of “vendor†= range named “my_vendorâ€
$U5:$U211 = column of “QTY†= range named “my_QTYâ€
Could anyone can help in this case.
Also, can it be re-writed in simply way by creating user-defined function
under VB?!
Thx a lot!!
I have a formula to sum QTY for 2 criteria [that is product = apple (column
AL) & Vendor = ABC Company (column R)].
=SUMPRODUCT(--($AL$5:$AL211="apple"),--($R$5:$R211=â€ABC Companyâ€),$U5:$U211)
It works great. However after I rewrite the formula by using the range name
(aim to simplify my formula) , it finds error. just replace the range by
range_name i.e.
=SUMPRODUCT(--(my_product="apple"),--(my_vendor=â€ABC Companyâ€),my_QTY)
Remark :
$AL$5:$AL211 = column of “product†= range named “my_productâ€
$R$5:$R211 = column of “vendor†= range named “my_vendorâ€
$U5:$U211 = column of “QTY†= range named “my_QTYâ€
Could anyone can help in this case.
Also, can it be re-writed in simply way by creating user-defined function
under VB?!
Thx a lot!!