Count Multiple Unique Values with Wildcards

Diamond_D

New Member
Joined
Nov 16, 2017
Messages
2
I need help with a formula to count unique values in one column that match data in another column but using a wildcard. Column A has multiple names repeated in sequence and column B has data for every occurrence of a name. I want to be able to count the number of names that have Text in a cell in column B and only count once. So, in the example table Fred, John and Carl would all equal 1. Formula needs to count Text (with wildcard) but only once per person.

NameType
FredText123
FredData
FredData
JohnText231
JohnData
JohnText254
CarlText123
CarlData
CarlText231
CarlData

<tbody>
</tbody>

Hope you can help
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Welcome to the forum.

Try:

=SUM(SIGN(FREQUENCY(IF(ISNUMBER(SEARCH("text",B2:B11)),MATCH(A2:A11,A2:A11,0)),ROW(A2:A11)-ROW(A2)+1)))

confirmed with Control+Shift+Enter when you enter it into the formula bar, not just Enter.
 
Upvote 0
Welcome to the forum.

Try:

=SUM(SIGN(FREQUENCY(IF(ISNUMBER(SEARCH("text",B2:B11)),MATCH(A2:A11,A2:A11,0)),ROW(A2:A11)-ROW(A2)+1)))

confirmed with Control+Shift+Enter when you enter it into the formula bar, not just Enter.

Thanks Eric, worked a treat!
 
Upvote 0

Forum statistics

Threads
1,215,836
Messages
6,127,182
Members
449,368
Latest member
JayHo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top