I hope someone can help with this problem I am failing to find a solution for.
I wish to count the number of times a specific text value appears in a range. The text itself will often be part of a string which will contain other information.
Below is an example of the issue I am encountering... In this instance but not exclusive I am trying to locate the number of times 'Accounting' appears in a range.
Example (value):
[Cell B1] Accounting
Example (Range):
[Cell A1] Accounting
[Cell A2] Accounting OR Business+services
[Cell A3] Accounts OR Accounting
Solution:
[Cell C1] 3
I had hoped the below formulas would work but alas these only return 1 instead of 3.
=SUMPRODUCT((--EXACT(B1,A1:A3))) = 1
=COUNTIF(A1:A3,B1) = 1
* If possible I would appreciate a solution which includes the cell (in this case 'B1') in the formula rather than 'Accounting' as this solution is intended to incorporate other values.
As always any feedback will be greatly received and appreciated.
I wish to count the number of times a specific text value appears in a range. The text itself will often be part of a string which will contain other information.
Below is an example of the issue I am encountering... In this instance but not exclusive I am trying to locate the number of times 'Accounting' appears in a range.
Example (value):
[Cell B1] Accounting
Example (Range):
[Cell A1] Accounting
[Cell A2] Accounting OR Business+services
[Cell A3] Accounts OR Accounting
Solution:
[Cell C1] 3
I had hoped the below formulas would work but alas these only return 1 instead of 3.
=SUMPRODUCT((--EXACT(B1,A1:A3))) = 1
=COUNTIF(A1:A3,B1) = 1
* If possible I would appreciate a solution which includes the cell (in this case 'B1') in the formula rather than 'Accounting' as this solution is intended to incorporate other values.
As always any feedback will be greatly received and appreciated.
Last edited: