Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dan
 
Posts: n/a
Default comparing 2 similar columns on seperate work sheets in 1 workbook

How can I compare a column from worksheet 1 to a column in worksheet 2 of the
same work book?
  #2   Report Post  
Dan
 
Posts: n/a
Default

BTW, the cell my have a number or text in it but not formulas

"Dan" wrote:

How can I compare a column from worksheet 1 to a column in worksheet 2 of the
same work book?

  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

What are you looking for?

If you want to find out if each cell in Column A of sheet1 appears in column A
of sheet2, you could use a helper column of formulas:

=isnumber(match(a1,sheet2!a:a,0))
and drag down

And you could use the same kind of formula that will tell you if values in
sheet2 appear in sheet1.

Chip Pearson has lots of info about working with duplicates at:
http://www.cpearson.com/excel/duplicat.htm

Dan wrote:

How can I compare a column from worksheet 1 to a column in worksheet 2 of the
same work book?


--

Dave Peterson
  #4   Report Post  
Dan
 
Posts: n/a
Default

Does that do a random search of the other column for the number, or do you
have to just compare cell to cell?

"Dave Peterson" wrote:

What are you looking for?

If you want to find out if each cell in Column A of sheet1 appears in column A
of sheet2, you could use a helper column of formulas:

=isnumber(match(a1,sheet2!a:a,0))
and drag down

And you could use the same kind of formula that will tell you if values in
sheet2 appear in sheet1.

Chip Pearson has lots of info about working with duplicates at:
http://www.cpearson.com/excel/duplicat.htm

Dan wrote:

How can I compare a column from worksheet 1 to a column in worksheet 2 of the
same work book?


--

Dave Peterson

  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

It looks for the value in A1 anywhere in sheet2, column A.

It's a sequential search through column A, but once a match is found, it stops
looking. But all that stuff is taken care of by excel.

You don't have to compare A1 with sheet2!a1, then A1 with sheet2!a2, then with
sheet2!a3, ....

(I'm not quite sure if this answered your question, though.)

Dan wrote:

Does that do a random search of the other column for the number, or do you
have to just compare cell to cell?

"Dave Peterson" wrote:

What are you looking for?

If you want to find out if each cell in Column A of sheet1 appears in column A
of sheet2, you could use a helper column of formulas:

=isnumber(match(a1,sheet2!a:a,0))
and drag down

And you could use the same kind of formula that will tell you if values in
sheet2 appear in sheet1.

Chip Pearson has lots of info about working with duplicates at:
http://www.cpearson.com/excel/duplicat.htm

Dan wrote:

How can I compare a column from worksheet 1 to a column in worksheet 2 of the
same work book?


--

Dave Peterson


--

Dave Peterson
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
Sorting Identical Data set in a work sheet SAT Excel Worksheet Functions 0 September 13th 05 10:46 PM
Excel 2002 "Protect Sheet", but allow "Hide Columns"? VP Safe Excel Worksheet Functions 2 July 5th 05 07:13 PM
Get Msg "Cannot shift objects off sheet" when hidng columns" Why? Steve Ball Excel Discussion (Misc queries) 2 June 27th 05 06:41 PM
Link between similar sheet MK Excel Discussion (Misc queries) 1 June 26th 05 05:58 PM
Comparing Data in two columns Marianne Excel Worksheet Functions 3 November 5th 04 10:26 PM


All times are GMT +1. The time now is 01:18 PM.

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"