BradleyS
Active Member
- Joined
- Oct 28, 2006
- Messages
- 347
- Office Version
- 2010
- Platform
- Windows
I have the following formula: =SUMPRODUCT(--(COUNTIFS(DATAID,A2,CODE,"745D4*")))
This works OK, but the CODE needs to be case sensitive, so that it doesn't count 745d4
The criteria is a list of codes and ids on another sheet. There are hundreds of different codes
DATAID is the DNR for the IDs, and CODE is the DNR for the Codes
On another sheet I need to count up the codes, for each ID
I also need to include multiple codes in a count which I use: =SUMPRODUCT(--(COUNTIFS(DATAID,A2,CODE,{"745D4*","22a*"})))
However, this also needs to be case sensative, so that 22A is not counted.
How do I set the formulas so that they only count the correct case text?
This works OK, but the CODE needs to be case sensitive, so that it doesn't count 745d4
The criteria is a list of codes and ids on another sheet. There are hundreds of different codes
DATAID is the DNR for the IDs, and CODE is the DNR for the Codes
ID | Code |
1 | 745d400 |
1 | 745D400 |
1 | 745D411 |
2 | 42K..00 |
On another sheet I need to count up the codes, for each ID
id | Count of 745D4 | Count of 42K |
1 | 2 | 0 |
2 | 0 | 1 |
I also need to include multiple codes in a count which I use: =SUMPRODUCT(--(COUNTIFS(DATAID,A2,CODE,{"745D4*","22a*"})))
However, this also needs to be case sensative, so that 22A is not counted.
How do I set the formulas so that they only count the correct case text?