Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default how to find common cells in several columns

Hi, can anyone help me on this? Let say we have 3 columns of data. I want to
show in another column for data that appears in all 3 columns. E.g.
A B C
1 apple orange education
2 education education card
3 flower apple flower
4 baby phone baby
5 phone baby apple
I want to return "apple", "education" and "baby" in another column since
these 3 terms appear in all 3 columns.

Is there a way that I can do it quickly? Thanks in advance for your help!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default how to find common cells in several columns

On Jun 1, 12:31 pm, Landa wrote:
Hi, can anyone help me on this? Let say we have 3 columns of data. I want to
show in another column for data that appears in all 3 columns. E.g.
A B C
1 apple orange education
2 education education card
3 flower apple flower
4 baby phone baby
5 phone baby apple
I want to return "apple", "education" and "baby" in another column since
these 3 terms appear in all 3 columns.

Is there a way that I can do it quickly? Thanks in advance for your help!!


If you start your intersect column from D1 then use the following
*Array* formula in D1 and copy down.

=INDEX($A$1:$A$5,SMALL(IF((COUNTIF($B$1:$B$5,$A$1: $A$5)0)*(COUNTIF($C
$1:$C$5,$A$1:$A$5)0),ROW($A$1:$A$5)-ROW($A$1)+1),ROW()-ROW($D$1)+1))

- Change $D$1 to whatever cell you start your output from.
- This is an *array* formula. Commit with Shift+Ctrl+Enter

HTH
Kostis Vezerides

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default how to find common cells in several columns

Thanks a lot Kostis. It works perfectly :)

"vezerid" wrote:

On Jun 1, 12:31 pm, Landa wrote:
Hi, can anyone help me on this? Let say we have 3 columns of data. I want to
show in another column for data that appears in all 3 columns. E.g.
A B C
1 apple orange education
2 education education card
3 flower apple flower
4 baby phone baby
5 phone baby apple
I want to return "apple", "education" and "baby" in another column since
these 3 terms appear in all 3 columns.

Is there a way that I can do it quickly? Thanks in advance for your help!!


If you start your intersect column from D1 then use the following
*Array* formula in D1 and copy down.

=INDEX($A$1:$A$5,SMALL(IF((COUNTIF($B$1:$B$5,$A$1: $A$5)0)*(COUNTIF($C
$1:$C$5,$A$1:$A$5)0),ROW($A$1:$A$5)-ROW($A$1)+1),ROW()-ROW($D$1)+1))

- Change $D$1 to whatever cell you start your output from.
- This is an *array* formula. Commit with Shift+Ctrl+Enter

HTH
Kostis Vezerides


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default how to find common cells in several columns

Glad it worked. Thanks for the feedback.

Kostis

On Jun 7, 12:41 pm, Landa wrote:
Thanks a lot Kostis. It works perfectly :)

"vezerid" wrote:
On Jun 1, 12:31 pm, Landa wrote:
Hi, can anyone help me on this? Let say we have 3 columns of data. I want to
show in another column for data that appears in all 3 columns. E.g.
A B C
1 apple orange education
2 education education card
3 flower apple flower
4 baby phone baby
5 phone baby apple
I want to return "apple", "education" and "baby" in another column since
these 3 terms appear in all 3 columns.


Is there a way that I can do it quickly? Thanks in advance for your help!!


If you start your intersect column from D1 then use the following
*Array* formula in D1 and copy down.


=INDEX($A$1:$A$5,SMALL(IF((COUNTIF($B$1:$B$5,$A$1: $A$5)0)*(COUNTIF($C
$1:$C$5,$A$1:$A$5)0),ROW($A$1:$A$5)-ROW($A$1)+1),ROW()-ROW($D$1)+1))


- Change $D$1 to whatever cell you start your output from.
- This is an *array* formula. Commit with Shift+Ctrl+Enter


HTH
Kostis Vezerides



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 to find and highlight common text in multiple columns ToExcelAtExcel Excel Discussion (Misc queries) 2 November 13th 06 10:44 PM
comparing two columns of data to find common values patman Excel Discussion (Misc queries) 2 July 25th 06 03:05 PM
How do I find items common to two columns in Excel? TJ auminer Excel Discussion (Misc queries) 0 November 18th 05 04:20 PM
How do I find items common to two columns in Excel? bpeltzer Excel Discussion (Misc queries) 0 November 18th 05 04:11 PM
How can I find the common names in two columns of names? hako Excel Discussion (Misc queries) 2 December 8th 04 01:59 AM


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