INDEX, MATCH, COUNTIF, SUMIF, SUMPRODUCT

Unlucky

Board Regular
Joined
Dec 3, 2014
Messages
58
Office Version
  1. 2016
Platform
  1. Windows
I cannot get the formula to count the number of occurrences with three criteria. I've tried COUNTIFS, SUMIFS, SUMPRODUCT, and INDEX & MATCH, but without satisfactory results. The object is to count the number of occurrences each month for DD250 on each program.

This is only a portion of the actual table, but the concept is discernable.



PRACTICE TABLES.xlsx
ABCDEFGHIJKLMNOP
1LAST MONTHTuesday, March 1, 2022LAST MONTHMarchDATEDATEPROGRAMJOB
2THIS MONTHWednesday, April 20, 2022THIS MONTHAprilJan-22Jan-22BFVDD250
3NEXT MONTHSunday, May 1, 2022NEXT MONTHMayJan-22Jan-22AMPVTop Water Rechecks
4Jan-22Jan-22BFVFORM 2408
5YEARACVAMPVBFVHERCULESPIMMONTHYEARDD250Jan-22Jan-22HERCULESDrive Rechecks
6Jan-202200000Jan202218Jan-22Jan-22BFVDD250
7Feb-202200000Feb2023Jan-22Jan-22PIMDD250
8Mar-202200000Mar2024Jan-22Jan-22ACVDD250
9Apr-202200000Apr2025Jan-22Jan-22PIMSRP/NSRP
10May-202200000May2026Jan-22Jan-22ACVNCR
11Jun-202200000Jun2027Jan-22Jan-22AMPVNCR
12Jul-202200000Jul2028Jan-22Jan-22AMPVNCR
13Aug-202200000Aug2029Feb-22Feb-22PIMDD250
14Sep-202200000Sep2030Feb-22Feb-22AMPVNATO
15Oct-202200000Oct2031Feb-22Feb-22AMPVSteering
16Nov-202200000Nov2032Feb-22Feb-22AMPVFinal
17Dec-202200000Dec2033Feb-22Feb-22BFVTop water
18Jan-2023000002034Mar-22Mar-22PIMDD250
19Feb-2023000002035Mar-22Mar-22ACVDD250
20Mar-2023000002036Mar-22Mar-22PIMDD250
21Apr-2023000002037Apr-22Apr-22PIMSteering
22May-2023000002038May-22May-22PIMRFV
23Jun-202300000May-22May-22PIMRFV
24Jul-202300000May-22May-22AMPVTop Water Rechecks
25Aug-202300000May-22May-22AMPVDrive
26Sep-202300000May-22May-22BFVDD250
27Oct-202300000May-22May-22BFVDD250
28Nov-202300000May-22May-22BFVRoll Off
29Dec-202300000Jul-22Jul-22BFVDD250
30Jul-22Jul-22ACVFinal
31Aug-22Aug-22BFVDD250
32Aug-22Aug-22BFVRFV
33Aug-22Aug-22AMPVSteering
34Aug-22Aug-22ACVGarage ATI
35Sep-22Sep-22AMPVSteering
36Sep-22Sep-22AMPVDrive Rechecks
37Sep-22Sep-22BFVDrive Rechecks
38Sep-22Sep-22ACVGarage ATI
39Sep-22Sep-22PIMShipping 2408-9
40Sep-22Sep-22PIMShipping 2408-9
41Sep-22Sep-22HERCULESSteering & Shifter
42Sep-22Sep-22BFVPackaging
43Sep-22Sep-22BFVDD250
44Oct-22Oct-22BFVPackaging
45Oct-22Oct-22BFVDD250
46Oct-22Oct-22BFVDD250
47Oct-22Oct-22BFVPackaging
48Nov-22Nov-22BFVDD250
49Dec-22Dec-22ACV(CSI) Steering torque
50Dec-22Dec-22BFVDD250
51Dec-22Dec-22AMPVDD250
52Dec-22Dec-22PIMCab Final
Sheet1
Cell Formulas
RangeFormula
N2:N52N2=TEXT($M2,"MMM-YY")
C1C1=DATE(YEAR($C$2),MONTH($C$2)-1,1)
C2C2=TODAY()
C3C3=DATE(YEAR($C$2),MONTH($C$2)+1,1)
J1J1=TEXT($C$1,"MMMM")
J2J2=TEXT($C$2,"MMMM")
J3J3=TEXT($C$3,"MMMM")
M3:M12M3='[Quality Workload tracker 2022 v2.xlsx]WLT'!$A3
O3:O52O3='[Quality Workload tracker 2022 v2.xlsx]WLT'!$X3
P52,P49,P47,P44,P32:P42,P30,P28,P21:P25,P14:P17,P9:P12,P3:P5P3='[Quality Workload tracker 2022 v2.xlsx]WLT'!$AB3
A6:A17A6=$H6&"-"&$I$6
B6:F29B6=COUNTIFS($N$2:$N$52,$A6,$O$2:$O$52,B$5,$P$2:$P$52,$K$5)
A18:A29A18=$H6&"-"&$I$7
K6K6=COUNTIF($P$2:$P$52,$K$5)
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
As you have cells that are looking at a different workbook I had to copy values only & your formula worked.
+Fluff 1.xlsm
ABCDEFG
1LAST MONTH01/03/2022
2THIS MONTH20/04/2022
3NEXT MONTH01/05/2022
4
5YEARACVAMPVBFVHERCULESPIM
6Jan-202210201
7Feb-202200001
8Mar-202210002
9Apr-202200000
10May-202200200
11Jun-202200000
12Jul-202200100
13Aug-202200100
14Sep-202200100
15Oct-202200200
16Nov-202200100
17Dec-202201100
18Jan-202300000
19Feb-202300000
20Mar-202300000
21Apr-202300000
22May-202300000
23Jun-202300000
24Jul-202300000
25Aug-202300000
26Sep-202300000
27Oct-202300000
28Nov-202300000
29Dec-202300000
Main
Cell Formulas
RangeFormula
B6:F29B6=COUNTIFS($N$2:$N$52,$A6,$O$2:$O$52,B$5,$P$2:$P$52,$K$5)


Therefore it's probably something to do with the data, or maybe you have circular references somewhere.
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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