Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Excel

How to matching substring from a Cell

 
Jump to:  
 
ªÎ¿°¤H@work
PostPosted: Tue Sep 02, 2008 12:03 am    Post subject: How to matching substring from a Cell
       
Dear Sir/Madam,

I am now having a column likes below

Column A
My Name is David Chan
Marry
David Williams
He is David and is a boy

I want to find out Column A cells with contact the word "David', then
display "T" on Coloum B if found or "F" is not found. The result should be
as following:

Column A Column B
My Name is David Chan T
Marry F
David Williams T
He is David and is a boy T

How can I do it ?
I have tried if( ), but it only match the cell with only input "David" in
it.

Thanks for help.

Regards,
William
 

 
T. Valko
PostPosted: Tue Sep 02, 2008 12:08 am    Post subject: Re: How to matching substring from a Cell
       
Try this:

=IF(COUNTIF(A1,"*David*"),"T","F")

Copy down as needed.

--
Biff
Microsoft Excel MVP


"ªÎ¿°¤H@work" <fatguy@fatguy.com> wrote in message
news:OIRxVAKDJHA.1628@TK2MSFTNGP02.phx.gbl...
Quote:
Dear Sir/Madam,

I am now having a column likes below

Column A
My Name is David Chan
Marry
David Williams
He is David and is a boy

I want to find out Column A cells with contact the word "David', then
display "T" on Coloum B if found or "F" is not found. The result should be
as following:

Column A Column B
My Name is David Chan T
Marry F
David Williams T
He is David and is a boy T

How can I do it ?
I have tried if( ), but it only match the cell with only input "David" in
it.

Thanks for help.

Regards,
William

 

 
Rick Rothstein
PostPosted: Tue Sep 02, 2008 12:11 am    Post subject: Re: How to matching substring from a Cell
       
Try this formula...

=IF(ISNUMBER(SEARCH("david",A1)),"T","F")

--
Rick (MVP - Excel)


"ªÎ¿°¤H@work" <fatguy@fatguy.com> wrote in message
news:OIRxVAKDJHA.1628@TK2MSFTNGP02.phx.gbl...
Quote:
Dear Sir/Madam,

I am now having a column likes below

Column A
My Name is David Chan
Marry
David Williams
He is David and is a boy

I want to find out Column A cells with contact the word "David', then
display "T" on Coloum B if found or "F" is not found. The result should be
as following:

Column A Column B
My Name is David Chan T
Marry F
David Williams T
He is David and is a boy T

How can I do it ?
I have tried if( ), but it only match the cell with only input "David" in
it.

Thanks for help.

Regards,
William

 

 
AltaEgo
PostPosted: Tue Sep 02, 2008 12:15 am    Post subject: Re: How to matching substring from a Cell
       
=IF(ISERROR(FIND("David",A1)>0),"F","T")

--
Steve

"ªÎ¿°¤H@work" <fatguy@fatguy.com> wrote in message
news:OIRxVAKDJHA.1628@TK2MSFTNGP02.phx.gbl...
Quote:
Dear Sir/Madam,

I am now having a column likes below

Column A
My Name is David Chan
Marry
David Williams
He is David and is a boy

I want to find out Column A cells with contact the word "David', then
display "T" on Coloum B if found or "F" is not found. The result should be
as following:

Column A Column B
My Name is David Chan T
Marry F
David Williams T
He is David and is a boy T

How can I do it ?
I have tried if( ), but it only match the cell with only input "David" in
it.

Thanks for help.

Regards,
William

 

 
ªÎ¿°¤H@work
PostPosted: Tue Sep 02, 2008 1:25 am    Post subject: Re: How to matching substring from a Cell
       
Thanks all for help.

"ªÎ¿°¤H@work" <fatguy@fatguy.com> ¼¶¼g©ó¶l¥ó·s»D:OIRxVAKDJHA.1628@TK2MSFTNGP02.phx.gbl...
Quote:
Dear Sir/Madam,

I am now having a column likes below

Column A
My Name is David Chan
Marry
David Williams
He is David and is a boy

I want to find out Column A cells with contact the word "David', then
display "T" on Coloum B if found or "F" is not found. The result should be
as following:

Column A Column B
My Name is David Chan T
Marry F
David Williams T
He is David and is a boy T

How can I do it ?
I have tried if( ), but it only match the cell with only input "David" in
it.

Thanks for help.

Regards,
William

 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

turystyka wizz air apteka BalticDataCenter.pl zabawki