Note: The other languages of the website are Google-translated. Back to English
English English

How to find common values in 3 columns in Excel?

In general case, you may need to find and select the same values between two columns in Excel, but, have you ever tried to find the common values among three columns which means the values exist in 3 columns at the same time as following screenshot shown. This article, I will introduce some methods to finish this task in Excel.

doc common values in 3 columns 1

Find common values in 3 columns with array formulas


arrow blue right bubble Find common values in 3 columns with array formulas

To find and extract the common values from 3 columns, the following array formula may help you, please do as this:

Enter this array formula into a blank cell where you want to extract the same values from 3 columns:

=LOOKUP("zzz",CHOOSE({1,2},"",INDEX(A$2:A$10,MATCH(0,COUNTIF(E$1:E1,A$2:A$10)+IF(IF(COUNTIF(B$2:B$8,A$2:A$10)>0,1,0)+IF(COUNTIF(C$2:C$9,A$2:A$10)>0,1,0)=2,0,1),0)))), and then press Shift + Ctrl + Enter keys together to get the first common value, then drag this formula down until blanks are displayed, all of the same values in 3 columns are extracted as below screenshot shown:

doc common values in 3 columns 2

Notes:

1. Here is another array formula also can finish this job:

=INDEX($A$2:$A$10, MATCH(0, COUNTIF($E$1:E1, $A$2:$A$10)+IF(IF(COUNTIF($B$2:$B$8, $A$2:$A$10)>0, 1, 0)+IF(COUNTIF($C$2:$C$9, $A$2:$A$10)>0, 1, 0)=2, 0, 1), 0)), please remember to press Shift + Ctrl + Enter keys simultaneously.

2. In the above formulas: A2:A10, B2:B8, C2:C9 are the cells in three columns that you want to compare; E1 is the above cell that your formula is located, you can change them to your need.


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Comments (12)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I HAD TRIED THE FORMULA, BUT DO NOT GET THE RESULT. WHY??
This comment was minimized by the moderator on the site
Same here. I get "#N/A" instead of any results. I even recreated the spreadsheet shown in the example and got the same results.
This comment was minimized by the moderator on the site
Hello, Richard,
The formula works well in my workbook, could you give a screesnhot here to show your problem?
You can take a screenshot and click Upload files icon to insert your screenshot here.
Thank you!
This comment was minimized by the moderator on the site
I have tried the formula and it seems it works. Could I apply the same to find a macth between 5 columns?
This comment was minimized by the moderator on the site
yes, I did that.

This comment was minimized by the moderator on the site
Hello. I tried using this formula and it works perfectly but there is one slight problem. It takes a lot of time for the calculation. It is taking around 20 seconds everytime I change some entries in the columns. Can you help regarding it?
This comment was minimized by the moderator on the site
hi any body can help me ?how to find common values if i have 10 column or above please solve that formula or mail my address abrkayani@gmail.com
This comment was minimized by the moderator on the site
HI, I am coping and pasting the above formula and i can't get it to work. I have many blank cells appearing but no common data showing. Please what am I doing wrong? I keep the "zzz" in the lookup formula is that correct?
This comment was minimized by the moderator on the site
could you tell me why the match function, lookup value is 0?
This comment was minimized by the moderator on the site
i would like to know the match function, how do you use it. It is different from the traditional usage.
This comment was minimized by the moderator on the site
ONLY ONE NAME IS FOUND COMMON... REST ARE IGNORED
This comment was minimized by the moderator on the site
Hello, Prtsxr,
The formula works well in my worksheet, could you insert the screenshot of your problem data here? or insert an attachment of your data, so that we can chek where the problem is.
Thank you!
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations