Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You can use this test in your IF function calls...
COUNTIF(BG20,"*10*")0 which will report TRUE if 10 is contained in BG20 and FALSE if it is not. -- Rick (MVP - Excel) "G.P.N.L. c.v.a." wrote in message ... I am looking for a way to find out whether a certain string does NOT appear in another string. In that case FIND will give an error. I tried to bypass this by using NOT(ISERROR(...), but this doen't seem to work. I tried using NOT(ISERROR(FIND("10";$BG20;1)<0 to check if "10" is prsent in BG20 in this formula : =IF(AND( condition 1; condition 2); IF( $BG$1="M"; $BG20; IF( AND($BG$1="K"; NOT(ISERROR(FIND("10";$BG20;1)))); $BG20; IF( AND($BG$1="J"; NOT(ISERROR(FIND("10";$BG20;1)))); $BG20))); "" ) but for BG1 = "M", I still get "FALSE" instaed of an empty field. What am I doing wrong ? Tx in advance, Gilbert |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Identifying the presence of a randomly ordered text string in a cell | Excel Worksheet Functions | |||
Check if variable contains a string | Excel Worksheet Functions | |||
Check for character in string | Excel Discussion (Misc queries) | |||
COUNTIF according to presence of string within text | Excel Worksheet Functions | |||
Excel VBA - Check/Format String | Excel Discussion (Misc queries) |