Custom auto filter with contains - no results

Ernie

Board Regular
Joined
May 16, 2003
Messages
63
I have a spreadsheet with 300 lines of data and 25 columns. I am using custom auto filter with contains. The column I am filtering contains 11 digit numbers, I am entering the first 6 digits in "contains". I'm not gettting any hits.. What am I doing wrong...


Thanks for your help,
Ernie
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,108
Office Version
  1. 365
"Contains" doesn't play well with numbers. Try replacing your numbers with the text equivalents (e.g. in another column, put =""&A1 and copy down to change the number 123456 to the text value "123456"). The "contains" filter should be fine for the numbers stored as text.
 
Upvote 0

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
Hi Ernie

If you didn't want to change the source data, then you can use Greater Than Or Equal to and Less Than Or Equal To criterias to achieve the same result ie for an 11 digit number:

Greater Than OR Equal To 12345600000

Less Than Or Equal To 12345699999

Richard
 
Upvote 0

Forum statistics

Threads
1,191,204
Messages
5,985,278
Members
439,953
Latest member
suchitha

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
Top