Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
kuansheng
 
Posts: n/a
Default How to compare two column of data and sort them out according


Hi,
I have this problem, What i have on hand is two column of data
containing part number of two different devices. What i am trying to do
is to compare this two column and find out all the part number that is
common to both device and also which part number is unique. And
organise and display this in excel. Anyone know any way to accomplish
it please help.


--
kuansheng
------------------------------------------------------------------------
kuansheng's Profile: http://www.excelforum.com/member.php...o&userid=30658
View this thread: http://www.excelforum.com/showthread...hreadid=503578

  #2   Report Post  
Posted to microsoft.public.excel.newusers
R..VENKATARAMAN
 
Posts: n/a
Default How to compare two column of data and sort them out according

try David Mcritchies's pushdown macro
in google serach for this expert's name


"kuansheng" wrote in
message ...

Hi,
I have this problem, What i have on hand is two column of data
containing part number of two different devices. What i am trying to do
is to compare this two column and find out all the part number that is
common to both device and also which part number is unique. And
organise and display this in excel. Anyone know any way to accomplish
it please help.


--
kuansheng
------------------------------------------------------------------------
kuansheng's Profile:
http://www.excelforum.com/member.php...o&userid=30658
View this thread: http://www.excelforum.com/showthread...hreadid=503578



  #3   Report Post  
Posted to microsoft.public.excel.newusers
Ron Coderre
 
Posts: n/a
Default How to compare two column of data and sort them out according

Try this:

Note the $ signs in the references below. They are critical.

First, stack the lists so the 2nd list is below the other with device
references next to each part.

Example (in cells A1:B10):
Part Device
a Widget
b Widget
c Widget
d Widget
b Gadget
c Gadget
w Gadget
x Gadget
y Gadget

Next, a little setup
D1: Test
D2: =COUNTIF($A$1:$A$10,A2)=1

F1: Unique
F2: Part
G2: Device

I1: Shared
I2: Part

Extrracting the data is next:
Select A1:A10
DataFilterAdvanced Filter
Check: Copy to another location
List range: (already selected $A$1:$A$10)
Criteria range: $D$1:$D$2
Copy to: $F$2:$G$2
Click the [OK] button
(That extracts the unique part numbers)

In this example:
Unique
Part Device
a Widget
d Widget
w Gadget
x Gadget
y Gadget


Next, change the criteria formula:
D2: =COUNTIF($A$1:$A$10,A2)1

Again, select A1:A10
DataFilterAdvanced Filter
Check: Copy to another location
Check: Unique records only
List range: (already selected $A$1:$A$10)
Criteria range: $D$1:$D$2
Copy to: $I$2
Click the [OK] button
(That extracts the part numbers used by both devices)

In this example:
Shared
Part
b
c

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"kuansheng" wrote:


Hi,
I have this problem, What i have on hand is two column of data
containing part number of two different devices. What i am trying to do
is to compare this two column and find out all the part number that is
common to both device and also which part number is unique. And
organise and display this in excel. Anyone know any way to accomplish
it please help.


--
kuansheng
------------------------------------------------------------------------
kuansheng's Profile: http://www.excelforum.com/member.php...o&userid=30658
View this thread: http://www.excelforum.com/showthread...hreadid=503578


  #4   Report Post  
Posted to microsoft.public.excel.newusers
Ron Coderre
 
Posts: n/a
Default How to compare two column of data and sort them out according

Reference correction

In both instances, the Advanced Filter List Range should be: $A$1:$B$10
instead of A$1:$A$10

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Ron Coderre" wrote:

Try this:

Note the $ signs in the references below. They are critical.

First, stack the lists so the 2nd list is below the other with device
references next to each part.

Example (in cells A1:B10):
Part Device
a Widget
b Widget
c Widget
d Widget
b Gadget
c Gadget
w Gadget
x Gadget
y Gadget

Next, a little setup
D1: Test
D2: =COUNTIF($A$1:$A$10,A2)=1

F1: Unique
F2: Part
G2: Device

I1: Shared
I2: Part

Extrracting the data is next:
Select A1:A10
DataFilterAdvanced Filter
Check: Copy to another location
List range: (already selected $A$1:$A$10)
Criteria range: $D$1:$D$2
Copy to: $F$2:$G$2
Click the [OK] button
(That extracts the unique part numbers)

In this example:
Unique
Part Device
a Widget
d Widget
w Gadget
x Gadget
y Gadget


Next, change the criteria formula:
D2: =COUNTIF($A$1:$A$10,A2)1

Again, select A1:A10
DataFilterAdvanced Filter
Check: Copy to another location
Check: Unique records only
List range: (already selected $A$1:$A$10)
Criteria range: $D$1:$D$2
Copy to: $I$2
Click the [OK] button
(That extracts the part numbers used by both devices)

In this example:
Shared
Part
b
c

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"kuansheng" wrote:


Hi,
I have this problem, What i have on hand is two column of data
containing part number of two different devices. What i am trying to do
is to compare this two column and find out all the part number that is
common to both device and also which part number is unique. And
organise and display this in excel. Anyone know any way to accomplish
it please help.


--
kuansheng
------------------------------------------------------------------------
kuansheng's Profile: http://www.excelforum.com/member.php...o&userid=30658
View this thread: http://www.excelforum.com/showthread...hreadid=503578


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
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
sort column data with hidden columns - excel 2003 nanimadrina Excel Discussion (Misc queries) 2 April 26th 05 08:27 PM
How do I sort a column of data and have each data row sort accordi Oedalis Excel Discussion (Misc queries) 1 March 17th 05 11:52 PM


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