Filtering text strings containing multiple asterisks

paydog23

New Member
Joined
Jul 12, 2017
Messages
28
Office Version
  1. 365
Platform
  1. Windows
I am filtering a list of 400 text strings ( I have posted a subset below), some of which have anywhere from 1 to 4 asterisks.
I know how to use the ~ to filter (both advanced filter and auto filter) for ANY number of asterisks: *~*. I also know how to use the ~ to advanced filter for more than an X number
of asterisks: If I want to filter for 2 or more asterisks, I type:*~*~*

However, I don't know how to filter for a SPECIFIC number of asterisks--how would I filter for text containing just 2 or just 3 or just 4 asterisks?

I have pasted below the list that I am trying to filter:

Decisions
[TABLE="width: 242"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Alpine **[/TD]
[/TR]
[TR]
[TD]Alpine 0609[/TD]
[/TR]
[TR]
[TD]Amador 1594[/TD]
[/TR]
[TR]
[TD]Butte ****[/TD]
[/TR]
[TR]
[TD]Calaveras 0000[/TD]
[/TR]
[TR]
[TD]Contra Costa 1629[/TD]
[/TR]
[TR]
[TD]Del Norte **[/TD]
[/TR]
[TR]
[TD]Del Norte 1382[/TD]
[/TR]
[TR]
[TD]Fresno ***[/TD]
[/TR]
[TR]
[TD]Fresno 0935[/TD]
[/TR]
[TR]
[TD]Humboldt **[/TD]
[/TR]
[TR]
[TD]Inyo 0694[/TD]
[/TR]
[TR]
[TD]Kern ***[/TD]
[/TR]
[TR]
[TD]Los Angeles *A28222[/TD]
[/TR]
[TR]
[TD]Madera ***[/TD]
[/TR]
[TR]
[TD]Mendocino *A26951, A27929[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Maybe...

2 asterisks
=LEN(A2)-LEN(SUBSTITUTE(A2,"*",""))=2

For three asterisks replace 2 by 3 and so on

M,
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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