Forum

Notifications
Clear all

Excel advanced filter Wildcards acting weird

4 Posts
4 Users
0 Reactions
123 Views
(@joblivion)
Posts: 1
New Member
Topic starter
 

Hello!

I hope someone could help me with this issue, I've been struggling with it a lot.

I'm trying to use advanced filter in excel, which generally looks for exact matches, but you can use wildcards, like "*".

The problem emerges when I put an * to the beginning of the searched text. For some strange reason, it also allows everything after the searched text.

E.g.:

I search for: "* - xyproductname"

Expected result to return: "This is a question - xyproductname"

Expected result to not return: "This is a question - xyproductname and some more random text"

But it returns both!

Do you know why that could be? Thanks in advance! 

 
Posted : 06/11/2020 5:19 am
Anders Sehlstedt
(@sehlsan)
Posts: 970
Prominent Member
 

Hello,

You don’t specify what function you use, but as you use wildcards I assume you use the SEARCH function.

A good article to read about searching in Excel is found here.
As mentioned in the article, the syntax for the SEARCH function is =SEARCH(find_text, witin_text, [start_num]).

But as SEARCH function gives the position number of the first character when found a match, I doubt I’m correct in my assumption.

Best is if you can provide a sample file so we can see exactly what you are trying to do, makes it easier for all of us.

Br,
Anders

 
Posted : 06/11/2020 6:40 am
(@fluff)
Posts: 36
Eminent Member
 

To filter for something that ends with use it like

="=* - xyproductname"

 
Posted : 06/11/2020 10:46 am
(@debaser)
Posts: 836
Member Moderator
 

FYI, you are slightly mistaken in your belief that advanced filter generally looks for exact matches. For text values, it actually looks for anything beginning with your criterion unless you use a comparison operator like =, as Fluff suggested.

 
Posted : 07/11/2020 5:01 am
Share: