Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
PenelopeinCinci
 
Posts: n/a
Default How do I write a VBA code in excel that will compare two columns .

I am trying to compare two columns of data and extract unlike data. I am
familar with VBA code but have seen so many ways to do it. The Help section
in Excel makes it sound so easy but gives no real direction.
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Penelope,

One way

In C1, add the formula =A1<B1
Copy down the columns

Then do a DataFilterAutofilter, and filter on the value TRUE. This will
show the mis-matches.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"PenelopeinCinci" wrote in
message ...
I am trying to compare two columns of data and extract unlike data. I am
familar with VBA code but have seen so many ways to do it. The Help

section
in Excel makes it sound so easy but gives no real direction.



  #3   Report Post  
JulieD
 
Posts: n/a
Default

not a code answer but check out
http://www.cpearson.com/excel/duplicat.htm

for lots of ideas on dealing with duplicates

--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"PenelopeinCinci" wrote in
message ...
I am trying to compare two columns of data and extract unlike data. I am
familar with VBA code but have seen so many ways to do it. The Help
section
in Excel makes it sound so easy but gives no real direction.



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
How do I add an area code to a list of phone numbers in Excel? PPuser Excel Worksheet Functions 2 April 5th 05 08:35 PM
Opening a file with code without a set file name jenkinspat Excel Discussion (Misc queries) 1 March 4th 05 10:50 AM
Opening a file with code without a set file name jenkinspat Excel Discussion (Misc queries) 1 March 3rd 05 03:40 PM
excel: How can I color code rows based on a value in a cell? Parker1333 Excel Discussion (Misc queries) 2 February 1st 05 10:37 PM
VB Automation is Whacking out my Excel Environment Joseph Geretz Excel Discussion (Misc queries) 2 December 29th 04 03:49 PM


All times are GMT +1. The time now is 08:30 AM.

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

About Us

"It's about Microsoft Excel"