advanced filtering vba picks up wild cards?

daveyc18

Well-known Member
Joined
Feb 11, 2013
Messages
755
Office Version
  1. 365
  2. 2010
so i have in column A...booking point...and under that...x376x, x324x....

in column B, i have product type....under that, TR Swap

for whatever reason, when i pull this data in using a vba macro based on the criteria above, it's also pulling in booking point "x324xVAL," but i dont want that...i only want "x324x" ....how come it's pull that in, too?

i thought for the criteria, what you type has to be exact and if you wanted variability, you'd use wild cards (e..g, x324x*)
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Care to post the code your using?
 
Upvote 0
i thought for the criteria, what you type has to be exact and if you wanted variability, you'd use wild cards (e..g, x324x*)

No, with an advanced filter the default is match anything that starts with your criterion. If you want an exact match, you have to use =x324 in a cell formatted as text, or ="=x324" as a formula in a general formatted cell.
 
Upvote 0
No, with an advanced filter the default is match anything that starts with your criterion. If you want an exact match, you have to use =x324 in a cell formatted as text, or ="=x324" as a formula in a general formatted cell.

doing as text worked...ie without using the quotes

thank you
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,206
Members
452,618
Latest member
Tam84

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