Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
dan dan is offline
external usenet poster
 
Posts: 866
Default Search for a text string

Hi,

I have 2 lists of companies.

I want to search for whether the companies on list 1 are on list 2.

For example, "Chrysler Holding LLC" on list 1, "Chrysler Holding" on list 2.
How can I search "Chrysler" from list 1 is on list 2 as well.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default Search for a text string

Hi,

VLOOKUP supports wild cards so you can use something like this

=VLOOKUP(B5&"*",F4:G11,2,FALSE)

where B5 contains Chrysler Holding and F4:F11 contains Chrysler Holding or
Chrysler Holding LLC. Or you can just check to see if it is in the first
column with

=VLOOKUP(B5&"*",F4:F11,1,FALSE)

COUNTIF also supports wildcards, so

=COUNTIF(F4:F10,B5&"*")

However if you really look "Chrysler Holding LLC" up in a column which
contains only Chrysler Holding you won't find it.

If this helps, please click the Yes button.

Thanks,
Shane Devenshire


"Dan" wrote:

Hi,

I have 2 lists of companies.

I want to search for whether the companies on list 1 are on list 2.

For example, "Chrysler Holding LLC" on list 1, "Chrysler Holding" on list 2.
How can I search "Chrysler" from list 1 is on list 2 as well.

Thanks.

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
search text string within array Geeban Excel Discussion (Misc queries) 5 September 16th 08 07:34 AM
How do a search for a text string using a formula BobbyG Excel Discussion (Misc queries) 1 March 20th 08 02:24 PM
Text search within a string using formula esbee Excel Worksheet Functions 6 September 27th 07 06:11 PM
Search, find or lookup defined text in text string zzxxcc Excel Worksheet Functions 9 September 6th 07 09:37 PM
Newbie: How to search a text string from right Frank Krogh Excel Worksheet Functions 5 November 26th 04 07:16 PM


All times are GMT +1. The time now is 06:38 AM.

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"