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

วิธีป้องกันไม่ให้รายการซ้ำกันในคอลัมน์ใน Excel

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

ป้องกันรายการที่ซ้ำกันด้วยคุณสมบัติการตรวจสอบข้อมูล

ป้องกันรายการซ้ำได้อย่างรวดเร็วด้วยคลิกเดียว


ลูกศรสีฟ้าฟองขวาป้องกันรายการที่ซ้ำกันด้วยคุณสมบัติการตรวจสอบข้อมูล

ตัวอย่างเช่นฉันกำลังป้อนหมายเลขบัตรประจำตัวลงในช่วงของเซลล์ (A1: A20) และฉันต้องการให้แน่ใจว่าหมายเลขสินค้าทั้งหมดที่ป้อนในช่วง A1: A20 นั้นไม่ซ้ำกัน เพื่อป้องกันการซ้ำกันให้ทำตามขั้นตอนเหล่านี้:

1. เลือกช่วงของเซลล์ที่จะมีหมายเลขรายการ

2 ไปที่ ข้อมูล > การตรวจสอบข้อมูล > การตรวจสอบข้อมูล. ดูภาพหน้าจอ:

doc ป้องกันรายการซ้ำ 1

3. และก การตรวจสอบข้อมูล กล่องโต้ตอบจะปรากฏขึ้น คลิก การตั้งค่า จากนั้นคลิกรายการแบบเลื่อนลงด้านล่าง อนุญาตเลือก ประเพณีจากนั้นป้อนสูตรนี้“= COUNTIF ($ A $ 1: $ A $ 20, A1) = 1” เข้าไปใน สูตร กล่อง. ดูภาพหน้าจอ:

doc ป้องกันรายการซ้ำ 2

4. จากนั้นคลิก การแจ้งเตือนข้อผิดพลาด ใต้แท็บ ชื่อหนังสือ ให้ป้อน“รายการที่ซ้ำกัน” และป้อนข้อความที่ถูกต้องในกล่องข้อความแสดงข้อผิดพลาดเช่น“ป้อนค่าแล้ว หมายเลขไอเท็มทั้งหมดต้องไม่ซ้ำกัน กรุณาลองอีกครั้ง".

doc ป้องกันรายการซ้ำ 3

5 คลิก OK เพื่อจบมัน

ตอนนี้เมื่อคุณป้อนหมายเลขที่ซ้ำกัน Excel จะป้องกันรายการและแจ้งเตือนผู้ใช้ด้วยข้อความแสดงข้อผิดพลาดซึ่งจะแสดงดังนี้:

doc ป้องกันรายการซ้ำ 4


ลูกศรสีฟ้าฟองขวาป้องกันรายการซ้ำได้อย่างรวดเร็วด้วยคลิกเดียว

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

Kutools สำหรับ Excel: ด้วย Add-in ของ Excel ที่มีประโยชน์มากกว่า 300 รายการทดลองใช้ฟรีโดยไม่มีข้อ จำกัด ใน 30 วัน Get it Now.

ด้วย Kutools for Excel คุณสามารถป้องกันรายการที่ซ้ำกันได้ด้วยคลิกเดียว กรุณาทำตามนี้:

1. เลือกช่วงที่คุณต้องการป้องกันไม่ให้รายการซ้ำกัน

2 คลิก Kutools > ป้องกันไม่ให้รายการซ้ำดูภาพหน้าจอ:

doc ป้องกันรายการซ้ำ 5

ตอนนี้เมื่อคุณป้อนข้อมูลเดียวกันกับข้อมูลแรกในช่วงคุณจะได้รับคำเตือนต่อไปนี้:

doc ป้องกันรายการซ้ำ 6

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

🤖 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 (35)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thanks....... A Lot...........
This comment was minimized by the moderator on the site
N'a tout simplement pas le comportement que vous décrivez.
This comment was minimized by the moderator on the site
I used your formula to restrict 6-number duplicates. But it gives me a warning to whatever number I enter. I'm sure it is detecting by per digit instead of the whole number? How do i solve this?
This comment was minimized by the moderator on the site
not working properly. only work in manual entry if i use "CTRL+D" then it allows duplicate entry.
This comment was minimized by the moderator on the site
i want to select the name of workers to whom duty allotted to a particular place what excel formula is to be used to find if i use vlook formula is shows the last worker repeatedly
This comment was minimized by the moderator on the site
I have same problem like some other users do. I used this formula, but now i can't enter any value. What might be wrong?
This comment was minimized by the moderator on the site
I used your formula to restrict name duplications. But then it is giving warning to whatever name I enter. Maybe it is detecting by per alphabet instead of the whole name? How can I solve this problem?
This comment was minimized by the moderator on the site
I am currently using this to not allow duplicates for a form of a schedule. However there are some exceptions I need to allow to be duplicated. Is there a way to allow certain values or in my case text to be duplicated while everything else is not allowed?
This comment was minimized by the moderator on the site
How i do the opposite? i have a column of data and want to warn the user if they are entering a NEW item number that doesn't match any previous enteries
This comment was minimized by the moderator on the site
[quote]How i do the opposite? i have a column of data and want to warn the user if they are entering a NEW item number that doesn't match any previous enteriesBy GARY[/quote] Hi Gary As you have mentioned that user is allowed only to enter duplicate data not unique and there are some entries available within particular range. Plz try this.... "=countif($A$1:$A$20,A1)>1"
This comment was minimized by the moderator on the site
thanks alot for the tips, but need your more help as i am working on sheet where i have to record the name of the trainees of the year 2015, so not to train the same trainess again 2017 i have to design the database which shows me the duplicate name by highlighting it, so please help me with it.
This comment was minimized by the moderator on the site
Hi Baseer Plz select both data 2015 and 2017 and follow as below.... Home->conditional Formatting ->Highlight Cells Rules->Duplicate Values... Click on OK. Duplicate names will be highlighted.
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