Filtering values

TheIceman1403

New Member
Joined
Feb 15, 2023
Messages
2
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
I have a column with folder-names, lots of them. I need to filter the ones which start with 4 letters followed by 4 numbers.
For example, "BAEC4587" is the structure I need to filter out of my column. I've been playing with "Begins with" text-filter but ended somewhere with forest and trees.
I don't see any solution except of copying partial data to other columns and cutting and pasting stuff...

Any ideas?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
this solution works with a helper column

Book1
ABC
1ABCD1234ABCD1234
2ABCD1235ABCD1235
3ABCD1236ABCD1236
4ABCD12373 
5ABCD1238ABCD1238
6ABCD1239ABCD1239
7ABCD1240ABCD1240
8ABCD1241ABCD1241
9BBCD1242BBCD1242
10XABCD1243 
Sheet1
Cell Formulas
RangeFormula
C1:C10C1=IF(AND(LEN(A1)=8,ISTEXT(LEFT(A1,4)),ISNUMBER(VALUE(RIGHT(A1,4)))),A1,"")
Named Ranges
NameRefers ToCells
_FilterDatabase=Sheet1!$A$1:$A$12C1
 
Upvote 0
Solution
with filter applied

Book1
ABC
1ABCD1234Y
2ABCD1235Y
3ABCD1236Y
5ABCD1238Y
6ABCD1239Y
7ABCD1240Y
8ABCD1241Y
9BBCD1242Y
Sheet1
Cell Formulas
RangeFormula
C1:C3,C5:C9C1=IF(AND(LEN(A1)=8,ISTEXT(LEFT(A1,4)),ISNUMBER(VALUE(RIGHT(A1,4)))),"Y","")
Named Ranges
NameRefers ToCells
_FilterDatabase=Sheet1!$A$1:$F$10C1
 
Upvote 0
this solution works with a helper column

Book1
ABC
1ABCD1234ABCD1234
2ABCD1235ABCD1235
3ABCD1236ABCD1236
4ABCD12373 
5ABCD1238ABCD1238
6ABCD1239ABCD1239
7ABCD1240ABCD1240
8ABCD1241ABCD1241
9BBCD1242BBCD1242
10XABCD1243 
Sheet1
Cell Formulas
RangeFormula
C1:C10C1=IF(AND(LEN(A1)=8,ISTEXT(LEFT(A1,4)),ISNUMBER(VALUE(RIGHT(A1,4)))),A1,"")
Named Ranges
NameRefers ToCells
_FilterDatabase=Sheet1!$A$1:$A$12C1
Thanks, this worked. Thought there was a way of using the filter in multiple layers.
 
Upvote 0

Forum statistics

Threads
1,214,864
Messages
6,121,986
Members
449,058
Latest member
oculus

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