A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to highlight what's different between two columns



 
 
Thread Tools Display Modes
  #1  
Old November 10th, 2009, 06:13 PM posted to microsoft.public.excel.misc
Cesar Urquidi[_4_]
external usenet poster
 
Posts: 1
Default How to highlight what's different between two columns

Hello,
I have two columns with alphanumeric data ("a" & "b").
The data in the cells is not necessarily in the same row all the time (may
or may not be aligned).
Sometimes one column is longer than the other.
Here's an example:

Column A Column B
10100A 10100A
10200A 10200A
10300A 10300A
10400A 10400A
10500A 10600A
10600A 10700A
10700A 10800A
10800A 10900B
10900A

Is there a way to highlight the cells that are different in the two columns???
Either by using a formula in column "c", or by using conditional formatting
by selecting the whole column from the top ("a" & "b")???

In this example these are the cells that need to be highlighted:

"10500A" (Because it is in "a", but not in "b").
"10900A" (Because it is in "a", but not in "b").
"10900B" (Because it is in "b", but not in "a").

Help please!!!

Thank you.
  #2  
Old November 10th, 2009, 06:36 PM posted to microsoft.public.excel.misc
Bernard Liengme
external usenet poster
 
Posts: 4,085
Default How to highlight what's different between two columns

In C1 use =IF(OR(A1="",COUNTIF(B:B,A1)),"","missing")
and copy down the column to find which A values are not present in B
In D1 use =IF(OR(B1="",COUNTIF(A:A,B1)),"","missing")

For conditional formatting; select all of A and used
Formula Is =AND(A1"",COUNTIF(B:B,A1)=0) and set font of fill colour as
needed
Select all of B and use =AND(B1"",COUNTIF(A:A,B1)=0

best wishes

--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Cesar Urquidi" Cesar wrote in message
...
Hello,
I have two columns with alphanumeric data ("a" & "b").
The data in the cells is not necessarily in the same row all the time (may
or may not be aligned).
Sometimes one column is longer than the other.
Here's an example:

Column A Column B
10100A 10100A
10200A 10200A
10300A 10300A
10400A 10400A
10500A 10600A
10600A 10700A
10700A 10800A
10800A 10900B
10900A

Is there a way to highlight the cells that are different in the two
columns???
Either by using a formula in column "c", or by using conditional
formatting
by selecting the whole column from the top ("a" & "b")???

In this example these are the cells that need to be highlighted:

"10500A" (Because it is in "a", but not in "b").
"10900A" (Because it is in "a", but not in "b").
"10900B" (Because it is in "b", but not in "a").

Help please!!!

Thank you.


  #3  
Old November 10th, 2009, 06:37 PM posted to microsoft.public.excel.misc
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default How to highlight what's different between two columns

Check your other post in Worksheet functions


"Cesar Urquidi" wrote:

Hello,
I have two columns with alphanumeric data ("a" & "b").
The data in the cells is not necessarily in the same row all the time (may
or may not be aligned).
Sometimes one column is longer than the other.
Here's an example:

Column A Column B
10100A 10100A
10200A 10200A
10300A 10300A
10400A 10400A
10500A 10600A
10600A 10700A
10700A 10800A
10800A 10900B
10900A

Is there a way to highlight the cells that are different in the two columns???
Either by using a formula in column "c", or by using conditional formatting
by selecting the whole column from the top ("a" & "b")???

In this example these are the cells that need to be highlighted:

"10500A" (Because it is in "a", but not in "b").
"10900A" (Because it is in "a", but not in "b").
"10900B" (Because it is in "b", but not in "a").

Help please!!!

Thank you.

  #4  
Old November 13th, 2009, 06:30 PM posted to microsoft.public.excel.misc
Cesar Urquidi[_3_]
external usenet poster
 
Posts: 12
Default How to highlight what's different between two columns

Thank you very much!!!
It worked just perfect!!!

Have a good day!
Cesar Urquidi

"Bernard Liengme" wrote:

In C1 use =IF(OR(A1="",COUNTIF(B:B,A1)),"","missing")
and copy down the column to find which A values are not present in B
In D1 use =IF(OR(B1="",COUNTIF(A:A,B1)),"","missing")

For conditional formatting; select all of A and used
Formula Is =AND(A1"",COUNTIF(B:B,A1)=0) and set font of fill colour as
needed
Select all of B and use =AND(B1"",COUNTIF(A:A,B1)=0

best wishes

--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Cesar Urquidi" Cesar wrote in message
...
Hello,
I have two columns with alphanumeric data ("a" & "b").
The data in the cells is not necessarily in the same row all the time (may
or may not be aligned).
Sometimes one column is longer than the other.
Here's an example:

Column A Column B
10100A 10100A
10200A 10200A
10300A 10300A
10400A 10400A
10500A 10600A
10600A 10700A
10700A 10800A
10800A 10900B
10900A

Is there a way to highlight the cells that are different in the two
columns???
Either by using a formula in column "c", or by using conditional
formatting
by selecting the whole column from the top ("a" & "b")???

In this example these are the cells that need to be highlighted:

"10500A" (Because it is in "a", but not in "b").
"10900A" (Because it is in "a", but not in "b").
"10900B" (Because it is in "b", but not in "a").

Help please!!!

Thank you.


.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.