Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.newusers
|
|||
|
|||
Querying multiple Product Codes in one field using SUMPRODUCT()
Hi All,
I have a field named Product_Code in my database. Have another field called country_code, and a last one named Shipment_Amt$. My draft formula is: =sumproduct(--(Product_code=B15), --(Country_code=$C$2)) How do i perfect my sumproduct formula to extract out multiple product codes, look for a particular country code and sum up all the shipment amt? Thanks... |
#2
Posted to microsoft.public.excel.newusers
|
|||
|
|||
Querying multiple Product Codes in one field using SUMPRODUCT()
try
=sumproduct(--(Product_code=B15), --(Country_code={$C$2,$c$5}),shipmentamt) -- Don Guillett SalesAid Software "Tan" wrote in message ... Hi All, I have a field named Product_Code in my database. Have another field called country_code, and a last one named Shipment_Amt$. My draft formula is: =sumproduct(--(Product_code=B15), --(Country_code=$C$2)) How do i perfect my sumproduct formula to extract out multiple product codes, look for a particular country code and sum up all the shipment amt? Thanks... |
#3
Posted to microsoft.public.excel.newusers
|
|||
|
|||
Querying multiple Product Codes in one field using SUMPRODUCT()
Array constants *don't* allow cell references.
Say the product codes you're looking for are entered in B15 to B20. Try this *array* formula: =SUMPRODUCT((Product_Code=TRANSPOSE(INDIRECT("B15: B20")))*(Country_Code=C2)* Shipment_Amts) -- Array formulas must be entered with CSE, <Ctrl <Shift <Enter, instead of the regular <Enter, which will *automatically* enclose the formula in curly brackets, which *cannot* be done manually. You *must also* use CSE when revising the formula. -- HTH, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "Don Guillett" wrote in message ... try =sumproduct(--(Product_code=B15), --(Country_code={$C$2,$c$5}),shipmentamt) -- Don Guillett SalesAid Software "Tan" wrote in message ... Hi All, I have a field named Product_Code in my database. Have another field called country_code, and a last one named Shipment_Amt$. My draft formula is: =sumproduct(--(Product_code=B15), --(Country_code=$C$2)) How do i perfect my sumproduct formula to extract out multiple product codes, look for a particular country code and sum up all the shipment amt? Thanks... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
I have two columns (A) and (G) that have like product codes however | Excel Worksheet Functions | |||
sum and product, but not sumproduct? | Excel Worksheet Functions | |||
Excel 2003 list of field codes for footers? | Excel Discussion (Misc queries) | |||
Using PRODUCT in Calculated Field | Excel Discussion (Misc queries) | |||
Word field codes in Excel data file Includetext | Excel Discussion (Misc queries) |