ไปยังเนื้อหาหลัก

วิธีการนับค่าที่ซ้ำกันในคอลัมน์ใน Excel

หากคุณมีรายการข้อมูลในแผ่นงานที่มีค่าที่ไม่ซ้ำกันและค่าที่ซ้ำกันและคุณไม่เพียง แต่ต้องการนับความถี่ของค่าที่ซ้ำกันเท่านั้น แต่ยังต้องการทราบลำดับของการเกิดค่าที่ซ้ำกันด้วย ใน Excel ฟังก์ชัน COUNTIF สามารถช่วยคุณนับค่าที่ซ้ำกันได้


นับความถี่ของรายการที่ซ้ำกันใน Excel

ใน Excel คุณสามารถใช้ฟังก์ชัน COUNTIF เพื่อนับรายการที่ซ้ำกัน

เลือกเซลล์ว่างที่อยู่ติดกับข้อมูลแรกของรายการของคุณแล้วพิมพ์สูตรนี้ = COUNTIF ($ A $ 2: $ A $ 9, A2) (ช่วง $ ก $ 2: $ ก $ 9 ระบุรายการข้อมูลและ A2 หมายถึงเซลล์ที่คุณต้องการนับความถี่คุณสามารถเปลี่ยนได้ตามต้องการ) จากนั้นกด เข้าสู่แล้วลากที่จับเติมเพื่อเติมคอลัมน์ที่คุณต้องการ ดูภาพหน้าจอ:

ปลาย: หากคุณต้องการนับรายการที่ซ้ำกันในคอลัมน์ทั้งหมดให้ใช้สูตรนี้ = COUNTIF (A: A, A2) ( คอลัมน์ก ระบุคอลัมน์ของข้อมูลและ A2 หมายถึงเซลล์ที่คุณต้องการนับความถี่คุณสามารถเปลี่ยนได้ตามต้องการ)

เลือกและนับค่าที่ซ้ำกัน / ไม่ซ้ำกันทั้งหมดอย่างรวดเร็วจากคอลัมน์ใน Excel

โดยทั่วไปเราสามารถลบรายการที่ซ้ำกันออกจากรายการได้อย่างง่ายดายโดย ข้อมูล > ลบรายการที่ซ้ำกัน ใน Excel แต่จะเลือกค่าที่ซ้ำกัน / ไม่ซ้ำกันหรือนับจากคอลัมน์ได้อย่างไร? แล้วถ้าเลือกหรือนับซ้ำ / ไม่ซ้ำกันยกเว้นอันแรกที่ซ้ำกันล่ะ? ลองใช้ Kutools for Excel's เลือกเซลล์ซ้ำและไม่ซ้ำกัน ยูทิลิตี้!


เลือกโฆษณานับซ้ำ

Kutools สำหรับ Excel - เพิ่มประสิทธิภาพ Excel ด้วยเครื่องมือที่จำเป็นมากกว่า 300 รายการ เพลิดเพลินกับฟีเจอร์ทดลองใช้ฟรี 30 วันโดยไม่ต้องใช้บัตรเครดิต! Get It Now

นับลำดับการเกิดรายการซ้ำใน Excel

แต่ถ้าคุณต้องการนับลำดับของการเกิดซ้ำคุณสามารถใช้สูตรต่อไปนี้

เลือกเซลล์ว่างที่อยู่ติดกับข้อมูลแรกของรายการของคุณแล้วพิมพ์สูตรนี้ = COUNTIF ($ A $ 2: $ A2, A2) (ช่วง $ ก $ 2: $ A2 ระบุรายการข้อมูลและ A2 ยืนเซลล์ที่คุณต้องการนับลำดับคุณสามารถเปลี่ยนได้ตามต้องการ) จากนั้นกด เข้าสู่แล้วลากที่จับเติมเพื่อเติมคอลัมน์ที่คุณต้องการ ดูภาพหน้าจอ:


นับและเลือกรายการที่ซ้ำกันทั้งหมดในคอลัมน์ด้วย Kutools for Excel

บางครั้งคุณอาจต้องการนับและเลือกรายการที่ซ้ำกันทั้งหมดในคอลัมน์ที่ระบุ คุณสามารถทำได้อย่างง่ายดายด้วย Kutools for Excel's เลือกที่ซ้ำกันและเซลล์ที่ไม่ซ้ำกัน ประโยชน์

Kutools สำหรับ Excel - เต็มไปด้วยเครื่องมือที่จำเป็นสำหรับ Excel มากกว่า 300 รายการ เพลิดเพลินกับฟีเจอร์ทดลองใช้ฟรี 30 วันโดยไม่ต้องใช้บัตรเครดิต! ดาวน์โหลดเดี๋ยวนี้!

