Tigerexcel
Active Member
- Joined
- Mar 6, 2020
- Messages
- 493
- Office Version
- 365
- 2019
- Platform
- Windows
Book5 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | Should return | Criteria | ||||||||
2 | ABC1000 N | ABC2000 P | ABC2100 C | ABC1020 N | 4 | 2 | ABC1* | |||
3 | ABC1000 N | ABC2000 P | ABC2100 DEF | ABC1020 P | 4 | 3 | *DEF | |||
4 | ABC1000 D | ABC2000 P | ABC2100 DEF | ABC2020 DEF | 3 | 3 | *N | |||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E2:E4 | E2 | =SUM(COUNTIF(A2:D2,$H$2:$H$4)) |
Trying to get this formula to count relevant cells according to the criteria set in column H. I've bolded the cells that should be counted. My formula appears to work in only one of the 3 ranges ie row 4. I suspect there's double counting going on. Can my formula be tweaked to work right?
Last edited: