search
HomeSoftware TutorialOffice SoftwareHow to find the same records in two EXCEL tables and count them

I have two EXCEL tables. How do I count the same records in these two tables?

Step 1: Copy all phone numbers in Table 1 and Table 2 to column A of Table 3. The first line of Table 3 is the header, and the second line starts with all the phone numbers, a total of 50,000 lines.

Step 2: Enter the number 1 in column B of Table 3, and use the formula "=COUNTA(A:A)" to fill the cells in column A to count the number of names in column A.

Step 3: Enter the formula SUMIF($B$2:$B$50000,A1,$B$2:$B$50000) in cell C2 of the table. Through this formula, you can get the number of duplicate names in the cells in column A. frequency. When the result is 1, it means there is no repetition. When it is greater than 1, it means there is repetition and the number of repetitions is displayed.

Step 4: Perform automatic filtering in column C of Table 3. The filtering should be based on the current data. For example, filtering "2" means selecting phone numbers repeated twice, and then filtering a phone number from column A. Number (because there may be many duplicate phone numbers, it is best to process them one by one to avoid errors). After deleting the remaining ones, the formula will automatically get "1". After all column A is displayed, it will show that there is no processing. Phone numbers that are repeated twice can be processed in the same way.

When all the data in column C is "1", the remaining phone numbers in column A are the only phone numbers without duplication.

Maybe a little troublesome, but still very accurate.

Also, I borrowed other people’s methods and showed them to you:

Step 1: First copy all the phone numbers in Table 1 and Table 2 to column B of Table 3, set row number 1 as the header, row number 2 to row number 50000 as all phone numbers;

Step 2: Enter the formula =IF(COUNTIF(B$2:B2,B2)=1,B2,"")

in A2

Then drag B2 towards fill to A50000

What is displayed are the phone numbers that are not repeated, and the repeated phone numbers are blank cells.

Copy A2:A50000, then right-click - Paste Special - Value, sort ascending and descending, and then clear the contents of column B.

How to find the corresponding information of duplicate cells in two EXCEL tables

If you want to use the 2003 version, just use the perspective mentioned above. If it is the 2007 version, there is an item in the data tab to delete duplicates. The specific operation is as follows:

1. Select the table you want to operate

2. Open the data tab

3.

How to find the same records in two EXCEL tables and count them

4. Then select the Remove Duplicates option

5.

How to find the same records in two EXCEL tables and count them

6. Just select the column you want to remove duplicates from. If it's in column B, select the title you wrote in column B. I wrote as supplier here. So select the hook before the supplier and remove the hook before the serial number. Just click OK.

7. The last and most important point is that your repeated names must be exactly the same. As you said, it is the same supplier, but the names are not exactly the same, such as Jinfuya Furniture and Federal. The names of the suppliers are not exactly the same, so you just have to search and replace them with the same name. Finally I hope it helps you.

How to compare two excel tables with some identical data in the two tables

1. Open the excel table, put data one on "Sheet1" and data two on "Sheet2".

How to find the same records in two EXCEL tables and count them