1. เลือกคอลัมน์หรือรายการที่คุณจะนับรายการที่ซ้ำกันทั้งหมดแล้วคลิก Kutools > เลือก > เลือกที่ซ้ำกันและเซลล์ที่ไม่ซ้ำกัน.

2. ในการเปิดกล่องโต้ตอบ Select Duplicate & Unique Cells ให้เลือก รายการที่ซ้ำกัน (ยกเว้นรายการที่ 1) option หรือ รายการที่ซ้ำกันทั้งหมด (รวมถึงรายการแรก) ตามที่คุณต้องการแล้วคลิกไฟล์ Ok ปุ่ม

จากนั้นคุณจะเห็นกล่องโต้ตอบปรากฏขึ้นและแสดงจำนวนรายการที่ซ้ำกันที่เลือกไว้และในเวลาเดียวกันจะมีการเลือกรายการที่ซ้ำกันในคอลัมน์ที่ระบุ

หมายเหตุ หากคุณต้องการนับรายการที่ซ้ำกันทั้งหมดรวมถึงรายการแรกคุณต้องตรวจสอบไฟล์ รายการที่ซ้ำกันทั้งหมด (รวมถึงรายการแรก) ในกล่องโต้ตอบ Select Duplicate & Unique Cells

3. คลิก OK ปุ่ม

Kutools สำหรับ Excel - เพิ่มประสิทธิภาพ Excel ด้วยเครื่องมือที่จำเป็นมากกว่า 300 รายการ เพลิดเพลินกับฟีเจอร์ทดลองใช้ฟรี 30 วันโดยไม่ต้องใช้บัตรเครดิต! Get It Now


นับการเกิดขึ้นของแต่ละรายการที่ซ้ำกันในคอลัมน์ด้วย Kutools for Excel

Kutools สำหรับ Excel's แถวรวมขั้นสูง ยูทิลิตี้สามารถช่วยให้ผู้ใช้ Excel สามารถนับจำนวนครั้งที่เกิดขึ้นของแต่ละรายการในคอลัมน์ (คอลัมน์ผลไม้ในกรณีของเรา) จากนั้นลบแถวที่ซ้ำกันตามคอลัมน์นี้ (คอลัมน์ผลไม้) ได้อย่างง่ายดายดังต่อไปนี้:

Kutools สำหรับ Excel - เต็มไปด้วยเครื่องมือที่จำเป็นสำหรับ Excel มากกว่า 300 รายการ เพลิดเพลินกับฟีเจอร์ทดลองใช้ฟรี 30 วันโดยไม่ต้องใช้บัตรเครดิต! ดาวน์โหลดเดี๋ยวนี้!

1. เลือกตารางที่มีคอลัมน์ที่คุณจะนับแต่ละรายการที่ซ้ำกันแล้วคลิก Kutools > คอนเทนต์ > แถวรวมขั้นสูง.

2. ใน Advanced Combine Rows ให้เลือกคอลัมน์ที่คุณจะนับแต่ละรายการที่ซ้ำกันแล้วคลิก คีย์หลักจากนั้นเลือกคอลัมน์ที่คุณจะใส่ผลการนับแล้วคลิก คำนวณ > นับแลวคลิกปุ the ม OK ปุ่ม. ดูภาพหน้าจอ:

และตอนนี้ได้นับการเกิดซ้ำแต่ละรายการในคอลัมน์ที่ระบุ ดูภาพหน้าจอ:

Kutools สำหรับ Excel - เพิ่มประสิทธิภาพ Excel ด้วยเครื่องมือที่จำเป็นมากกว่า 300 รายการ เพลิดเพลินกับฟีเจอร์ทดลองใช้ฟรี 30 วันโดยไม่ต้องใช้บัตรเครดิต! Get It Now


Demo: นับค่าที่ซ้ำกันในคอลัมน์ใน Excel โดย Kutools for Excel


Kutools สำหรับ Excel: เครื่องมือแสนสะดวกกว่า 300 รายการอยู่แค่เพียงปลายนิ้วสัมผัส! เริ่มทดลองใช้ฟรี 30 วันโดยไม่มีข้อจำกัดด้านฟีเจอร์ตั้งแต่วันนี้ Download Now!

บทความญาติ:

สุดยอดเครื่องมือเพิ่มผลผลิตในสำนักงาน

