Search text

  • Thread starter Thread starter lashio
  • Start date Start date
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
 
=IF(AND(ISNUMBER(FIND("A2",A1)),ISNUMBER(FIND("D",A1))),IF(FIND("D",A1)=FIND
("A2",A1)+3,1,""),"")
 
One more:

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

The question mark in this formula is a wildcard for a single character.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top