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

วิธีค้นหาและเน้นแถวที่ซ้ำกันในช่วงใน Excel

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

 

ค้นหาแถวที่ซ้ำกันในหลายคอลัมน์ด้วยสูตร

เน้นแถวที่ซ้ำกันในหลายคอลัมน์ด้วยการจัดรูปแบบตามเงื่อนไข

เลือกหรือเน้นแถวที่ซ้ำกันในหลายคอลัมน์ด้วยคุณสมบัติที่มีประโยชน์


ค้นหาแถวที่ซ้ำกันในหลายคอลัมน์ด้วยสูตร

สูตรต่อไปนี้สามารถช่วยคุณในการค้นหาระเบียนที่ซ้ำกันได้โปรดทำดังนี้:

1. ในเซลล์ว่างที่อยู่ติดกัน เซลล์ D2 ในกรณีนี้ โปรดป้อนสูตรด้านล่าง:

=IF(COUNTIFS($A$2:$A$12,$A2,$B$2:$B$12,$B2,$C$2:$C$12,$C2)>1, "Duplicate row", "")

2. จากนั้นลากที่จับเติมลงไปที่เซลล์เพื่อใช้สูตรนี้ ตอนนี้คุณจะเห็นว่าแถวที่เหมือนกันในช่วงที่ใช้นี้จะแสดงขึ้นหรือไม่ แถวที่ซ้ำกันดูภาพหน้าจอ:

  • หมายเหตุ:
  • 1. ในสูตร $ ก $ 2: $ ก $ 12, $ B $ 2: $ B $ 12, $ C $ 2: $ C $ 12 ระบุคอลัมน์ช่วงที่คุณต้องการค้นหารายการที่ซ้ำกัน คุณสามารถเปลี่ยนได้ตามที่คุณต้องการ และ A2, B2, C2 ระบุเซลล์แรกในแต่ละคอลัมน์ของข้อมูลที่จำเป็นต้องใช้สูตรนี้คุณสามารถเปลี่ยนแปลงได้เช่นกัน
  • 2. สูตรข้างต้นอ้างอิงจากข้อมูลใน 3 คอลัมน์ หากมี 4 คอลัมน์ขึ้นไปในช่วงข้อมูลของคุณ ซึ่งจำเป็นต้องหาค่าที่ซ้ำกันจากแถวแรก คุณเพียงแค่เพิ่มการอ้างอิงคอลัมน์ตามที่แสดงสูตรนี้: =IF(COUNTIFS($A$2:$A$12,$A2,$B$2:$B$12,$B2,$C$2:$C$12,$C2,$D$2:$D$12,$D2)>1, "Duplicate row", "").

เคล็ดลับ: หากคุณต้องการค้นหาแถวที่ซ้ำกันโดยไม่มีการเกิดขึ้นครั้งแรก โปรดใช้สูตรต่อไปนี้:

=IF(COUNTIFS($A$2:$A2,$A2,$B$2:$B2,$B2,$C$2:$C2,$C2) >1, "Duplicate row", "")


เน้นแถวที่ซ้ำกันในหลายคอลัมน์ด้วยการจัดรูปแบบตามเงื่อนไข

หากคุณไม่สามารถใช้สูตรได้อย่างถูกต้องโปรดอย่ากังวลไฟล์ การจัดรูปแบบตามเงื่อนไข ยูทิลิตี้ยังสามารถช่วยคุณในการเน้นแถวที่ซ้ำกัน ทำตามขั้นตอนต่อไปนี้:

1. ขั้นตอนแรกที่คุณควรใช้ CONCATENATE ฟังก์ชันเพื่อรวมข้อมูลทั้งหมดเป็นเซลล์เดียวสำหรับแต่ละแถว พิมพ์สูตรด้านล่างในเซลล์ D2 จากนั้นคัดลอกสูตรลงไปจนกระทั่งแถวสุดท้ายของข้อมูลดูภาพหน้าจอ:

=CONCATENATE(A2,B2,C2)

2. จากนั้นเลือกช่วงที่คุณต้องการค้นหาแถวที่ซ้ำกันรวมถึงสูตรในคอลัมน์ D จากนั้นไปที่ หน้าแรก แล้วคลิก การจัดรูปแบบตามเงื่อนไข > กฎใหม่ดูภาพหน้าจอ:

3. ใน กฎการจัดรูปแบบใหม่ โปรดดำเนินการดังต่อไปนี้:

  • คลิก ใช้สูตรเพื่อกำหนดเซลล์ที่จะจัดรูปแบบ จาก เลือกประเภทกฎ กล่องรายการ;
  • แล้วใส่สูตรนี้ = COUNTIF ($ D $ 2: $ D $ 12, $ D2)> 1 (เน้นแถวที่ซ้ำกันโดยเกิดขึ้นครั้งแรก) หรือ =COUNTIF($D$2:$D2,$D2)>1 (เน้นแถวที่ซ้ำกันโดยไม่มีการเกิดขึ้นครั้งแรก) ลงใน จัดรูปแบบค่าโดยที่สูตรนี้เป็นจริง กล่องข้อความ;
  • ในที่สุดคลิก รูปแบบ ปุ่ม

