Is Like Lookup

  • Thread starter Thread starter Susana
  • Start date Start date
S

Susana

Hi,

Is there an is like lookup function?

I am trying to look in column A for any items that have an HM, where column a
contains 1234HM, 12572, 24751BP, etc. and return in column B "yes" if there
is an HM....

@if(A1 is like "HM", "yes","no")

Thanks for any help!
 
If you use the =FIND() function this should do the trick.

You may also want to use the =ISERROR() function to clean up the output
as FIND give's a #VALUE! output if it can't find what it is looking
for.

There's probably a way of doing it in one . . . .
 
Hi,

Is there an is like lookup function?

I am trying to look in column A for any items that have an HM, where column a
contains 1234HM, 12572, 24751BP, etc. and return in column B "yes" if there
is an HM....

@if(A1 is like "HM", "yes","no")

Thanks for any help!


Case Insensitive:

=IF(COUNTIF(A1,"*HM*"),"Yes","No")

Case Sensitive:

=IF(ISNUMBER(FIND("HM",A1)),"Yes","No")


--ron
 
Try this:

=IF(ISNUMBER(SEARCH("HM",A1)),"YES","NO")


--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

Hi,

Is there an is like lookup function?

I am trying to look in column A for any items that have an HM, where column
a
contains 1234HM, 12572, 24751BP, etc. and return in column B "yes" if there
is an HM....

@if(A1 is like "HM", "yes","no")

Thanks for any help!
 

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

Similar Threads

lookup and return column number 2
Help needed 0
countif 2
LOOKUP function different? 2
why won't text-to-columns work here? 6
Find Mismatched Data 5
Lookup 14
Lookups 2

Back
Top