Sum Frequency with Wildcard

MrMaker

Board Regular
Joined
Jun 7, 2018
Messages
56
Office Version
  1. 365
Platform
  1. Windows
Morning all,

I've got a working Sum Frequency formula which counts unique matches.

=SUM(--(FREQUENCY(IF((Driver!$A$2:$A$1973='Data Selection'!$A$1)*(Driver!$G$2:$G$1973="No"),MATCH(Driver!$D$2:$D$1973,Driver!$D$2:$D$1973,0)),ROW(Driver!$D$2:$D$1973)-ROW(OFFSET(Driver!$D$1,1,))+1)>0))

It works well but I need to amend the ="No" (in bold above) part so that it looks for No as a Wildcard instead of a direct match.

I've tried making it "*No*" but this doesn't work

Any suggestions?

Thanks in advance
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Lovely stuff, that appears to work!

So simple when you know how

All the best
 
Upvote 0
With a slight change to the match range you should be able to remove some unnecessary functions from your formula as well.

=SUM(--(FREQUENCY(IF((Driver!$A$2:$A$1973='Data Selection'!$A$1)* ISNUMBER(FIND("No",Driver!$G$2:$G$1973)),MATCH(Driver!$D$2:$D$1973,Driver!$D$1:$D$1973,0)),ROW(Driver!$D$2:$D$1973))>0))

I've included @shaowu459's suggestion in the edited formula above. Note that there are potential problems with this method depending on the data in column G. FIND is case sensitive, so it will pick up rows with "No" but will miss "no". To count rows with "no" as well, you would need to use SEARCH instead, but that is not without potential problems. FIND will also count rows containing words like "Nose", while SEARCH would see "Abnormal" as a valid match.
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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