#1   Report Post  
lashio
 
Posts: n/a
Default Search text

A1 = "A24D"
I want to look up cell A1 for A2?D, similar to search text.
Cell B1 = 1 if A1 contains text A2?D, "" otherwise.
Can it be formulated? Thanks


  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=IF(AND(ISNUMBER(FIND("A2",A1)),ISNUMBER(FIND("D", A1))),IF(FIND("D",A1)=FIND
("A2",A1)+3,1,""),"")

--
HTH

Bob Phillips

"lashio" wrote in message
...
A1 = "A24D"
I want to look up cell A1 for A2?D, similar to search text.
Cell B1 = 1 if A1 contains text A2?D, "" otherwise.
Can it be formulated? Thanks




  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

One mo

=IF(COUNTIF(A1,"a2?d")0,1,"")

The question mark in this formula is a wildcard for a single character.

lashio wrote:

A1 = "A24D"
I want to look up cell A1 for A2?D, similar to search text.
Cell B1 = 1 if A1 contains text A2?D, "" otherwise.
Can it be formulated? Thanks


--

Dave Peterson
  #4   Report Post  
lashio
 
Posts: n/a
Default

Thank you, Bob

"Bob Phillips" wrote in message
...
=IF(AND(ISNUMBER(FIND("A2",A1)),ISNUMBER(FIND("D", A1))),IF(FIND("D",A1)=FIND
("A2",A1)+3,1,""),"")

--
HTH

Bob Phillips

"lashio" wrote in message
...
A1 = "A24D"
I want to look up cell A1 for A2?D, similar to search text.
Cell B1 = 1 if A1 contains text A2?D, "" otherwise.
Can it be formulated? Thanks






  #5   Report Post  
lashio
 
Posts: n/a
Default

Thank you, Dave
So helpful!

"Dave Peterson" wrote in message
...
One mo

=IF(COUNTIF(A1,"a2?d")0,1,"")

The question mark in this formula is a wildcard for a single character.

lashio wrote:

A1 = "A24D"
I want to look up cell A1 for A2?D, similar to search text.
Cell B1 = 1 if A1 contains text A2?D, "" otherwise.
Can it be formulated? Thanks


--

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return text found in a search Dave R. Excel Worksheet Functions 4 May 12th 05 08:53 PM
Search a Column by text length kb_63 Excel Worksheet Functions 2 May 6th 05 09:17 PM
How do I search for text within text? Dave Bailey Excel Discussion (Misc queries) 1 March 17th 05 08:19 AM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM
Newbie: How to search a text string from right Frank Krogh Excel Worksheet Functions 5 November 26th 04 07:16 PM


All times are GMT +1. The time now is 10:53 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"