Lookup Formula?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to come up with a lookup formula for the following example:

Column A Column B
Row 1 22k b22kcw
Row 2 23k bf23kc
Row 3 32k b25kce
Row 4 28k be32kw

In Column C, I want a formula that looks at the value in A2, compares it to
column B, and if it finds "22k" anywhere in one of the values, it returns T.
If it doesn't, it returns F. I have a formula working when the values are
side by side (Row 1), but not when they are not (Row 3 and 4). Is this
possible?
 
One way:
=if(isnumber(match("*" & a1 & "*", b:b,0)),"T","F")

Another:
=if(countif(b:b,"*" & a1 & "*")>0,"T","F")
 
It works great! Thanks!!!!

Dave Peterson said:
One way:
=if(isnumber(match("*" & a1 & "*", b:b,0)),"T","F")

Another:
=if(countif(b:b,"*" & a1 & "*")>0,"T","F")
 

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