Hello Mr. Aladin,
Million Thanks to u...
Yes.. There might be multiple occurrences in the target string. You are simply awesome dude.
You are welcome.
If you want multiple results... Using the sample Peter posted:
[TABLE="width: 548"]
<colgroup><col style="width: 319pt; mso-width-source: userset; mso-width-alt: 15132;" width="426"> <col style="width: 20pt; mso-width-source: userset; mso-width-alt: 967;" width="27"> <col style="width: 52pt; mso-width-source: userset; mso-width-alt: 2446;" width="69"> <col style="width: 48pt;" width="64"> <col style="width: 54pt; mso-width-source: userset; mso-width-alt: 2560;" width="72"> <col style="width: 55pt; mso-width-source: userset; mso-width-alt: 2588;" width="73"> <tbody>[TR]
[TD="class: xl65, width: 426, bgcolor: white"]
server1 Name Along with somedata[/TD]
[TD="class: xl65, width: 27, bgcolor: white"] [/TD]
[TD="class: xl65, width: 69, bgcolor: white"]
server1[/TD]
[TD="class: xl66, width: 64, bgcolor: transparent"] [/TD]
[TD="class: xl66, width: 72, bgcolor: transparent"]
server1[/TD]
[TD="class: xl66, width: 73, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl65, width: 426, bgcolor: white"]
Name along with otherdata server4[/TD]
[TD="class: xl65, width: 27, bgcolor: white"] [/TD]
[TD="class: xl65, width: 69, bgcolor: white"]
server2[/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[TD="class: xl66, bgcolor: transparent"]
server4[/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl65, width: 426, bgcolor: white"]
Somthing server5 other values[/TD]
[TD="class: xl65, width: 27, bgcolor: white"] [/TD]
[TD="class: xl65, width: 69, bgcolor: white"]
server3[/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl65, width: 426, bgcolor: white"]
What about Server3 today?[/TD]
[TD="class: xl65, width: 27, bgcolor: white"] [/TD]
[TD="class: xl65, width: 69, bgcolor: white"]
server4[/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[TD="class: xl66, bgcolor: transparent"]
server3[/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl65, width: 426, bgcolor: white"]
Please fix Server4[/TD]
[TD="class: xl65, width: 27, bgcolor: white"] [/TD]
[TD="class: xl65, width: 69, bgcolor: white"] [/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[TD="class: xl66, bgcolor: transparent"]
server4[/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl65, width: 426, bgcolor: white"]
This has nothing[/TD]
[TD="class: xl65, width: 27, bgcolor: white"] [/TD]
[TD="class: xl65, width: 69, bgcolor: white"] [/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl65, width: 426, bgcolor: white"]
Note what happens if 2 strings Server1 and Server2[/TD]
[TD="class: xl65, width: 27, bgcolor: white"] [/TD]
[TD="class: xl65, width: 69, bgcolor: white"] [/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[TD="class: xl66, bgcolor: transparent"]
server1[/TD]
[TD="class: xl66, bgcolor: transparent"]
server2[/TD]
[/TR]
</tbody>[/TABLE]
E1, control+shift+enter (not just enter), copy across, and down:
Rich (BB code):
=IFERROR(INDEX($C$1:$C$4,
SMALL(IF(ISNUMBER(SEARCH(" "&$C$1:$C$4&" "," "&$A1&" ")),
ROW($C$1:$C$4)-ROW($C$1)+1),COLUMNS($E2:E2))),"")
We can also get the results into a single cell like "server1, server2", using a UDF, if so desired.