A AV114 Member Jan 16, 2019 #1 I like to use VBA or Formula to find exact text string on a cell value Cell Text : JOHN SMITH, JUNIOR, DB JONES , JONES need to find : 1) JOHN SMITH 2) JOHN Could you please help me on this
I like to use VBA or Formula to find exact text string on a cell value Cell Text : JOHN SMITH, JUNIOR, DB JONES , JONES need to find : 1) JOHN SMITH 2) JOHN Could you please help me on this
Hui Excel Ninja Staff member Jan 16, 2019 #2 Use Find or Search They will both return the starting position of the text string in the Cell Text
A AV114 Member Jan 16, 2019 #3 Hui said: Use Find or Search They will both return the starting position of the text string in the Cell Text Click to expand... But i got result for both, for me its i need like this : 1) JOHN SMITH - Result (TRUE) 2) JOHN - Result (False) Can you help me
Hui said: Use Find or Search They will both return the starting position of the text string in the Cell Text Click to expand... But i got result for both, for me its i need like this : 1) JOHN SMITH - Result (TRUE) 2) JOHN - Result (False) Can you help me
V vletm Excel Ninja Jan 16, 2019 #4 AV114 Is there ALWAYS something between Your meant text-term? You asked 'to find exact text string on a cell value' ... and without more specific rules, those both are TRUE. How about 'name' as SMITH? Should it be TRUE or FALSE?
AV114 Is there ALWAYS something between Your meant text-term? You asked 'to find exact text string on a cell value' ... and without more specific rules, those both are TRUE. How about 'name' as SMITH? Should it be TRUE or FALSE?
B bosco_yip Excel Ninja Jan 16, 2019 #5 Try, In D2, copied down : =ISNUMBER(FIND(C2&",",SUBSTITUTE(A$2," ,",",")&",")) Regards Bosco
A AV114 Member Jan 17, 2019 #6 bosco_yip said: View attachment 57611 Try, In D2, copied down : =ISNUMBER(FIND(C2&",",SUBSTITUTE(A$2," ,",",")&",")) Regards Bosco Click to expand... Thanks
bosco_yip said: View attachment 57611 Try, In D2, copied down : =ISNUMBER(FIND(C2&",",SUBSTITUTE(A$2," ,",",")&",")) Regards Bosco Click to expand... Thanks
V vletm Excel Ninja Jan 17, 2019 #7 AV114 Did You test SMITH? If not then You should notice that You would get many extra TRUEs.