Advanced Filter question

udigold1

New Member
Joined
Dec 15, 2008
Messages
45
I've created a list with codes, for example:
Stocks in US, code 1_1
Stocks in Europe, code 1_12
Stocks in Asia, code 1_13

I'm using the advanced filter, so I coulde see detailed information for each category, but when I try to filter "Stocks in US" I get details for all the categories even though I use criteria. How can I get details for code 1_1 only?
the code is like this :
Code:
Sheets("PirutData" & s).Activate
 Sheets("data" & s).Range(Range("extract" & s), _ 
Range("extract" & s).End(xlToRight).End(xlDown)).AdvancedFilter _
 Action:=xlFilterCopy, CriteriaRange:=Range("critpirut" & s), _ 
CopyToRange:=Range("outputpirut" & s), Unique:=False

thanks,
Udi
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi
In your criteria type: ="=1_1"
If you don't there is an implied asterisk after whatever you type. Therefore 1_1 in criteria cell includes 1_12 etc

Hope this helps
Wolfshead
 
Upvote 0

Forum statistics

Threads
1,214,589
Messages
6,120,416
Members
448,960
Latest member
AKSMITH

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