Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Compare text in 2 different files

I am using Excel 2003 and have two files containing mailing information. I
need to check and see which companies are on both lists. I can't use a
VLOOKUP formula because some of the company names are slightly different.
e.g. One may have a LLC or Inc. at the end and the other doesn't. Is there a
formula I can use to compare the first 4 or 5 letters in the company name
between the two files? Thanks! Paige
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 176
Default Compare text in 2 different files

Assume you're 2 lists are in A1:A10 and B1:B10 (change to fit your data).
Also change the 4 in the LEFT() function to be the number of characters you
want to compare. Commit this with CTRL+SHIFT+ENTER, as it's an array
function:

=SUM(--ISNUMBER(MATCH(LEFT(A1:A10,4),LEFT(B1:B10,4),0)))

--
Regards,
Dave


"Paige Wolfgram" wrote:

I am using Excel 2003 and have two files containing mailing information. I
need to check and see which companies are on both lists. I can't use a
VLOOKUP formula because some of the company names are slightly different.
e.g. One may have a LLC or Inc. at the end and the other doesn't. Is there a
formula I can use to compare the first 4 or 5 letters in the company name
between the two files? Thanks! Paige

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Compare text in 2 different files

You can use wildcard characters with VLOOKUP, so if you want to match
on the first 5 characters in cell A2, for example, you could have
something like this:

=VLOOKUP(LEFT(A2,5)&"*",table,col,0)

where table and col should be obvious to you.

Hope this helps.

Pete

On Apr 2, 9:31*pm, Paige Wolfgram <Paige
wrote:
I am using Excel 2003 and have two files containing mailing information. I
need to check and see which companies are on both lists. *I can't use a
VLOOKUP formula because some of the company names are slightly different.
e.g. One may have a LLC or Inc. at the end and the other doesn't. *Is there a
formula I can use to compare the first 4 or 5 letters in the company name
between the two files? Thanks! Paige


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
How do i compare two different files Rasmus Excel Worksheet Functions 2 October 30th 08 07:14 PM
How can I compare two excell files? Luis Rios Excel Discussion (Misc queries) 1 June 20th 07 01:18 PM
I Have two files that i need to compare? Daysi Excel Worksheet Functions 1 November 30th 05 06:30 AM
Compare Two Data Files matthews_jd Excel Worksheet Functions 2 October 13th 05 03:10 PM
IS there a way to compare 2 excel files PeterM Excel Discussion (Misc queries) 4 April 7th 05 03:47 PM


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