If no comma found

  • Thread starter Thread starter David P.
  • Start date Start date
Try this:

=IF(ISERROR(SEARCH(",",A1)), etc

or

=IF(NOT(ISNUMBER(SEARCH(",",A1))), etc

You can also use FIND instead of SEARCH.

Hope this helps.

Pete
 
=IF(LEN(SUBSTITUTE(A1,",",""))=LEN(A1),"no comma","its got comma(s)")
 
One more:
=if(countif(a1,"*,*")=0,"No comma","At least one")
 
Hi,

To add flexibility enter the search item in another cell, say C1 and then

=IF(SEARCH(C1,A1),"found","not found")
 

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