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

How would I do this?:

=IF(A comma is found in A1),...

Thanks.
--
David P.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default If a comma is found

=IF(A comma is found in A1),...

=IF(ISNUMBER(SEARCH(",",A1)), ...
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:21,000 Files:365 Subscribers:65
xdemechanik
---

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default If a comma is found

Another one:

=IF(COUNT(FIND(",",A1)),.....

Note that this doesn't work on numbers using a number comma format (10,000)


--
Biff
Microsoft Excel MVP


"David P." wrote in message
...
How would I do this?:

=IF(A comma is found in A1),...

Thanks.
--
David P.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 104
Default If a comma is found

Assumes that A1 contains text:
=IF(ISERROR(FIND(",",A1)),"comma not found","comma found")

Joerg

"David P." wrote in message
...
How would I do this?:

=IF(A comma is found in A1),...

Thanks.
--
David P.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default If a comma is found

Here is another approach...

=IF(LEN(A1)=LEN(SUBSTITUTE(A1,",","")),"No comma","There's a comma")

--
Rick (MVP - Excel)


"David P." wrote in message
...
How would I do this?:

=IF(A comma is found in A1),...

Thanks.
--
David P.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default If a comma is found

One mo

=if(countif(a1,"*,*")0,"found","not found")

David P. wrote:

How would I do this?:

=IF(A comma is found in A1),...

Thanks.
--
David P.


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default If a comma is found

I like this one best... one function call. Let's remove the comparison just
to shorten it up a bit...

=IF(COUNTIF(A1,"*,*"),"found","not found")

--
Rick (MVP - Excel)


"Dave Peterson" wrote in message
...
One mo

=if(countif(a1,"*,*")0,"found","not found")

David P. wrote:

How would I do this?:

=IF(A comma is found in A1),...

Thanks.
--
David P.


--

Dave Peterson


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default If a comma is found

I find using the comparison self-documenting.

Rick Rothstein wrote:

I like this one best... one function call. Let's remove the comparison just
to shorten it up a bit...

=IF(COUNTIF(A1,"*,*"),"found","not found")

--
Rick (MVP - Excel)

"Dave Peterson" wrote in message
...
One mo

=if(countif(a1,"*,*")0,"found","not found")

David P. wrote:

How would I do this?:

=IF(A comma is found in A1),...

Thanks.
--
David P.


--

Dave Peterson


--

Dave Peterson
  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default If a comma is found

That is true enough (but I would guess doing introduces an extra, albeit
very quick, calculation to the formula).

--
Rick (MVP - Excel)


"Dave Peterson" wrote in message
...
I find using the comparison self-documenting.

Rick Rothstein wrote:

I like this one best... one function call. Let's remove the comparison
just
to shorten it up a bit...

=IF(COUNTIF(A1,"*,*"),"found","not found")

--
Rick (MVP - Excel)

"Dave Peterson" wrote in message
...
One mo

=if(countif(a1,"*,*")0,"found","not found")

David P. wrote:

How would I do this?:

=IF(A comma is found in A1),...

Thanks.
--
David P.

--

Dave Peterson


--

Dave Peterson


  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default If a comma is found

I think it makes the formula easier to understand -- especially for the posters
who are asking this type of question.

And it may make it easier to use the function in different formulas.



Rick Rothstein wrote:

That is true enough (but I would guess doing introduces an extra, albeit
very quick, calculation to the formula).

--
Rick (MVP - Excel)

"Dave Peterson" wrote in message
...
I find using the comparison self-documenting.

Rick Rothstein wrote:

I like this one best... one function call. Let's remove the comparison
just
to shorten it up a bit...

=IF(COUNTIF(A1,"*,*"),"found","not found")

--
Rick (MVP - Excel)

"Dave Peterson" wrote in message
...
One mo

=if(countif(a1,"*,*")0,"found","not found")

David P. wrote:

How would I do this?:

=IF(A comma is found in A1),...

Thanks.
--
David P.

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson
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
If no comma found David P. Excel Discussion (Misc queries) 5 December 9th 08 04:39 AM
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
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 08:15 PM.

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

About Us

"It's about Microsoft Excel"