SumProduct help Multiple String Criteria

Kemidan2014

Board Regular
Joined
Apr 4, 2022
Messages
229
Office Version
  1. 365
Platform
  1. Windows
I am working on an export sheet for Access Query export so that i can graph some data. (access graphs can not handle what is needed)
I am working on the sheet in that holding all the formula tables to count for the graphs i need to produce.
I am stuck on the last table.

This table Columns which are Product GROUPS (meaning there can be anywhere between 1 and 5 part numbers that fall into that group.
The rows are Reasons for flow out. everything is text strings that i need to count up combinations of Part numbers & reason

Obviosly where i have 1 part number in a group i do a simple countifs and it adds up fine. Where i am losing my mind is where in the column that has up to 5 part numbers i typed out the part numbers above the group name in individual cells. I cant figure out how to get sumproduct to work correctly OR countifs, when i used countifs it always = zero which is not correct.

The table - Row 98 is simply my header row for the graph. i need to produce a stacked bar graph. it you look at column H youll see its not adding up right i should only have 1 under that column in Mis Sort row rest should be zeros but i have a 5 and some other numbers.

ComplaintMetricsQuery.xlsx
ABCDEFGHIJKLMNOPQ
93881 LH Filler Cap AssyCVT FSV
94878 LH CHC Camry2.5 Heater FSV
95881 LH CHC127 PST2.0 Heater FSV
96881 TCC878 LH CHC878 LH PST947 PST103 TCC No 2115 TCC No 2115 SuctionAEI FSV152 TCC No 2
97Why Ship by Part Model878 TCC878 RH CHC878 RH PST946 TCC No. 1946 OP946 PST103 TCC No 1115 TCC No 1115 WP ASATF FSV152 TCC No 1
98GR TCCGR CHC881 FCGR PSTTNGA TCCTNGA OPTNGA PST103 TCC115 TCC115 OP115 WP136 PSTFSV152 TCC152 OPTNGA OCV
994-Evils0000000000000000
100Missed VI0100002000000000
101VI NG0000000000000000
102SWI Not Followed0000000000000000
103SWI NG0000000000000000
104Poka-Yoke Malf0000000000000000
105No check in place0000000000000000
106Mis-Sort0000005100000000
107NTF0000000000000000
108Cannot detect0000002001000000
Data
Cell Formulas
RangeFormula
B99:B108,E99:E108,I99:J108,L99:L108,O99:O108B99=SUMPRODUCT(ISNUMBER(SEARCH(B$97,ComplaintMetricsQuery!$K:$K))*ISNUMBER(SEARCH(Data!$A99,ComplaintMetricsQuery!$H:$H))+ISNUMBER(SEARCH(B$96,ComplaintMetricsQuery!$K:$K))*ISNUMBER(SEARCH(Data!$A99,ComplaintMetricsQuery!$H:$H)))
C99:C108,H100:H108,N99:N108C99=SUMPRODUCT(ISNUMBER(SEARCH(C$97,ComplaintMetricsQuery!$K:$K))*ISNUMBER(SEARCH(Data!$A99,ComplaintMetricsQuery!$H:$H))+ISNUMBER(SEARCH(C$96,ComplaintMetricsQuery!$K:$K))*ISNUMBER(SEARCH(Data!$A99,ComplaintMetricsQuery!$H:$H))+ISNUMBER(SEARCH(C$95,ComplaintMetricsQuery!$K:$K))*ISNUMBER(SEARCH(Data!$A99,ComplaintMetricsQuery!$H:$H))+ISNUMBER(SEARCH(C$94,ComplaintMetricsQuery!$K:$K))*ISNUMBER(SEARCH(Data!$A99,ComplaintMetricsQuery!$H:$H))+ISNUMBER(SEARCH(C$93,ComplaintMetricsQuery!$K:$K))*ISNUMBER(SEARCH(Data!$A99,ComplaintMetricsQuery!$H:$H)))
D99:D108,K99:K108,M99:M108,P99:Q108D99=COUNTIFS(ComplaintMetricsQuery!$K:$K,Data!D$98,ComplaintMetricsQuery!$H:$H,Data!$A99)
F99:G108F99=COUNTIFS(ComplaintMetricsQuery!$K:$K,Data!F$97,ComplaintMetricsQuery!$H:$H,Data!$A99)
H99H99=SUMPRODUCT(ISNUMBER(SEARCH(H$97,ComplaintMetricsQuery!$K:$K))*ISNUMBER(SEARCH(Data!$A99,ComplaintMetricsQuery!$H:$H))+ISNUMBER(SEARCH(H$96,ComplaintMetricsQuery!$K:$K))*ISNUMBER(SEARCH(Data!$A99,ComplaintMetricsQuery!$H:$H))+ISNUMBER(SEARCH(H$95,ComplaintMetricsQuery!$K:$K))*ISNUMBER(SEARCH(Data!$A99,ComplaintMetricsQuery!$H:$H)))



The source
DocTypeSupplierCodeOfficialIssuanceDatePartTypeNAMCQtyWhyMakeWhyShipDefectTypeProcessTypeAisinName
QPR0101-62/3/2023OPTMMAL0Design NG4-EvilsDamageAS984 OP
QPR0101-61/20/2023OPTMMWV1Chg Pt Not ControlledCannot detectFunctionAS115 OP
QPR0101-62/16/2023CHCTMMK-PWT0Process Design NGMissed VIFitRSN-AS878 RH CHC
QPR0101-62/14/2023PSTTMMWV0Equipment NGMis-SortDamagePST-MA947 PST
QPR0101-62/10/2023TCCTMMAL0Human ErrorMis-SortDimensionMA103 TCC No 1
 
Hazaah it works! So all i did was just Take the ranges and expand them to do 2-100 to cover us for 1 years worth of time.

Thank you very much sir.
 
Upvote 0

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,223,155
Messages
6,170,403
Members
452,325
Latest member
BlahQz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top