Use of wildcards in advanced filtering.

lorentzt

New Member
Joined
Nov 3, 2014
Messages
2
I have an old macro that lets me do an advanced filter on a table orginating in SQL.
Because of a change in the values in the field i need to use wildcards.

Before i had values like below

Category
SmG
SmG/LTM
SmG/Trade

This was handlet with a filter that gave me all those with:
Category
SmG

New values are like: SmE/SmG/LTM and SmE/SmG/Trade. How do i get it to still search for SmG (but not just from the beginning of the value?)

Appriciate any help:)
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Thanks for your quick answer. When i look at it in Excel 2013 i manage to do the check and to get it verified as true. But at first look i dont see how i can apply this to an advanced filter. Could be me :eek:.

I will give it a new try tomorrow morning.

Today i have a advanced filter that gets its values from parameters set on page one in my workbook. The resultet filter looks like this.
(Gives me all posts with type Change request that is posted before date "Posted" and eighter is not solved (empty) or solved before a given date. Firm starts wity Dyi and category starts with SmG)
Type
Posted
Solved
Firm
Category
Change Request
<=41944
>=41913
Dyi
SmG
Change Request
<=41944
=
Dyi
SmG

<tbody>
</tbody>


Welcome to MrExcel.

Look here:

http://www.contextures.com/xladvfilter02.html#Number

The solution will also work for text within text.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,584
Messages
6,120,387
Members
448,956
Latest member
JPav

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