Countif visible cells only with exact match on text

RCBricker

Well-known Member
Joined
Feb 4, 2003
Messages
1,560
Hi all. I have the following formula. the only problem is that there are 4 criteria and all of them have the word Matched in the options. I need a formula (which this one does all but the last part) that is dynamic to filtered data by counting the visible cells only that meet an exact text.

The text are

Matched
UnMatched
UnMatchedGL
UnMatchedTB

This formula counts all instances since each instance contains "Matched".

any thoughts?


Thanks in advance
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
just noticed that...

=SUMPRODUCT(SUBTOTAL(3,OFFSET(B2:B18,ROW(B2:B18)-MIN(ROW(B2:B18)),,1)),ISNUMBER(SEARCH("Matched",B2:B18))+0)
 
Upvote 0
I'm not near a PC at the moment, but couldn't you just replace

ISNUMBER(SEARCH("Matched",B2:B18))+0

with - - (B2: B18="Matched)

Using Search will bring back a value where Matched is a substring, if you have to use Search you'd need

ISNUMBER(SEARCH("Matched",B2:B18))+0, NOT(ISNUMBER(SEARCH("*? Matched",B2:B18))) +0, NOT(ISNUMBER(SEARCH("MATCHED? *",B2:B18) ))+0),NOT(ISNUMBER(SEARCH("*? MATCHED? *",B2:B18)))+0)
)
i. e. Include anything with Matched but exclude anything with Matched in where there's 1 or more characters before, after or before and after

Apologies if my syntax is whacked I'm typing this on my phone and autocorrect is having fun.
 
Upvote 0
PS where I put - - if that throws an error because of blank cells or something use *1 or +0
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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