Advance filter search does not filter an exact match

C

cfiiland

I'm using a advanced filter to of course filter a list. My problem is
that if I filter for something like "dogs 1" my results are "dogs 1"
but also anything the has "dogs 1" in it, such as "dogs 11", "dogs 10",
I just want "dogs 1" only though. This is a probably a simple solution.
Any help would be great, thanks

Here is a sample of the code I'm using!


' set the range of the original source data

datarng = "a101:g" & Format(lastdatarow, "#")

Range(datarng).AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range(CritRng), CopyToRange:=Range("i101:blush:3000"),
unique:=False

End If
 
D

Debra Dalgleish

In the criteria area, enter: ="=dogs 1"

or ="="&K2

where K2 contains: dogs 1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top