Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Ron is offline
external usenet poster
 
Posts: 250
Default Searching for multiple strings and return multiple solutions

I think I'm close in concept but may not be using the correct function.

This formula works except it returns only "Line" or a blank.
=IF(OR(ISNUMBER(SEARCH({"Line","Text","Point"},C[1]))),"Line","")

Searched data is column C, I need column B to return results as shown below.
B C
Line 000Default LineLineSymbology
Text 001Default TextTextSymbology
Point 002Default PointPointSymbology
Line 003Plan LineLineSymbology
'empty field'

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Searching for multiple strings and return multiple solutions

Maybe...

=IF(ISNUMBER(SEARCH("line",C1)),"Line",
IF(ISNUMBER(SEARCH("point",C1)),"Point",
IF(ISNUMBER(SEARCH("text",C1)),"Text","")))



Ron wrote:

I think I'm close in concept but may not be using the correct function.

This formula works except it returns only "Line" or a blank.
=IF(OR(ISNUMBER(SEARCH({"Line","Text","Point"},C[1]))),"Line","")

Searched data is column C, I need column B to return results as shown below.
B C
Line 000Default LineLineSymbology
Text 001Default TextTextSymbology
Point 002Default PointPointSymbology
Line 003Plan LineLineSymbology
'empty field'


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Ron is offline
external usenet poster
 
Posts: 250
Default Searching for multiple strings and return multiple solutions

Dave,
Your the man!
Thanks!

"Dave Peterson" wrote:

Maybe...

=IF(ISNUMBER(SEARCH("line",C1)),"Line",
IF(ISNUMBER(SEARCH("point",C1)),"Point",
IF(ISNUMBER(SEARCH("text",C1)),"Text","")))



Ron wrote:

I think I'm close in concept but may not be using the correct function.

This formula works except it returns only "Line" or a blank.
=IF(OR(ISNUMBER(SEARCH({"Line","Text","Point"},C[1]))),"Line","")

Searched data is column C, I need column B to return results as shown below.
B C
Line 000Default LineLineSymbology
Text 001Default TextTextSymbology
Point 002Default PointPointSymbology
Line 003Plan LineLineSymbology
'empty field'


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:23 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"