M Max Dec 11, 2008 #2 =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 ---
=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 ---
T T. Valko Dec 11, 2008 #3 Another one: =IF(COUNT(FIND(",",A1)),..... Note that this doesn't work on numbers using a number comma format (10,000)
Another one: =IF(COUNT(FIND(",",A1)),..... Note that this doesn't work on numbers using a number comma format (10,000)
J Joerg Mochikun Dec 11, 2008 #4 Assumes that A1 contains text: =IF(ISERROR(FIND(",",A1)),"comma not found","comma found") Joerg
R Rick Rothstein Dec 11, 2008 #5 Here is another approach... =IF(LEN(A1)=LEN(SUBSTITUTE(A1,",","")),"No comma","There's a comma")
R Rick Rothstein Dec 11, 2008 #7 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")
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")
D Dave Peterson Dec 11, 2008 #8 I find using the comparison self-documenting. Rick said: 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") Click to expand...
I find using the comparison self-documenting. Rick said: 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") Click to expand...
R Rick Rothstein Dec 11, 2008 #9 That is true enough (but I would guess doing introduces an extra, albeit very quick, calculation to the formula). -- Rick (MVP - Excel) Dave Peterson said: I find using the comparison self-documenting. Click to expand...
That is true enough (but I would guess doing introduces an extra, albeit very quick, calculation to the formula). -- Rick (MVP - Excel) Dave Peterson said: I find using the comparison self-documenting. Click to expand...
D Dave Peterson Dec 11, 2008 #10 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 said: That is true enough (but I would guess doing introduces an extra, albeit very quick, calculation to the formula). Click to expand...
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 said: That is true enough (but I would guess doing introduces an extra, albeit very quick, calculation to the formula). Click to expand...