# Sum Frequency with Wildcard

#### MrMaker

##### New Member
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?

### Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

#### shaowu459

##### Active Member
try
isnumber(find("No",Driver!\$G\$2:\$G\$1973))

#### MrMaker

##### New Member
Lovely stuff, that appears to work!

So simple when you know how

All the best

#### shaowu459

##### Active Member
Lovely stuff, that appears to work!

So simple when you know how

All the best

#### jasonb75

##### Well-known Member
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.

1,106,175
Messages
5,509,612
Members
408,743
Latest member
leen1234

### This Week's Hot Topics

• Turn fraction around
Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
• TIme Clock record reformatting to ???
Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
• TextBox Match
hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
• Using Large function based on Multiple Criteria
Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
• Can you check my code please
Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
• Combining 2 pivot tables into 1 chart
Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...