Index - CountIf - Match help needed

david40836

New Member
Joined
Jun 30, 2022
Messages
2
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hello.
Been trying to get a simple formula to work which seems to not be so simple. I have a tab for data collection which is required to record inspections. I need to be able to sum up the number of completed inspections by a part number and manufacturer at any one time so I attempted to make a formula to match multiple variables first then to return the number of found entries but cannot seem to get it to work.
Formula failed so dont have the actual inputs but the below is the basic formula I used.
=INDEX(C3:E11,MATCH(H2,B3:B11,0),MATCH(H3,C2:E2,0))
I placed it on sheet 2 and told it to look at 2 variables on sheet 2 using sheet 1 data. Attached excel is an example of the overall format minus maybe 30 additional columns
Sheet 1
Sample Data.xlsx
AB
1PartVendor
2AMT15SONIC DEVICES ELECTRONICS CO., LTD.
3AT10ADAEHO/SHINSUNG COMMUNICATIONS CO.
4AT10AELYTONE ELECTRONIC CO.,LTD.
5AT35ADAEHO/SHINSUNG COMMUNICATIONS CO.
6AT35AELYTONE ELECTRONIC CO.,LTD.
7BAL2SHANGZHOU NUVO (SAMKO) ELECTRONICS
8C10INGOT CORPORATION
9C35INGOT CORPORATION
10C35SONIC DEVICES ELECTRONICS CO., LTD.
11CK10BECKER ELECTRONICS
12CK10INGOT CORPORATION
13CK10BBECKER ELECTRONICS
14CK10BINGOT CORPORATION
15CK10WBECKER ELECTRONICS
16CK10WINGOT CORPORATION
17HFCS1LUMIAUDIO ENTERPRISES LTD.
18HFCS1SONIC DEVICES ELECTRONICS CO., LTD.
19HFCS1BLUMIAUDIO ENTERPRISES LTD.
20HFCS1BSONIC DEVICES ELECTRONICS CO., LTD.
21HFCS1LPLUMIAUDIO ENTERPRISES LTD.
22HFCS1LPSONIC DEVICES ELECTRONICS CO., LTD.
23HFSF1LUMIAUDIO ENTERPRISES LTD.
24HFSF1SONIC DEVICES ELECTRONICS CO., LTD.
25M300DAEHO/SHINSUNG COMMUNICATIONS CO.
26M300HANGZHOU NUVO (SAMKO) ELECTRONICS
27M450DAEHO/SHINSUNG COMMUNICATIONS CO.
28M450HANGZHOU NUVO (SAMKO) ELECTRONICS
29M600DAEHO/SHINSUNG COMMUNICATIONS CO.
30M600HANGZHOU NUVO (SAMKO) ELECTRONICS
31MB8TSLSONIC DEVICES ELECTRONICS CO., LTD.
32MB8TSLVRSONIC DEVICES ELECTRONICS CO., LTD.
33MB8TSQSONIC DEVICES ELECTRONICS CO., LTD.
34MB8TSQVRSONIC DEVICES ELECTRONICS CO., LTD.
35MC2626BSONIC DEVICES ELECTRONICS CO., LTD.
36MPS1BLUMIAUDIO ENTERPRISES LTD.
37MPS1BSONIC DEVICES ELECTRONICS CO., LTD.
38NQ-E7010HANGZHOU NUVO (SAMKO) ELECTRONICS
39NQ-E7010INGOT CORPORATION
40NQ-E7030HANGZHOU NUVO (SAMKO) ELECTRONICS
41NQ-E7030INGOT CORPORATION
42NQ-S1810CT-G2HANGZHOU NUVO (SAMKO) ELECTRONICS
43NQ-SYSCTRLHANGZHOU NUVO (SAMKO) ELECTRONICS
44NQ-SYSCTRLINGOT CORPORATION
45OCS1LUMIAUDIO ENTERPRISES LTD.
46OCS1SONIC DEVICES ELECTRONICS CO., LTD.
47OPS1WSONIC DEVICES ELECTRONICS CO., LTD.
48PCMPS2YKD TEC LIMITED
49PRS40CYKD TEC LIMITED
50SBA225DAEHO/SHINSUNG COMMUNICATIONS CO.
51SBA225SONIC DEVICES ELECTRONICS CO., LTD.
52SCR25ADAEHO/SHINSUNG COMMUNICATIONS CO.
53SCR25ASONIC DEVICES ELECTRONICS CO., LTD.
54SEC4TLUMIAUDIO ENTERPRISES LTD.
55SEC4TSONIC DEVICES ELECTRONICS CO., LTD.
56TPU250HANGZHOU NUVO (SAMKO) ELECTRONICS
57TPU60BDAEHO/SHINSUNG COMMUNICATIONS CO.
58TPU60BHANGZHOU NUVO (SAMKO) ELECTRONICS
59V100DAEHO/SHINSUNG COMMUNICATIONS CO.
60V100HANGZHOU NUVO (SAMKO) ELECTRONICS
61V150DAEHO/SHINSUNG COMMUNICATIONS CO.
62V150HANGZHOU NUVO (SAMKO) ELECTRONICS
63V250DAEHO/SHINSUNG COMMUNICATIONS CO.
64V250HANGZHOU NUVO (SAMKO) ELECTRONICS
65V35DAEHO/SHINSUNG COMMUNICATIONS CO.
66V35HANGZHOU NUVO (SAMKO) ELECTRONICS
67V60HANGZHOU NUVO (SAMKO) ELECTRONICS
68VMIXDAEHO/SHINSUNG COMMUNICATIONS CO.
69VMIXHANGZHOU NUVO (SAMKO) ELECTRONICS
70WB1EZSHANGHAI SILVER FLUTE SOUND CO LTD
71WB1EZSONIC DEVICES ELECTRONICS CO., LTD.
72WBS810T725SONIC DEVICES ELECTRONICS CO., LTD.
73WBS8T725SONIC DEVICES ELECTRONICS CO., LTD.
74WBS8T725BRSONIC DEVICES ELECTRONICS CO., LTD.
75WBS8T725BRVSONIC DEVICES ELECTRONICS CO., LTD.
76WMT1ADAEHO/SHINSUNG COMMUNICATIONS CO.
77WMT1AELYTONE ELECTRONIC CO.,LTD.
78WMT1ASDAEHO/SHINSUNG COMMUNICATIONS CO.
79WMT1ASELYTONE ELECTRONIC CO.,LTD.
80X450DAEHO/SHINSUNG COMMUNICATIONS CO.
81X450HANGZHOU NUVO (SAMKO) ELECTRONICS
82X600DAEHO/SHINSUNG COMMUNICATIONS CO.
83X600HANGZHOU NUVO (SAMKO) ELECTRONICS
84ASWB1SONIC DEVICES ELECTRONICS CO., LTD.
85ATP10DAEHO/SHINSUNG COMMUNICATIONS CO.
86ATP10ELYTONE ELECTRONIC CO.,LTD.
87BBFBABINEC SHEET METAL
88BBFQUAM-NICHOLS COMPANY
89C99SONIC DEVICES ELECTRONICS CO., LTD.
90C100INGOT CORPORATION
91C60INGOT CORPORATION
92C60SONIC DEVICES ELECTRONICS CO., LTD.
93FG15BLUMIAUDIO ENTERPRISES LTD.
94FG15WLUMIAUDIO ENTERPRISES LTD.
95HFCS1LPBLUMIAUDIO ENTERPRISES LTD.
96HFCS1LPBSONIC DEVICES ELECTRONICS CO., LTD.
97LB4BLUMIAUDIO ENTERPRISES LTD.
98LB4TMLUMIAUDIO ENTERPRISES LTD.
99LB4TWLUMIAUDIO ENTERPRISES LTD.
100LB4WLUMIAUDIO ENTERPRISES LTD.
101LMM1SINGOT CORPORATION
102MGN19AAV-LEADER CORPORATION
103MPS1WLUMIAUDIO ENTERPRISES LTD.
104MPS2BLUMIAUDIO ENTERPRISES LTD.
105MPS2WLUMIAUDIO ENTERPRISES LTD.
106NR100DAEHO/SHINSUNG COMMUNICATIONS CO.
107OCS1BLUMIAUDIO ENTERPRISES LTD.
108OPS1BLUMIAUDIO ENTERPRISES LTD.
109OPS1BSONIC DEVICES ELECTRONICS CO., LTD.
110S4TBLUMIAUDIO ENTERPRISES LTD.
111S4TWLUMIAUDIO ENTERPRISES LTD.
112S5TBLUMIAUDIO ENTERPRISES LTD.
113S5TWLUMIAUDIO ENTERPRISES LTD.
114TPU100BDAEHO/SHINSUNG COMMUNICATIONS CO.
115TPU100BHANGZHOU NUVO (SAMKO) ELECTRONICS
116TPU15ADAEHO/SHINSUNG COMMUNICATIONS CO.
117TPU15AHANGZHOU NUVO (SAMKO) ELECTRONICS
118TPU35BDAEHO/SHINSUNG COMMUNICATIONS CO.
119TPU35BHANGZHOU NUVO (SAMKO) ELECTRONICS
120VM1WLUMIAUDIO ENTERPRISES LTD.
121VM2BLUMIAUDIO ENTERPRISES LTD.
122VM2WLUMIAUDIO ENTERPRISES LTD.
123WB8SHANGHAI SILVER FLUTE SOUND CO LTD
124WB8SONIC DEVICES ELECTRONICS CO., LTD.
125WBS8T725VSONIC DEVICES ELECTRONICS CO., LTD.
126X300DAEHO/SHINSUNG COMMUNICATIONS CO.
127X300HANGZHOU NUVO (SAMKO) ELECTRONICS
128C10SONIC DEVICES ELECTRONICS CO., LTD.
data


