Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Data comparison

Hello,

Could some please help me with the following?

I wish to compare the text in column A of my workbook with the text in
column B to determine all the data in column A which is not contained in
column B.

I have no idea on how to accomplish this task, so any help would be
greatly appreciated.

Thanks,

Chris.



*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Data comparison

What do you mean by compare? Perhaps a few examples to illustrate.

Regards,
Peter T

"Chris Hankin" wrote in message
...
Hello,

Could some please help me with the following?

I wish to compare the text in column A of my workbook with the text in
column B to determine all the data in column A which is not contained in
column B.

I have no idea on how to accomplish this task, so any help would be
greatly appreciated.

Thanks,

Chris.



*** Sent via Developersdex http://www.developersdex.com ***



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Data comparison

Thanks Peter for your reply. An example is given below:

Column A: contains the following text data:

Cell A1: 001ABC96-74
Cell A2: RT000-PL/63
Cell A3: M002637-IREWS
Cell A4: 002-PLK

Column B: contains the following text data:

Cell B1: RT000-PL/63
Cell B2: 002-PLK
Cell B3: M002637-IREWS
Cell B4: TR78-LMN-9600

There is a lot more data contained in columns A & B of my workbook, but
this hopefully will give you an idea of what I am trying to do. I need
to compare the two columns such that the following text data is output
to column C:

001ABC96-74
TR78-LMN-9600

There maybe some text data in column A that is not in column B and
conversely, there maybe some text data in column B that is not in column
A.

I hope this helps,

Kind regards,

Chris.








*** Sent via Developersdex http://www.developersdex.com ***
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default Data comparison

Now it's a bit clearer. Perhaps this formula is closer to your needs:
=IF(ISERROR(MATCH(A1,B:B,0)),A1,"")
Stefi


€˛Chris Hankin€¯ ezt Ć*rta:

Thanks Peter for your reply. An example is given below:

Column A: contains the following text data:

Cell A1: 001ABC96-74
Cell A2: RT000-PL/63
Cell A3: M002637-IREWS
Cell A4: 002-PLK

Column B: contains the following text data:

Cell B1: RT000-PL/63
Cell B2: 002-PLK
Cell B3: M002637-IREWS
Cell B4: TR78-LMN-9600

There is a lot more data contained in columns A & B of my workbook, but
this hopefully will give you an idea of what I am trying to do. I need
to compare the two columns such that the following text data is output
to column C:

001ABC96-74
TR78-LMN-9600

There maybe some text data in column A that is not in column B and
conversely, there maybe some text data in column B that is not in column
A.

I hope this helps,

Kind regards,

Chris.








*** Sent via Developersdex http://www.developersdex.com ***

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Data comparison

Thanks Stefi - I will give your new formula a try - thanks again for all
your excellent help - greatly appreciated.

Cheers,

Chris.



*** Sent via Developersdex http://www.developersdex.com ***


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Data comparison

Adapting Stefi's formula

C1: =IF(ISERROR(MATCH(A1,B:B,0)),A1,"")
D1: =IF(ISERROR(MATCH(B1,A:A,0)),B1,"")

Copy C1:D1 down

Copy and PasteSpecial Values elsewhere and sort

Regards,
Peter T

"Chris Hankin" wrote in message
...
Thanks Peter for your reply. An example is given below:

Column A: contains the following text data:

Cell A1: 001ABC96-74
Cell A2: RT000-PL/63
Cell A3: M002637-IREWS
Cell A4: 002-PLK

Column B: contains the following text data:

Cell B1: RT000-PL/63
Cell B2: 002-PLK
Cell B3: M002637-IREWS
Cell B4: TR78-LMN-9600

There is a lot more data contained in columns A & B of my workbook, but
this hopefully will give you an idea of what I am trying to do. I need
to compare the two columns such that the following text data is output
to column C:

001ABC96-74
TR78-LMN-9600

There maybe some text data in column A that is not in column B and
conversely, there maybe some text data in column B that is not in column
A.

I hope this helps,

Kind regards,

Chris.








*** Sent via Developersdex http://www.developersdex.com ***



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Data comparison

Thanks Peter for all your help - very much appreciated.

Kind regards,

Chris.



*** Sent via Developersdex http://www.developersdex.com ***
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default Data comparison

If I understood well your question, this formula in C1 (and dragged down as
necessary) returns TRUE if value in column A is found in column B, FALSE
otherwise.

Regards,
Stefi


€˛Chris Hankin€¯ ezt Ć*rta:

Hello,

Could some please help me with the following?

I wish to compare the text in column A of my workbook with the text in
column B to determine all the data in column A which is not contained in
column B.

I have no idea on how to accomplish this task, so any help would be
greatly appreciated.

Thanks,

Chris.



*** Sent via Developersdex http://www.developersdex.com ***

  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Data comparison

Thanks Stefi for your reply - however I could not see your formula to
enter in cell C1?

Could you please advise on the formula you mentioned in your reply?

Thanks,

Chris.



*** Sent via Developersdex http://www.developersdex.com ***
  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default Data comparison

Sorry, I forgot to copy it:
=NOT(ISERROR(MATCH(A1,B:B,0)))
Stefi


€˛Chris€¯ ezt Ć*rta:

Thanks Stefi for your reply - however I could not see your formula to
enter in cell C1?

Could you please advise on the formula you mentioned in your reply?

Thanks,

Chris.



*** Sent via Developersdex http://www.developersdex.com ***



  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Data comparison

Thanks again Stefi - very much appreciated.



*** Sent via Developersdex http://www.developersdex.com ***
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
data comparison Ktran Excel Discussion (Misc queries) 1 December 2nd 09 03:54 PM
data comparison Ktran Charts and Charting in Excel 0 December 2nd 09 08:21 AM
Complex comparison of Columns of Data: Extracting unique records after comparison on 4 levels ap Excel Programming 2 January 23rd 07 10:12 AM
Data Comparison Marilyne Excel Programming 14 February 10th 04 04:35 PM
Help Again with data comparison Marilyne Excel Programming 0 February 6th 04 04:41 PM


All times are GMT +1. The time now is 01:40 PM.

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"