Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Matching Two Columns with Many rows

Hello all,

I have never used this posting system before and I considered myself an
advanced Excel user before reading some of the posts and their answers on
this site. I have never used VBA before or any Macros, so please keep that
in mind if answering.

Question:

I have two columns of data (A and B). Each has close to 1000 rows. I need
to know which values appear in both columns. That's most important. I would
also like to know which values are exclusively in Column A or B, but that
would be secondary.

Thank you in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Matching Two Columns with Many rows

Hi Srbanksphd

See Chip Pearson's duplicates pages for a variety of techniques:

http://www.cpearson.com/excel/duplic...tingDuplicates


---
Regards,
Norman


"srbanksphd" wrote in message
...
Hello all,

I have never used this posting system before and I considered myself an
advanced Excel user before reading some of the posts and their answers on
this site. I have never used VBA before or any Macros, so please keep
that
in mind if answering.

Question:

I have two columns of data (A and B). Each has close to 1000 rows. I
need
to know which values appear in both columns. That's most important. I
would
also like to know which values are exclusively in Column A or B, but that
would be secondary.

Thank you in advance.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Matching Two Columns with Many rows

I'd insert a new column B and a new column D.

So the original data is in column A and column C.

Then in B1, put this formula:
=if(isnumber(match(a1,c:c,0)),"In column C","Not in column C")
then drag down.

And a similar formula in column D:
=if(isnumber(match(c1,a:a,0)),"In column A","Not in column A")

========

In fact, you may want to try this.

Start a new worksheet
copy your data in column A to column A of that new worksheet
copy your data in column B to the bottom of column A of that new worksheet
(include a single header row in row 1)

Now you have a giant list in column A--but it may have duplicates.

Select column A of that new worksheet.
Data|Filter|advanced filter
copy to another location (Use B1 of that new sheet)
Check unique records only

Delete column A (we're done with it)

Add headers in B1 and C1:
B1: It's in column A
C1: It's in column B

Now put this in B2.
=isnumber(match(a2,sheet1!a:a,0))
put this in C2:
=isnumber(match(a2,sheet1!b:b,0))

Select B2:C2
and drag down.

You can filter on each of those columns to see what you want.
You'l


srbanksphd wrote:

Hello all,

I have never used this posting system before and I considered myself an
advanced Excel user before reading some of the posts and their answers on
this site. I have never used VBA before or any Macros, so please keep that
in mind if answering.

Question:

I have two columns of data (A and B). Each has close to 1000 rows. I need
to know which values appear in both columns. That's most important. I would
also like to know which values are exclusively in Column A or B, but that
would be secondary.

Thank you in advance.


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 318
Default Matching Two Columns with Many rows

Hi,
Highlight the range from A1 to A1000 and do conditional formatting. Select
the option Formula is and type the following

=COUNTIF(B:B,A1)0

Format the cells with say yellow background. Click on OK.

Similarly do the conditional formatting form B1 to B1000. The formula there
will be

=COUNTIF(A:A,B1)0

The cells which do not turn yellow are unique. Those that have a yellow
background are in the other column.

Alok



"srbanksphd" wrote:

Hello all,

I have never used this posting system before and I considered myself an
advanced Excel user before reading some of the posts and their answers on
this site. I have never used VBA before or any Macros, so please keep that
in mind if answering.

Question:

I have two columns of data (A and B). Each has close to 1000 rows. I need
to know which values appear in both columns. That's most important. I would
also like to know which values are exclusively in Column A or B, but that
would be secondary.

Thank you in advance.

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
Matching Columns in work sheets and copying both rows to new Shelley68 Excel Discussion (Misc queries) 1 March 19th 10 07:09 PM
how do i paste rows/columns avoiding hidden rows/columns perezli Excel Discussion (Misc queries) 1 January 30th 09 03:58 PM
deduplicate rows matching three columns G[_2_] Excel Worksheet Functions 2 November 10th 07 05:02 AM
Excel 2003 - change columns to rows and rows to columns Trish Excel Discussion (Misc queries) 0 August 17th 07 02:22 AM
Excel 2003 - change columns to rows and rows to columns JLatham Excel Discussion (Misc queries) 0 August 17th 07 02:05 AM


All times are GMT +1. The time now is 02:33 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"