🤖 Kutools AI ผู้ช่วย: ปฏิวัติการวิเคราะห์ข้อมูลโดยยึดตาม: การดำเนินการที่ชาญฉลาด   |  สร้างรหัส  |  สร้างสูตรที่กำหนดเอง  |  วิเคราะห์ข้อมูลและสร้างแผนภูมิ  |  เรียกใช้ฟังก์ชัน Kutools...
คุณสมบัติยอดนิยม: ค้นหา เน้น หรือระบุรายการที่ซ้ำกัน   |  ลบแถวว่าง   |  รวมคอลัมน์หรือเซลล์โดยไม่สูญเสียข้อมูล   |   รอบโดยไม่มีสูตร ...
การค้นหาขั้นสูง: VLookup หลายเกณฑ์    VLookup หลายค่า  |   VLookup ข้ามหลายแผ่น   |   การค้นหาที่ไม่ชัดเจน ....
รายการแบบเลื่อนลงขั้นสูง: สร้างรายการแบบหล่นลงอย่างรวดเร็ว   |  รายการแบบหล่นลงขึ้นอยู่กับ   |  เลือกหลายรายการแบบหล่นลง ....
ผู้จัดการคอลัมน์: เพิ่มจำนวนคอลัมน์เฉพาะ  |  ย้ายคอลัมน์  |  สลับสถานะการมองเห็นของคอลัมน์ที่ซ่อนอยู่  |  เปรียบเทียบช่วงและคอลัมน์ ...
คุณสมบัติเด่น: กริดโฟกัส   |  มุมมองการออกแบบ   |   บาร์สูตรใหญ่    สมุดงานและตัวจัดการชีต   |  ห้องสมุดทรัพยากร (ข้อความอัตโนมัติ)   |  เลือกวันที่   |  รวมแผ่นงาน   |  เข้ารหัส/ถอดรหัสเซลล์    ส่งอีเมลตามรายการ   |  ซุปเปอร์ฟิลเตอร์   |   ตัวกรองพิเศษ (กรองตัวหนา/ตัวเอียง/ขีดทับ...) ...
ชุดเครื่องมือ 15 อันดับแรก12 ข้อความ เครื่องมือ (เพิ่มข้อความ, ลบอักขระ, ... )   |   50 + แผนภูมิ ประเภท (แผนภูมิ Gantt, ... )   |   40+ ใช้งานได้จริง สูตร (คำนวณอายุตามวันเกิด, ... )   |   19 การแทรก เครื่องมือ (ใส่ QR Code, แทรกรูปภาพจากเส้นทาง, ... )   |   12 การแปลง เครื่องมือ (ตัวเลขเป็นคำ, การแปลงสกุลเงิน, ... )   |   7 ผสานและแยก เครื่องมือ (แถวรวมขั้นสูง, แยกเซลล์, ... )   |   ... และอื่น ๆ

เพิ่มพูนทักษะ Excel ของคุณด้วย Kutools สำหรับ Excel และสัมผัสประสิทธิภาพอย่างที่ไม่เคยมีมาก่อน Kutools สำหรับ Excel เสนอคุณสมบัติขั้นสูงมากกว่า 300 รายการเพื่อเพิ่มประสิทธิภาพและประหยัดเวลา  คลิกที่นี่เพื่อรับคุณสมบัติที่คุณต้องการมากที่สุด...

รายละเอียด


แท็บ Office นำอินเทอร์เฟซแบบแท็บมาที่ Office และทำให้งานของคุณง่ายขึ้นมาก

  • เปิดใช้งานการแก้ไขและอ่านแบบแท็บใน Word, Excel, PowerPoint, ผู้จัดพิมพ์, Access, Visio และโครงการ
  • เปิดและสร้างเอกสารหลายรายการในแท็บใหม่ของหน้าต่างเดียวกันแทนที่จะเป็นในหน้าต่างใหม่
  • เพิ่มประสิทธิภาพการทำงานของคุณ 50% และลดการคลิกเมาส์หลายร้อยครั้งให้คุณทุกวัน!
Comments (58)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Tolong di Bantu, Jika misalkan di Kolom A Misalkan No Part yang sama ada 3 Part, lalu di kolom b ada tiga progress, Bagaimana menegtahui bahwa jika di kolom sudah complete semua maka di kolom c complete, tetapi jika ada salah satu belum complete maka di kolom C On Progress, Sebagai catatan untuk di kolom A variatif , ada yang jumlahnya 3, 4, 2, etc.. Mohon di bantu caranya untuk di excel.

