Filter Function using character in a string

fddekker

Board Regular
Joined
Jun 30, 2008
Messages
86
Office Version
  1. 365
Platform
  1. Windows
What is the correct syntax to use with the new 365 FILTER function to filter on a character within a string? In the example below, I would like to search for all ADIDs (column E) that has an "R" as the second character.

Excel365.xlsx
ABCDE
1AccountContractInstallationDivisionADID
22100413473630000131170400431GSCO
32100414669830000253070397646ELCR
42100057240030004651070009029ELMN
52100043503830006033170019883ELMR
62100128664630008037970136473ELRS
72100160265130008045970136396ELRR
82100128856830008055670140024ELIN
92100132264930008085370140843ELIR
102100132344930008092970144111ELCR
112100160975530008093370140900ELRS
122100125171530008401870144153ELRR
132100132604630008401970144357ELRS
142100125187130008403470144197ELRS
Sheet4
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Try this:
Excel Formula:
=FILTER(A1:E14,MID(E1:E14,2,1)="R")
 
Upvote 0
Solution
How about
Excel Formula:
=FILTER(A2:E14,MID(E2:E14,2,1)="R")

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Thanks both. I had the table defined, and that made me mess up the syntax. The full syntax I used was:
=FILTER(EVER,MID(EVER[ADID],2,1)="R"), where EVER is my table and ADID my column to filter on.
Such a great tool. Thanks again.
I am having trouble getting Excel to correctly filter dates, it seems the date must be in 'general' format for Excel to do the calculation, but I will post a different thread for it.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,128
Messages
6,129,036
Members
449,482
Latest member
al mugheen

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