Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default comparing text against a text table for yes no result

I have a Column "A" containing 7 company names.
I have Column "C" of 3 words
I need in Column "B" to know the following formula.

Does "A1:A7" contain any of the words in C1:C3, and return the result "Yes"
or "NO" in "B1:B7"

The contain function means "that the words in C1:C3 can be found in any
(case) and anywhere in the string of Cell.

Example
A1 B1 C1
Al's Video Yes Video
Guitar shop No Audio
LA Video Yes AV
NYC elec No
Miami Audio Yes
AV Audio Yes
LA Audio CA Yes

Thanks in advance - Nigel

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default comparing text against a text table for yes no result

Try this in B1:

=IF(SUMPRODUCT(--(ISNUMBER(SEARCH($C$1:$C$3,A1)))),"Yes","No")

And copy down as needed.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Nigel Toates" <Nigel wrote in message
...
I have a Column "A" containing 7 company names.
I have Column "C" of 3 words
I need in Column "B" to know the following formula.

Does "A1:A7" contain any of the words in C1:C3, and return the result
"Yes"
or "NO" in "B1:B7"

The contain function means "that the words in C1:C3 can be found in any
(case) and anywhere in the string of Cell.

Example
A1 B1 C1
Al's Video Yes Video
Guitar shop No Audio
LA Video Yes AV
NYC elec No
Miami Audio Yes
AV Audio Yes
LA Audio CA Yes

Thanks in advance - Nigel



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default comparing text against a text table for yes no result

Whoever you are - Thanks you so much it worked great - Nigel

"RagDyer" wrote:

Try this in B1:

=IF(SUMPRODUCT(--(ISNUMBER(SEARCH($C$1:$C$3,A1)))),"Yes","No")

And copy down as needed.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Nigel Toates" <Nigel wrote in message
...
I have a Column "A" containing 7 company names.
I have Column "C" of 3 words
I need in Column "B" to know the following formula.

Does "A1:A7" contain any of the words in C1:C3, and return the result
"Yes"
or "NO" in "B1:B7"

The contain function means "that the words in C1:C3 can be found in any
(case) and anywhere in the string of Cell.

Example
A1 B1 C1
Al's Video Yes Video
Guitar shop No Audio
LA Video Yes AV
NYC elec No
Miami Audio Yes
AV Audio Yes
LA Audio CA Yes

Thanks in advance - Nigel




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default comparing text against a text table for yes no result

Since I sign my posts as RD, I guess I'm RD.<bg

You're welcome, and appreciate the feed-back.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Nigel Toates" wrote in message
...
Whoever you are - Thanks you so much it worked great - Nigel

"RagDyer" wrote:

Try this in B1:

=IF(SUMPRODUCT(--(ISNUMBER(SEARCH($C$1:$C$3,A1)))),"Yes","No")

And copy down as needed.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Nigel Toates" <Nigel wrote in message
...
I have a Column "A" containing 7 company names.
I have Column "C" of 3 words
I need in Column "B" to know the following formula.

Does "A1:A7" contain any of the words in C1:C3, and return the result
"Yes"
or "NO" in "B1:B7"

The contain function means "that the words in C1:C3 can be found in any
(case) and anywhere in the string of Cell.

Example
A1 B1 C1
Al's Video Yes Video
Guitar shop No Audio
LA Video Yes AV
NYC elec No
Miami Audio Yes
AV Audio Yes
LA Audio CA Yes

Thanks in advance - Nigel






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
Comparing Text beginner here Excel Worksheet Functions 7 July 18th 07 11:52 PM
comparing two text ranges crainone Excel Discussion (Misc queries) 5 June 17th 07 09:12 PM
Please help ... comparing text Sally M. Excel Worksheet Functions 2 June 10th 07 02:27 PM
Comparing Two Columns of Text sailortigger Excel Discussion (Misc queries) 2 June 21st 05 08:11 PM
Comparing text fields [email protected] Excel Worksheet Functions 3 May 28th 05 02:56 PM


All times are GMT +1. The time now is 07:51 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"