fayez_MrExcel
Active Member
- Joined
- Oct 29, 2005
- Messages
- 437
- Office Version
- 365
- Platform
- Windows
I have a table where i want to count records with multiple criteria having multiple curly brackets, but it seems it is not calculating correctly. In below table, im expecting the result count as 4, but the countifs is giving me 1 only and sumproduct is returning #N/A
CopyofTerminatedEmployments-Component1 (4).csv | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | ||||||||||
2 | Type | Item | Cart | Formula Used | Result | |||||
3 | Office | Pen | Box 1 | COUNTIFS | 1 | |||||
4 | Kitchen | Fork | Box 2 | SUMPRODUCT | #N/A | |||||
5 | Office | Monitor | Box 1 | |||||||
6 | Garden | Pot | Box 1 | |||||||
7 | Kitchen | Knife | Box 2 | |||||||
8 | Office | Monitor | Box 3 | |||||||
9 | Kitchen | Knife | Box 1 | |||||||
10 | Kitchen | Spoon | Box 3 | |||||||
11 | Office | Pencil | Box 2 | |||||||
12 | Kitchen | Plate | Box 1 | |||||||
13 | Garden | Shovel | Box2 | |||||||
14 | ||||||||||
15 | ||||||||||
Sheet3 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G3 | G3 | =SUM(COUNTIFS($B$3:$B$13,{"Office","Kitchen"},$C$3:$C$13,{"Pen","Monitor","Knife"},$D$3:$D$13,{"Box 1","Box 2"})) |
G4 | G4 | =SUMPRODUCT(($B$3:$B$13={"Office","Kitchen"})*($C$3:$C$13={"Pen","Monitor","Knife"})*($D$3:$D$13={"Box 1","Box 2"})) |