A B C
Part 1 Progress On Progress
Part 1 Complete On Progress
Part 1 Complete On Progress
This comment was minimized by the moderator on the site
Halo, bagaimana jika kita ingin menjumlahkan total dari data duplikat tersebut? Contoh, Banyaknya Apel pada baris satu adalah 734pcs, Apel pada baris 5 100pcs, Apel pada baris 8 20pcs. Bagaimana cara menjumlahkannya dengan otomatis? Terima Kasih untuk jawabannya
This comment was minimized by the moderator on the site
Hi Lia,
You can wrap multiple COUNTIF expressions into one SUM formula, in which the COUNTIF expressions shoule be seperated by comma. Here is an example: =SUM(COUNTIF($B$2:$B$8, B2),COUNTIF($B$2:$B$8, B3),COUNTIF($B$2:$B$8, B4)).The cells B2, B3, B4 stand for the value that you want to count its frequency.
Hope this helps you.
Amanda
This comment was minimized by the moderator on the site
Hi, I'm trying to calculate the duplicate values as a single value in excel. But I can't. Can you help me?. For example, I have entered in rows as 1001,1002,1003,1004 and again 1001,1002,1003,1004" like this. In this case, all are duplicate ones. but it should bring "1001" as a single count, not two counts. Is there any formula for it?
This comment was minimized by the moderator on the site
Hi Manikandan.K,
Supposing the data you will count are placed in the Range A1:A20, you can use below arrow formula to count (a set of duplicates only count once):
=SUM(IF(A1:A20<>"",1/COUNTIF(A1:A20,A1:A20)))
Please note that it’s an array formula, please press Ctrl + Shift + Enter keys to get the counting result.
This comment was minimized by the moderator on the site
Hi can you please let me know in this how to calculate data in multiple conditions include wiht this condition,  if I also chosen columns in location wise and status wise Thank you 
This comment was minimized by the moderator on the site
Hi I'm trying to run the "Advanced Combined Row" feature, but when I run it excel crashes every time.
This comment was minimized by the moderator on the site
I have entered in a row as " 10,10,10,10,10,10,10,8,11,10,10,10,10,10" like this, now I entered 14 number values. How I can count the different number in single row? the result should be "14" in my case.
This comment was minimized by the moderator on the site
Hi Sampath Rangan,
Do you need to count all numbers in the row, or count the duplicates in the row?
Supposing the numbers are in the Range A1:N1, now you can count the numbers as follows:
Count all numbers: =COUNT(A1:N1)
Count duplicates, says 10: =COUNTIF($A$1:$N$1,"10")
This comment was minimized by the moderator on the site
Thanks so much, saved me hours!
This comment was minimized by the moderator on the site
i need this
There are 24 students.how many groups are there to take 10 student in 1 group
example:
1,2,3,4,5 take 1 group in 3 number

ans={1,2,3} {2,3,4} {3,4,5} {4,5,1} {5,1,2,}

how to do this excel will create this file
This comment was minimized by the moderator on the site
Hi patel akshay,
You can use the COMBIN function in Excel directly.
=COMBIN(24,10)
This comment was minimized by the moderator on the site
Thank You very much. It's very useful.
This comment was minimized by the moderator on the site
I must be stupid as the KuTools solution is not working for me. I have copied the example with Fruits column (which I put 3 Apple entries in), made a column next to it which is blank called Count column. KuTools -> Content -> Advanced Combine Rows. Select Fruit column as primary key, Count column as Calculate -> Count. Hit OK. Nothing. No change to the sheet. Help please?
This comment was minimized by the moderator on the site
Hi BillBrewster,
Would you do me a favor and send me a screenshot about the Advanced Combine Rows dialog? Just like the screenshot as below. Thanks in advance!
This comment was minimized by the moderator on the site
Dear, I am working on the attached Screenshot and Excel File. I need to calculate the Values in Column "G" i.e. to Count unique text values based on multiple (Two) criteria, but criteria are in NUMBERS. Further, Its is big sheet, therefore I want to use the cell reference in range and in criteria. I am very confused. I want to count the column C i.e. Degree based on the Criteria E and F. That is,I need to set formula in G2, such that, Look E2 in column A and Look F2 in column B and count the unique text values in Column C. Hope it is clear.

I am very thankful to you please


Details:
I have a data of more than 1000 companies with different year. As in column A, I have companies and B shows the year for which these companies have data. For example, First company have data for year 2011, 2012, 2013 and 2015. For company 2, I have data for year 2014 and 2011 and so on. Since majority of companies have data from 2011 to 2015, therefore I select this range in column F for each company. Now, I want to count the unique Degrees for cell G2, if there is 389841988 (Company ID for First company) in A and there is 2011 in Column B. Now I need to set formula in G2,in a way, If I will drag the formula G2 in cell G3, then It should give me the value by looking such as if there is 389841988 (Company ID for First company) in A and there is 2012 in Column B, the based on these two criteria, it should count the unique text in C2 and so on.
Look on the second sheet named Example, I did the same for INDEX, MATCH function and as well for SUMIFS function; in C2 I have the array formula INDEX($F:$H,MATCH(1,(A2=$F:$F)*(B2=$G:$G),0),3) and in D2 I have SUMIFS(I:I,F:F,A2,G:G,B2). These help me to do what I want with two criteria (To match and also to sum) and also I can drag these for rest of cell. I am looking something like this, or anything that I can drag to count unique degrees. Thank you very much. I am waiting.

Plz help. I am very thankful to for this kindness
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations