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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
"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
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,214,585
Messages
6,120,397
Members
448,957
Latest member
Hat4Life

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