Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / December 2005

Tip: Looking for answers? Try searching our database.

How do I compare 2 text columns & show differences in 3rd?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kelli Freeman - 28 Dec 2005 22:09 GMT
In Excel XP I'm trying to compare two columns and extract the differences in
the 3rd column. For example,

Column 1   Column 2   Column 3
ACD           ACDI          I

Is it possible to perform this function?
Ashish Mathur - 29 Dec 2005 00:38 GMT
Hi,

In A1, we have the text "acdir" (without quotes) and in B1 we have the text
"acdirtyu" (without quotes).  In cell C1 enter the following array formula
(Ctrl+Shift+Enter)

=IF(ISNUMBER(FIND(A1,B1)),MID(B1,COUNTA(MID($A$1,ROW(INDIRECT("1:"&LEN(A1))),1))+1,10))

Please check various combinations to see how it works.  If you have any
further queries, please feel free to contact me at mathurashish@hotmail.com.

Regards,

Ashish Mathur

> In Excel XP I'm trying to compare two columns and extract the differences in
> the 3rd column. For example,
[quoted text clipped - 3 lines]
>
> Is it possible to perform this function?
darkwood - 29 Dec 2005 00:42 GMT
not that i know of.  What is the purpose of doing that?  There may be a
way to format the text so that it can be manipulated, but depends on
the purpose.

For example:

if the difference is always at the end of the data string, there would
be an easy solution, especially if the data strings are all the same
length.

Signature

darkwood

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.