Filter Data which only contains specific word
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Below is an example of my data. My request is to filter the data which cell only includes word "ok"(i.e. line 1,2,3). Is it possible?
Line | Remark |
1 | Ok |
2 | Ok/Ok |
3 | Ok/Ok/Ok |
4 | Ok/tax is wrong/ok |
5 | Tax not included |
Solved! Go to Solution.
- Labels:
- Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
What about a custom filter with expression,
REGEX_Match([Remark], '(ok/?)+')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@PhilipMannering , thanks for reply, it worked. Is it possible to explain your expression? especially why do you use the bracket, plus sign and question mark?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Sure.
The ? means 0 or 1 of the preceding character. So /? matches a forward slash or no forward slash
The + means 1 or more. Since the stuff before is in brackets, it's 1 or more of "ok" or "ok/"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Yes, it's possible. You can use a filter function or conditional formatting in Excel to filter or highlight the cells that contain only the word "Ok".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@PhilipMannering ,thanks for your reply. It helps a lot.
