#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 67
Default If no comma found

What formula would accomplish:

If no comma found in A1 then...
--
David P.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default 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.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default If no comma found

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

--
Gary''s Student - gsnu200819
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default 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
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default 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.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default 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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract the text between last comma and last but one comma. Sreedevi Excel Worksheet Functions 2 March 5th 08 11:12 PM
Comma Delimited-need comma at beginnng & end Tattoo Excel Discussion (Misc queries) 2 December 11th 07 04:39 PM
Dot and comma raigo Excel Discussion (Misc queries) 2 October 25th 06 08:37 PM
IF NOT FOUND roy.okinawa Excel Worksheet Functions 5 November 17th 05 03:26 AM
Excel How do I create a comma delineated xls file to a comma delineated. Mark Excel Discussion (Misc queries) 0 November 26th 04 10:28 PM


All times are GMT +1. The time now is 09:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"