Search text

L

lashio

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
 
B

Bob Phillips

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

Dave Peterson

One more:

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

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

lashio

Thank you, Dave
So helpful!

Dave Peterson said:
One more:

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

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