PC Review


Reply
Thread Tools Rate Thread

comparing two columns

 
 
lputnam
Guest
Posts: n/a
 
      30th Nov 2009
I need to compare cells 2 columns and return a value if different.
e.g.
A1: 2002 B:2002
A2: 2002 B:2003
A3: 2002 B:2002

Need to identify row 2 is different (with an x and a color?) I have about
1000 rows to compare.
I tried some of the formulas listed in this section e.g.
=if(countif(a:a,a25)>1,a25,"")
but didn't return what i wanted.
 
Reply With Quote
 
 
 
 
Ms-Exl-Learner
Guest
Posts: n/a
 
      30th Nov 2009
Paste this formula in C1 cell
=IF(A1=B1,"Both Are Same","Mismatch")
Now copy the C1 cell and paste it to the remaining cells of C Column depends
upon your A & B Column Data.

For Applying the Conditional Formatting
Place the Cursor in A1 cell and hit Cntrl+Spacebar now the Total A Column
will be selected and extend your selection to B Column by holding Shift +
Right Arrow and you can notice that the A1 will have the White Background
after selection also.

Now goto Format>>Conditional Formatting>>Formula Is>> Paste the below formula
=$A1<>$B1
Click Format and set the desired Font colour and background as per your
desired give Ok and Hit Ok once Again. That’s It!

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"lputnam" wrote:

> I need to compare cells 2 columns and return a value if different.
> e.g.
> A1: 2002 B:2002
> A2: 2002 B:2003
> A3: 2002 B:2002
>
> Need to identify row 2 is different (with an x and a color?) I have about
> 1000 rows to compare.
> I tried some of the formulas listed in this section e.g.
> =if(countif(a:a,a25)>1,a25,"")
> but didn't return what i wanted.

 
Reply With Quote
 
David Biddulph
Guest
Posts: n/a
 
      30th Nov 2009
Conditional Formatting/ Formula is: =A1<>B1
Set your desired format

Or (to format cell B1), Conditional Formatting/ Cell value is/ Not equal to:
=A1
--
David Biddulph


"lputnam" <(E-Mail Removed)> wrote in message
news:B7818DAA-5A13-4794-8FAB-(E-Mail Removed)...
>I need to compare cells 2 columns and return a value if different.
> e.g.
> A1: 2002 B:2002
> A2: 2002 B:2003
> A3: 2002 B:2002
>
> Need to identify row 2 is different (with an x and a color?) I have about
> 1000 rows to compare.
> I tried some of the formulas listed in this section e.g.
> =if(countif(a:a,a25)>1,a25,"")
> but didn't return what i wanted.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing columns Dave T Microsoft Excel Worksheet Functions 1 23rd May 2009 10:27 AM
comparing two columns JoeM Microsoft Excel Worksheet Functions 5 1st May 2009 07:12 PM
Need elp comparing two columns in VBA lenarei.vitocruz@gmail.com Microsoft Excel Programming 0 27th Aug 2007 03:57 PM
Comparing 2 columns if they are the same Faio Microsoft Excel Worksheet Functions 4 15th Nov 2005 10:18 AM
Comparing 2 columns lynn Microsoft Excel Worksheet Functions 1 29th Jan 2004 09:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:15 AM.