Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Peter for all your help - very much appreciated.
Kind regards, Chris. *** Sent via Developersdex http://www.developersdex.com *** |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks again Stefi - very much appreciated.
*** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
data comparison | Excel Discussion (Misc queries) | |||
data comparison | Charts and Charting in Excel | |||
Complex comparison of Columns of Data: Extracting unique records after comparison on 4 levels | Excel Programming | |||
Data Comparison | Excel Programming | |||
Help Again with data comparison | Excel Programming |