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
Alpine **
Alpine 0609
Amador 1594
Butte ****
Calaveras 0000
Contra Costa 1629
Del Norte **
Del Norte 1382
Fresno ***
Fresno 0935
Humboldt **
Inyo 0694
Kern ***
Los Angeles *A28222
Madera ***
Mendocino *A26951, A27929

<colgroup><col></colgroup><tbody>
</tbody>
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
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,215,030
Messages
6,122,762
Members
449,095
Latest member
m_smith_solihull

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