ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   If no comma found (https://www.excelbanter.com/excel-discussion-misc-queries/212911-if-no-comma-found.html)

David P.

If no comma found
 
What formula would accomplish:

If no comma found in A1 then...
--
David P.

Pete_UK

If no comma found
 
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

On Dec 9, 12:30*am, David P. wrote:
What formula would accomplish:

If no comma found in A1 then...
--
David P.



Gary''s Student

If no comma found
 
=IF(LEN(SUBSTITUTE(A1,",",""))=LEN(A1),"no comma","its got comma(s)")

--
Gary''s Student - gsnu200819

Dave Peterson

If no comma found
 
One mo
=if(countif(a1,"*,*")=0,"No comma","At least one")

David P. wrote:

What formula would accomplish:

If no comma found in A1 then...
--
David P.


--

Dave Peterson

Shane Devenshire[_2_]

If no comma found
 
Hi,

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

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

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"David P." wrote:

What formula would accomplish:

If no comma found in A1 then...
--
David P.


T. Valko

If no comma found
 
=IF(SEARCH(C1,A1),"found","not found")

If the item isn't found that formula will return an error. It will *never*
return "not found".


--
Biff
Microsoft Excel MVP


"Shane Devenshire" wrote in
message ...
Hi,

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

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

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"David P." wrote:

What formula would accomplish:

If no comma found in A1 then...
--
David P.





All times are GMT +1. The time now is 08:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com