หมายเหตุ: ในสูตรข้างต้น $ D $ 2: $ D $ 12 คือคอลัมน์ D ที่คุณได้รวมค่าคอลัมน์อื่น ๆ

4. ในการโผล่ออกมา จัดรูปแบบเซลล์ คลิกตกลง ใส่ จากนั้น เลือกสีหนึ่งสีที่คุณต้องการเพื่อเน้นสีที่ซ้ำกัน

5. คลิก OK > OK เพื่อปิดกล่องโต้ตอบและแถวที่ซ้ำกันจะถูกเน้นด้วยสีที่คุณเลือกพร้อมกันดูภาพหน้าจอ:

เน้นแถวที่ซ้ำกันด้วยแถวแรก เน้นแถวที่ซ้ำกันโดยไม่มีแถวแรก

เลือกหรือเน้นแถวที่ซ้ำกันในหลายคอลัมน์ด้วยคุณสมบัติที่มีประโยชน์

วิธีการข้างต้นค่อนข้างยุ่งยากสำหรับคุณดังนั้นที่นี่ฉันสามารถแนะนำเครื่องมือที่ง่ายและสะดวกให้คุณ -Kutools สำหรับ Excelเดียวกันกับที่ เลือกเซลล์ที่ซ้ำกันและไม่ซ้ำกัน ยูทิลิตี้คุณสามารถเลือกแถวที่ซ้ำกันหรือแถวที่ไม่ซ้ำกันได้อย่างรวดเร็วตามที่คุณต้องการ

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

หลังจากการติดตั้ง Kutools สำหรับ Excelโปรดทำตามนี้:

1. คลิก Kutools > เลือก > เลือกเซลล์ซ้ำและไม่ซ้ำกันดูภาพหน้าจอ:

2. ใน เลือกเซลล์ที่ซ้ำกันและไม่ซ้ำกัน โปรดดำเนินการดังต่อไปนี้:

  • คลิก button1  ปุ่มเพื่อเลือกช่วงที่คุณต้องการใช้
  • จากนั้นเลือก แต่ละแถว จาก อยู่บนพื้นฐานของ มาตรา;
  • จากนั้นตรวจสอบ รายการที่ซ้ำกัน (ยกเว้นรายการที่ 1) or รายการที่ซ้ำกันทั้งหมด (รวมถึงรายการแรก) ภายใต้ กฎ ส่วนตามที่คุณต้องการ
  • ในที่สุด คุณสามารถระบุสีพื้นหลังหรือสีแบบอักษรสำหรับแถวที่ซ้ำกันภายใต้เครื่องหมาย การประมวลผล.

3. จากนั้นคลิก OKและแถวที่ซ้ำกันจะถูกเลือกเป็นภาพหน้าจอต่อไปนี้:

เลือกแถวที่ซ้ำกันรวมถึงแถวแรก เลือกแถวที่ซ้ำกันยกเว้นแถวแรก
  • หมายเหตุ:
  • 1. หากคุณตรวจสอบ เลือกทั้งแถว ระบบจะเลือกแถวที่ซ้ำกันหรือไม่ซ้ำกันทั้งหมด
  • 2. หากคุณเลือกตัวเลือกกรณีที่สำคัญข้อความจะถูกเปรียบเทียบตัวพิมพ์เล็กและใหญ่

 ดาวน์โหลดและทดลองใช้ฟรี Kutools สำหรับ Excel ตอนนี้!


บทความที่เกี่ยวข้องเพิ่มเติม:

  • รวมแถวที่ซ้ำกันและรวมค่าใน Excel
  • ใน Excel, คุณอาจพบปัญหานี้เสมอเมื่อคุณมีช่วงของข้อมูลที่มีรายการที่ซ้ำกันและตอนนี้คุณต้องการรวมข้อมูลที่ซ้ำกันและรวมค่าที่เกี่ยวข้องในคอลัมน์อื่นดังที่แสดงภาพหน้าจอต่อไปนี้ คุณจะแก้ปัญหานี้ได้อย่างไร?
  • เน้นค่าที่ซ้ำกันในสีต่างๆใน Excel
  • ใน Excel เราสามารถเน้นค่าที่ซ้ำกันในคอลัมน์ด้วยสีเดียวได้อย่างง่ายดายโดยใช้การจัดรูปแบบตามเงื่อนไข แต่บางครั้งเราจำเป็นต้องเน้นค่าที่ซ้ำกันในสีที่ต่างกันเพื่อให้จดจำรายการที่ซ้ำกันได้อย่างรวดเร็วและง่ายดายดังภาพต่อไปนี้ คุณจะแก้ปัญหานี้ใน Excel ได้อย่างไร
  • จัดตำแหน่งที่ซ้ำกันหรือจับคู่ค่าในสองคอลัมน์
  • หากคุณมีรายชื่อสองรายการและคุณต้องการเปรียบเทียบสองคอลัมน์นี้และค้นหารายการที่ซ้ำกันในทั้งสองจากนั้นจัดแนวหรือแสดงชื่อที่ตรงกันตามคอลัมน์แรกในคอลัมน์ใหม่ตามภาพหน้าจอต่อไปนี้ หากต้องการแสดงรายการค่าที่ซ้ำกันซึ่งมีอยู่ในทั้งสองคอลัมน์บทความนี้อาจแนะนำเทคนิคบางอย่างในการแก้ปัญหา

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

