Skip to playerSkip to main content
  • 4 weeks ago
Learn how to get common data from two tables in Excel. In another words, how do I extract common values from two columns in Excel? Or how do you compare two lists in Excel and pull matching data? We will nt be covering question to how do I use Vlookup to find matching data in two columns? but will be using FILTER() function instead. Essentially, find the Common Values between two lists in Excel.

These are the formulas outlined in my video.

Get Common Names Between 2 Tables
=FILTER(A4:A44,(COUNTIF(D4:D44,A4:A44)))

Get Common Names Between 2 Tables (record)
=FILTER(A4:B44,(COUNTIF(D4:D44,A4:A44)))


Here's the breakdown of the formula.
FILTER: The FILTER function is used to extract specific data from a range based on certain criteria.

A4:A44: This is the range of cells that we want to filter. In this case, it's the range from cell A4 to A44.

COUNTIF: The COUNTIF function counts the number of times a specific value appears in a range.

D4:D44: This is the range of cells where the COUNTIF function will look for the values from column A. In this case, it's the range from cell D4 to D44.

A4:A44 (inside COUNTIF): This is the range of cells from column A that will be counted in the COUNTIF function. It matches the same range used in the FILTER function.

The logic behind this formula is to filter the values in column A (A4:A44) based on the condition that each value appears at least once in column D (D4:D44). In other words, it returns only the values from column A that have at least one corresponding occurrence in column D.


How do I get common data from two tables in Excel?,How do I extract common values from two columns in Excel?,How do you compare two lists in Excel and pull matching data?,How do I use Vlookup to find matching data in two columns?,Find the Common Values between two lists in Excel,

Transcript
00:00In a comment section of one of my videos someone inquired how to compare two tables and return a
00:04common value in a separate column. This is how I would do it. In my table here I got table A
00:09and table B. I'm looking for common names here. So I'm going to use equal filter. The first argument
00:16would be from table A all the student name and then the second argument I'm going to use count
00:22ifs and in there I'm going to use table B's student name like this and then comma I'm going
00:28to compare with table A's student name like this and close parenthesis close parenthesis
00:33and hit enter and this will give you all the repeated names which is in table A and table B
00:38but if you also want the test result next to it all you have to do is to change
00:42formula here from A to include B as well and hit enter it will return the test result as well.
Be the first to comment
Add your comment

Recommended