Hi,
I hope one of you Excel legends has a solution to my issue.
We have a report that has a column of data that looks like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Customers[/TD]
[/TR]
[TR]
[TD]BOB, DAV, HAR, JOH, PAU, PET, PHI, PRA, RYA[/TD]
[/TR]
[TR]
[TD]BOB, HAR, PAU, PHI, PRA[/TD]
[/TR]
[TR]
[TD]DAV, JOH, PET, PRA, RYA[/TD]
[/TR]
[TR]
[TD]DAV, HAR, JOH[/TD]
[/TR]
[TR]
[TD]BOB, DAV, PET[/TD]
[/TR]
</tbody>[/TABLE]
We count how many times each abbreviation comes up per row. I've been using =COUNTIF(range, "*BOB*") which would return 3.
What we need is to count how many times EITHER PAU, PET, PHI or PRA appear. So in the above example, we would need it to return a value of 4.
We're currently getting the total of all the times each one appears so PAU (2) + PET (3) + PHI (2) + PRA (3) = 8. The fact that I'm using * to search within the cell is making it hard to use SUBPRODUCT or DCOUNTA, or a ridiculous amount of COUNTIFS formulas.
Is there a way we can return the amount of unique rows containing either of the four abbreviations mentioned?
I hope one of you Excel legends has a solution to my issue.
We have a report that has a column of data that looks like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Customers[/TD]
[/TR]
[TR]
[TD]BOB, DAV, HAR, JOH, PAU, PET, PHI, PRA, RYA[/TD]
[/TR]
[TR]
[TD]BOB, HAR, PAU, PHI, PRA[/TD]
[/TR]
[TR]
[TD]DAV, JOH, PET, PRA, RYA[/TD]
[/TR]
[TR]
[TD]DAV, HAR, JOH[/TD]
[/TR]
[TR]
[TD]BOB, DAV, PET[/TD]
[/TR]
</tbody>[/TABLE]
We count how many times each abbreviation comes up per row. I've been using =COUNTIF(range, "*BOB*") which would return 3.
What we need is to count how many times EITHER PAU, PET, PHI or PRA appear. So in the above example, we would need it to return a value of 4.
We're currently getting the total of all the times each one appears so PAU (2) + PET (3) + PHI (2) + PRA (3) = 8. The fact that I'm using * to search within the cell is making it hard to use SUBPRODUCT or DCOUNTA, or a ridiculous amount of COUNTIFS formulas.
Is there a way we can return the amount of unique rows containing either of the four abbreviations mentioned?