🤖 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 (16)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Fórmulas lixo, nenhuma funciona!
This comment was minimized by the moderator on the site
Hello Carlos,
So sorry to hear that. But I did try all of the formulas in the article and they all works fine. Please see the screenshots I upload. And I would love to help you on this matter if only you could provide the details of the errors. Thanks.Sincerely,Mandy
This comment was minimized by the moderator on the site
The formula "Sumproduct" does not work! The values ​​keep appearing non-duplicate, and since there are duplicate values, you must have got something wrong with this formula. Because I did the same and checked several times to find the error, but I was unsuccessful
This comment was minimized by the moderator on the site
Hello, Elienay,
The above Sumproduct formula works well in my worksheet, could you give your problem as an image to insert here?
Thank you!
This comment was minimized by the moderator on the site
I had to invent another formula to check for duplicate values, in fact I created two formulas! But with this "sumproduct" I couldn't fix it. However I already solved my problem, thanks! The formula I created looked like this: =IF(CONTIF($G$53:$G$55;G53)>1;"DUPLI";"NO")
This comment was minimized by the moderator on the site
at the time of data entry can i stop duplicate entries in two columns example :- Table A Table B A 1 B 2 at the time data entry once A & 1 is coming than i don't enter this entry, can any formula & idea for this
This comment was minimized by the moderator on the site
Can i find duplicate entries in two columns at time of data entry, that can i prevent duplicate entries in two columns example, Table A Table B A 1 B 2 at time of data entry next A and 1 i don't enter this entry, plz give any idea
This comment was minimized by the moderator on the site
Hi, suppose i have data of 15 letters (alphanumeric), and i want it to be split in different columns. ex - ASDFGH11WE31005 this is the 15 letters code, i want it to be spilt in different columns like - AS DF GH 11 WE 3 1005 pls suggest any shortcut or any formula to split it
This comment was minimized by the moderator on the site
Good day, I am dealing with a similar problem but one that goes beyond just checking for duplicates and I am hoping you could shed some light in as to how to tackle it. To illustrate I will build up onto the problem you have already illustrated above and adding some more complexities to it. Suppose after checking for and finding duplicates (ie., product, order or quantity and price), you now want to select a shop from which you can now buy your products from (I assume the duplicates tells you what products in what amount you can buy at what prices, and there is that repeat of products, orders and prices). The Shop Name given is for the shop that actually has stock of items required. A B C D E F PRODUCT ORDER PRICE SHOP NAME Distance to Shop (miles) Shop chosen to buy from QQQQ 50 30 Shop A 15 ? PPPP 60 40 Shop A 15 ? XXXX 45 28 Shop B 30 ? QQQQ 50 30 Shop A 15 ? VVVV 65 42 Shop A 15 ? BBBB 48 21 Shop A 15 ? XXXX 45 28 Shop B 30 ? QQQQ 50 30 Shop B 30 ? MMMM 80 35 Shop B 30 ? Suppose you now know you can buy a product at the given quantities (order) and at the given prices, at either Shop A or Shop B or Shop B but now you want to decide on the shop to buy from. One of the factors used in the criteria for shop selection could be how far the shop is from your own location. Obviously for product XXXX the only shop to buy from, where the product is available is Shop B therefore the value to return under column E would always be Shop B. For product QQQQ, you would have the option of buying from either Shop A or Shop B. You now want Excel to have you choose a shop to buy from. You want to select the nearest shop. How would you go about using a formula to solve this one? Regards, Moses
This comment was minimized by the moderator on the site
Suppose you have now ascertained that there are duplicates and the next thing is you want to check is if these duplicates (products, orders, and prices) can be obtained are from different shops. This is tantamount to introducing another column listingshops which actaully sell these products and you want to be able to select a shop to buy from based on another criteria not listed here (knowledge of shop location,distance to the shop, etc) Eg for Product QQQ, you can get same order at same price at both Shop A and Shop B and you wanna return either Shop A or Shop B based on that criteria you know. How would you tell Excel to return as a value either either Shop A or Shop B? PRODUCT ORDER PRICE SHOP NAME QQQQ 50 30 Shop A PPPP 60 40 Shop A XXXX 45 28 Shop B QQQQ 50 30 Shop A VVVV 65 42 Shop A BBBB 48 21 Shop A XXXX 45 28 Shop B QQQQ 50 30 Shop B MMMM 80 35 Shop B
This comment was minimized by the moderator on the site
This is very very very great INFO !! i was so confused to find this kind of formula in excel sheet but today i am so happy may god give you lots of happiness and success, Great Work buddy you're a Champ !!
This comment was minimized by the moderator on the site
Great Great Great Really best ideas I've ever seen
This comment was minimized by the moderator on the site
Yes!!! NASEER you can find duplicates... :)
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