advanced filter, but only pick up security ID that doesnt start with a number

daveyc18

Well-known Member
Joined
Feb 11, 2013
Messages
707
Office Version
  1. 365
  2. 2010
so i want to filter data, but i only want sec. ID that begins with a letter (or in other words, not a number).
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
You could use a "helper" column, to determine if it starts with a number or not, like this (for an ID in cell A2):
=ISNUMBER(LEFT(A2,1)+0)
Ones that start with a number will return TRUE, and ones that don't will return FALSE, and then you can use this column to filter on.
 
Upvote 0
Since you are apparently using Advanced Filter, it depends on how you are doing the Adv Filter. That is
- manual or vba
- Headings with criteria or a no-heading formula approach?

Here is an example of a no-heading formula approach.
Formula as shown goes anywhere that has a vacant cells above it. note that the formula points to the first data cell in the sec. ID column only.

A_MrExcel.xlsm
CDEFGH
1
2FALSE
3
4Hdr 1sec. IDHdr 3Hdr 4
5data3824datadata
6dataH35datadata
7data65025datadata
8dataXD87865Rdatadata
Adv Fltr
Cell Formulas
RangeFormula
H2H2=NOT(ISNUMBER(LEFT(D5,1)+0))



Then do an Advanced Filter on the range C4:F8 with a criteria range of H1:H2. Result:

A_MrExcel.xlsm
CDEFGH
1
2FALSE
3
4Hdr 1sec. IDHdr 3Hdr 4
6dataH35datadata
8dataXD87865Rdatadata
9
Adv Fltr
Cell Formulas
RangeFormula
H2H2=NOT(ISNUMBER(LEFT(D5,1)+0))
 
Upvote 0
using VBA advanced filter relying on headers
In that case could we see the code you are currently using and some sample data so we can see the layout and where/how you are using those headers in your criteria?
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,192
Members
449,072
Latest member
DW Draft

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