Advanced Character Search Functionality

Batman1

New Member
Joined
Aug 9, 2014
Messages
14
Hi Everyone,

If I want to search for letters in the cells that are not necessarily in order, how can I do that?

[TABLE="width: 500"]
<tbody>[TR]
[TD]CEGB[/TD]
[TD]DFACE[/TD]
[TD]EGBDF[/TD]
[TD]FACEG[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Example 1
I want to search for any cells that container the letters D,F,E
My results should be cell B1 and Cell C1 because they both container the letters D,F,E even though they are not in sequence.

Example 2
I want to search for any cells that container the letter C
My results should be cell A1, B1 and D1 because they all container the letters C

Is there a simple way of doing this?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
This formula will be blank if A1 does not contain D,F,E and if it does contain it will show Yes
=IFERROR(IF(FIND("D",A1)*FIND("F",A1)*FIND("E",A1)>0,"YES",""),"")

For Example 2
=IFERROR(IF(FIND("C",A1)>0,"YES",""),"")

Note that using the "FIND" function makes the C or the D, F, E are case-sensitive. If you do not want it case sensitive, you can use the "SEARCH" function
 
Upvote 0
This formula will be blank if A1 does not contain D,F,E and if it does contain it will show Yes
=IFERROR(IF(FIND("D",A1)*FIND("F",A1)*FIND("E",A1)>0,"YES",""),"")

For Example 2
=IFERROR(IF(FIND("C",A1)>0,"YES",""),"")

Note that using the "FIND" function makes the C or the D, F, E are case-sensitive. If you do not want it case sensitive, you can use the "SEARCH" function


I am trying to search among almost 1000 cells, the method you proposed would be very time consuming since you have to search each cell individually. I would need a lost of displayed cells that have the letters I am searching.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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