Sheet 2
Sample Data.xlsx
ABCDEFGHI
1
2
3AMT15SONIC DEVICES ELECTRONICS CO., LTD.
4
5Quantity of InspectionsFormula<-------------- This should return 1 since there is only 1 entry in the data tab
6
7
table
Cells with Data Validation
CellAllowCriteria
A3List=data!$A$2:$A$128
B3List=data!$B$2:$B$128
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Why don't you simply use COUNTIFS

Sheet1

Book3
AB
1PartVendor
2AMT15SONIC DEVICES ELECTRONICS CO., LTD.
3AT10ADAEHO/SHINSUNG COMMUNICATIONS CO.
4AT10AELYTONE ELECTRONIC CO.,LTD.
5AT35ADAEHO/SHINSUNG COMMUNICATIONS CO.
6AT35AELYTONE ELECTRONIC CO.,LTD.
7BAL2SHANGZHOU NUVO (SAMKO) ELECTRONICS
8C10INGOT CORPORATION
9C35INGOT CORPORATION
10C35SONIC DEVICES ELECTRONICS CO., LTD.
11CK10BECKER ELECTRONICS
12CK10INGOT CORPORATION
13CK10BBECKER ELECTRONICS
14CK10BINGOT CORPORATION
15CK10WBECKER ELECTRONICS
16CK10WINGOT CORPORATION
17HFCS1LUMIAUDIO ENTERPRISES LTD.
18HFCS1SONIC DEVICES ELECTRONICS CO., LTD.
19HFCS1BLUMIAUDIO ENTERPRISES LTD.
20HFCS1BSONIC DEVICES ELECTRONICS CO., LTD.
21HFCS1LPLUMIAUDIO ENTERPRISES LTD.
22HFCS1LPSONIC DEVICES ELECTRONICS CO., LTD.
23HFSF1LUMIAUDIO ENTERPRISES LTD.
24HFSF1SONIC DEVICES ELECTRONICS CO., LTD.
25M300DAEHO/SHINSUNG COMMUNICATIONS CO.
26M300HANGZHOU NUVO (SAMKO) ELECTRONICS
27M450DAEHO/SHINSUNG COMMUNICATIONS CO.
28M450HANGZHOU NUVO (SAMKO) ELECTRONICS
29M600DAEHO/SHINSUNG COMMUNICATIONS CO.
30M600HANGZHOU NUVO (SAMKO) ELECTRONICS
31MB8TSLSONIC DEVICES ELECTRONICS CO., LTD.
32MB8TSLVRSONIC DEVICES ELECTRONICS CO., LTD.
33MB8TSQSONIC DEVICES ELECTRONICS CO., LTD.
34MB8TSQVRSONIC DEVICES ELECTRONICS CO., LTD.
35MC2626BSONIC DEVICES ELECTRONICS CO., LTD.
36MPS1BLUMIAUDIO ENTERPRISES LTD.
37MPS1BSONIC DEVICES ELECTRONICS CO., LTD.
38NQ-E7010HANGZHOU NUVO (SAMKO) ELECTRONICS
39NQ-E7010INGOT CORPORATION
40NQ-E7030HANGZHOU NUVO (SAMKO) ELECTRONICS
41NQ-E7030INGOT CORPORATION
42NQ-S1810CT-G2HANGZHOU NUVO (SAMKO) ELECTRONICS
43NQ-SYSCTRLHANGZHOU NUVO (SAMKO) ELECTRONICS
44NQ-SYSCTRLINGOT CORPORATION
45OCS1LUMIAUDIO ENTERPRISES LTD.
46OCS1SONIC DEVICES ELECTRONICS CO., LTD.
47OPS1WSONIC DEVICES ELECTRONICS CO., LTD.
48PCMPS2YKD TEC LIMITED
49PRS40CYKD TEC LIMITED
50SBA225DAEHO/SHINSUNG COMMUNICATIONS CO.
51SBA225SONIC DEVICES ELECTRONICS CO., LTD.
52SCR25ADAEHO/SHINSUNG COMMUNICATIONS CO.
53SCR25ASONIC DEVICES ELECTRONICS CO., LTD.
54SEC4TLUMIAUDIO ENTERPRISES LTD.
55SEC4TSONIC DEVICES ELECTRONICS CO., LTD.
56TPU250HANGZHOU NUVO (SAMKO) ELECTRONICS
57TPU60BDAEHO/SHINSUNG COMMUNICATIONS CO.
58TPU60BHANGZHOU NUVO (SAMKO) ELECTRONICS
59V100DAEHO/SHINSUNG COMMUNICATIONS CO.
60V100HANGZHOU NUVO (SAMKO) ELECTRONICS
61V150DAEHO/SHINSUNG COMMUNICATIONS CO.
62V150HANGZHOU NUVO (SAMKO) ELECTRONICS
63V250DAEHO/SHINSUNG COMMUNICATIONS CO.
64V250HANGZHOU NUVO (SAMKO) ELECTRONICS
65V35DAEHO/SHINSUNG COMMUNICATIONS CO.
66V35HANGZHOU NUVO (SAMKO) ELECTRONICS
67V60HANGZHOU NUVO (SAMKO) ELECTRONICS
68VMIXDAEHO/SHINSUNG COMMUNICATIONS CO.
69VMIXHANGZHOU NUVO (SAMKO) ELECTRONICS
70WB1EZSHANGHAI SILVER FLUTE SOUND CO LTD
71WB1EZSONIC DEVICES ELECTRONICS CO., LTD.
72WBS810T725SONIC DEVICES ELECTRONICS CO., LTD.
73WBS8T725SONIC DEVICES ELECTRONICS CO., LTD.
74WBS8T725BRSONIC DEVICES ELECTRONICS CO., LTD.
75WBS8T725BRVSONIC DEVICES ELECTRONICS CO., LTD.
76WMT1ADAEHO/SHINSUNG COMMUNICATIONS CO.
77WMT1AELYTONE ELECTRONIC CO.,LTD.
78WMT1ASDAEHO/SHINSUNG COMMUNICATIONS CO.
79WMT1ASELYTONE ELECTRONIC CO.,LTD.
80X450DAEHO/SHINSUNG COMMUNICATIONS CO.
81X450HANGZHOU NUVO (SAMKO) ELECTRONICS
82X600DAEHO/SHINSUNG COMMUNICATIONS CO.
83X600HANGZHOU NUVO (SAMKO) ELECTRONICS
84ASWB1SONIC DEVICES ELECTRONICS CO., LTD.
85ATP10DAEHO/SHINSUNG COMMUNICATIONS CO.
86ATP10ELYTONE ELECTRONIC CO.,LTD.
87BBFBABINEC SHEET METAL
88BBFQUAM-NICHOLS COMPANY
89C99SONIC DEVICES ELECTRONICS CO., LTD.
90C100INGOT CORPORATION
91C60INGOT CORPORATION
92C60SONIC DEVICES ELECTRONICS CO., LTD.
93FG15BLUMIAUDIO ENTERPRISES LTD.
94FG15WLUMIAUDIO ENTERPRISES LTD.
95HFCS1LPBLUMIAUDIO ENTERPRISES LTD.
96HFCS1LPBSONIC DEVICES ELECTRONICS CO., LTD.
97LB4BLUMIAUDIO ENTERPRISES LTD.
98LB4TMLUMIAUDIO ENTERPRISES LTD.
99LB4TWLUMIAUDIO ENTERPRISES LTD.
100LB4WLUMIAUDIO ENTERPRISES LTD.
101LMM1SINGOT CORPORATION
102MGN19AAV-LEADER CORPORATION
103MPS1WLUMIAUDIO ENTERPRISES LTD.
104MPS2BLUMIAUDIO ENTERPRISES LTD.
105MPS2WLUMIAUDIO ENTERPRISES LTD.
106NR100DAEHO/SHINSUNG COMMUNICATIONS CO.
107OCS1BLUMIAUDIO ENTERPRISES LTD.
108OPS1BLUMIAUDIO ENTERPRISES LTD.
109OPS1BSONIC DEVICES ELECTRONICS CO., LTD.
110S4TBLUMIAUDIO ENTERPRISES LTD.
111S4TWLUMIAUDIO ENTERPRISES LTD.
112S5TBLUMIAUDIO ENTERPRISES LTD.
113S5TWLUMIAUDIO ENTERPRISES LTD.
114TPU100BDAEHO/SHINSUNG COMMUNICATIONS CO.
115TPU100BHANGZHOU NUVO (SAMKO) ELECTRONICS
116TPU15ADAEHO/SHINSUNG COMMUNICATIONS CO.
117TPU15AHANGZHOU NUVO (SAMKO) ELECTRONICS
118TPU35BDAEHO/SHINSUNG COMMUNICATIONS CO.
119TPU35BHANGZHOU NUVO (SAMKO) ELECTRONICS
120VM1WLUMIAUDIO ENTERPRISES LTD.
121VM2BLUMIAUDIO ENTERPRISES LTD.
122VM2WLUMIAUDIO ENTERPRISES LTD.
123WB8SHANGHAI SILVER FLUTE SOUND CO LTD
124WB8SONIC DEVICES ELECTRONICS CO., LTD.
125WBS8T725VSONIC DEVICES ELECTRONICS CO., LTD.
126X300DAEHO/SHINSUNG COMMUNICATIONS CO.
127X300HANGZHOU NUVO (SAMKO) ELECTRONICS
128C10SONIC DEVICES ELECTRONICS CO., LTD.
Sheet1


Sheet2


Book3
AB
1
2
3AMT15SONIC DEVICES ELECTRONICS CO., LTD.
4
5Quantity of Inspections1
6
Sheet2
Cell Formulas
RangeFormula
B5B5=COUNTIFS(Sheet1!B:B,Sheet2!B3,Sheet1!A:A,Sheet2!A3)
 
Upvote 0
Solution
Oh god.....man im an idiot...lol. Tried to over complicate a very simple task. Thanks for the kick in the head. I got it now and no issues !!!
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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