Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default Compare two worksheets with "contains" and not "exact" values

Dear experts!

I have two worksheets. Given examples below:

Excel 1

Column A
00123466799
126565897854
45457878451
45546544782
155467846564


Excel 2

Column A
1234667
65897854
57878451
46544782
67846564

I want to compare both the excels...... and give me result like a "vlookup"
function... however, in this case, the columns wont exactly match - but excel
1 "contains" the values of excel 2 in the same order - ignoring prefixes or
suffixes
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Compare two worksheets with "contains" and not "exact" values

In Sheet2 B1 try the below formula and copy down which will lookup and get
the value from Sheet1

=IF(A1<"",INDEX(Sheet1!A:A,MATCH("*" & A1 & "*",Sheet1!A:A,0)),"")

If this post helps click Yes
---------------
Jacob Skaria


"Fuzzy" wrote:

Dear experts!

I have two worksheets. Given examples below:

Excel 1

Column A
00123466799
126565897854
45457878451
45546544782
155467846564


Excel 2

Column A
1234667
65897854
57878451
46544782
67846564

I want to compare both the excels...... and give me result like a "vlookup"
function... however, in this case, the columns wont exactly match - but excel
1 "contains" the values of excel 2 in the same order - ignoring prefixes or
suffixes

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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Changing "returned" values from "0" to "blank" LATATC Excel Worksheet Functions 2 October 20th 05 04:41 PM


All times are GMT +1. The time now is 12:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"