Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default comparing two columns

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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 506
Default comparing two columns

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 FormatConditional FormattingFormula 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. Thats 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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default comparing two columns

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" wrote in message
...
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
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
Comparing 3 Columns [email protected] Excel Worksheet Functions 2 April 22nd 09 07:15 PM
comparing columns mel New Users to Excel 2 November 20th 07 02:44 PM
Comparing two columns of information with 2 new columns of informa cbuck Excel Discussion (Misc queries) 1 January 16th 07 09:49 PM
comparing columns ~Q Excel Worksheet Functions 1 November 17th 05 07:41 PM
Comparing 2 columns if they are the same Faio Excel Worksheet Functions 4 November 15th 05 10:18 AM


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

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"