2. Enter in cell C2 of sheet1: =IF(COUNTIF(.

How to find the same records in two EXCEL tables and count them

3. Switch to the column in Sheet2 that needs to be queried, and then select the entire column.

How to find the same records in two EXCEL tables and count them

4. At this time, the formula in cell C2 in the Sheet1 table automatically changes to: =IF(COUNTIF(Sheet2!A:A.

How to find the same records in two EXCEL tables and count them

5. Keep the operation interface in Sheet1 and enter the comma under the English characters after the formula: =if(COUNTIF(Sheet2!A:A, .

How to find the same records in two EXCEL tables and count them

6. In sheet1, select cell A2 with the mouse, and the formula becomes: =IF(COUNTIF(Sheet2!A:A,Sheet1!A2.

How to find the same records in two EXCEL tables and count them

7. Next, manually complete the formula in English: =IF(COUNTIF(Sheet2!A:A,Sheet1!A2)>0, "Yes", "No").

How to find the same records in two EXCEL tables and count them

8. Click Enter to get the formula judgment result.

How to find the same records in two EXCEL tables and count them

9. Simply pull down the cell with the mouse to complete all judgments.

How to find the same records in two EXCEL tables and count them

The above is the detailed content of How to find the same records in two EXCEL tables and count them. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:Excel办公网. If there is any infringement, please contact admin@php.cn delete
I Always Name Ranges in Excel, and You Should TooI Always Name Ranges in Excel, and You Should TooApr 19, 2025 am 12:56 AM

Improve Excel efficiency: Make good use of named regions By default, Microsoft Excel cells are named after column-row coordinates, such as A1 or B2. However, you can assign more specific names to a cell or cell range, improving navigation, making formulas clearer, and ultimately saving time. Why always name regions in Excel? You may be familiar with bookmarks in Microsoft Word, which are invisible signposts for the specified locations in your document, and you can jump to where you want at any time. Microsoft Excel has a bit of a unimaginative alternative to this time-saving tool called "names" and is accessible via the name box in the upper left corner of the workbook. Related content #

Insert checkbox in Excel: create interactive checklist or to-do listInsert checkbox in Excel: create interactive checklist or to-do listApr 18, 2025 am 10:21 AM

This tutorial shows you how to create interactive Excel checklists, to-do lists, reports, and charts using checkboxes. Checkboxes, also known as tick boxes or selection boxes, are small squares you click to select or deselect options. Adding them to

Excel Advanced Filter – how to create and useExcel Advanced Filter – how to create and useApr 18, 2025 am 10:05 AM

This tutorial unveils the power of Excel's Advanced Filter, guiding you through its use in retrieving records based on complex criteria. Unlike the standard AutoFilter, which handles simpler filtering tasks, the Advanced Filter offers precise contro

How to use Advanced Filter in Excel - criteria range examples with formulasHow to use Advanced Filter in Excel - criteria range examples with formulasApr 18, 2025 am 09:05 AM

The tutorial shows how to use Advanced Filter in Excel and provides a number of non-trivial criteria range examples to create a case-sensitive filter, find matches and differences between two columns, extract records that match a smaller

Excel Filter: How to add, use and removeExcel Filter: How to add, use and removeApr 18, 2025 am 09:04 AM

This tutorial shows you how to effectively filter data in Excel. We'll cover filtering text, numbers, and dates, using search functions, and filtering by color or cell value. We'll also show you how to remove filters and troubleshoot common issues.

How to Make Your Excel Spreadsheet Accessible to AllHow to Make Your Excel Spreadsheet Accessible to AllApr 18, 2025 am 01:06 AM

Improve the accessibility of Excel tables: A practical guide When creating a Microsoft Excel workbook, be sure to take the necessary steps to make sure everyone has access to it, especially if you plan to share the workbook with others. This guide will share some practical tips to help you achieve this. Use a descriptive worksheet name One way to improve accessibility of Excel workbooks is to change the name of the worksheet. By default, Excel worksheets are named Sheet1, Sheet2, Sheet3, etc. This non-descriptive numbering system will continue when you click " " to add a new worksheet. There are multiple benefits to changing the worksheet name to make it more accurate to describe the worksheet content: carry

Excel Paste Special: shortcuts to copy values, comments, column width, etc.Excel Paste Special: shortcuts to copy values, comments, column width, etc.Apr 17, 2025 am 11:54 AM

This tutorial unlocks the power of Excel's Paste Special feature, showing you how to significantly boost your efficiency with paste special shortcuts. Learn to paste values, formulas, comments, formats, column widths, and more, all while avoiding co

How to add, copy and delete multiple checkboxes in ExcelHow to add, copy and delete multiple checkboxes in ExcelApr 17, 2025 am 11:01 AM

This tutorial shows you how to efficiently add, modify, and delete multiple checkboxes in Excel. Last week, we explored using checkboxes for checklists, conditional formatting, interactive reports, and dynamic charts. This week, we'll focus on the

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool