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

วิธีกำหนดหมายเลขซีเรียลให้กับค่าที่ซ้ำกันหรือไม่ซ้ำกันใน Excel

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

doc กำหนดรายการซ้ำที่ไม่ซ้ำกัน 1

กำหนดหมายเลขซีเรียลให้กับค่าที่ซ้ำกันด้วยสูตร

กำหนดหมายเลขซีเรียลให้เป็นค่าเฉพาะด้วยสูตร


ลูกศรสีฟ้าฟองขวา กำหนดหมายเลขซีเรียลให้กับค่าที่ซ้ำกันด้วยสูตร

หากต้องการสั่งซื้อค่าที่ซ้ำกันโปรดใช้สูตรต่อไปนี้:

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

doc กำหนดรายการซ้ำที่ไม่ซ้ำกัน 2


ลูกศรสีฟ้าฟองขวา กำหนดหมายเลขซีเรียลให้เป็นค่าเฉพาะด้วยสูตร

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

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

doc กำหนดรายการซ้ำที่ไม่ซ้ำกัน 3

หมายเหตุ:

1. ในสูตรข้างต้น A2 คือเซลล์มีค่าที่คุณต้องการกำหนด B1 คือเซลล์ด้านบนที่มีสูตรของคุณอยู่

2. สูตรเหล่านี้สามารถนำไปใช้กับค่าในรายการที่เรียงลำดับได้และคุณจะได้ผลลัพธ์ต่อไปนี้ตามที่คุณต้องการ:

doc กำหนดรายการซ้ำที่ไม่ซ้ำกัน 4

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

🤖 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 (23)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Solución bastante sencilla y funciona bien.
This comment was minimized by the moderator on the site
Getting NA result for more than 200 cells
This comment was minimized by the moderator on the site
Thanks for the formula, my only problem is that I want the generated 'unique identifiers' to be locked/linked to the 'values' but whenever I sort the table, the identifiers always remain in the same spot. Is there a way so that they stay linked to one another?

For example, I am using this code to assign serial numbers to customers, these need to be permanently assigned to one another as they do not change. However, when I sort the table by date, customers or anything at all that re-arranges the data. The serial numbers all get mixed up.
This comment was minimized by the moderator on the site
How to Convert a Cell Containing


A1 = Apple, Orange, Banana, Grapes

to

A1 = 1. Apple, 2. Orange, 3. Banana, 4. Grapes
This comment was minimized by the moderator on the site
Hello there,

If i want the formula to have alphabet infront is it possible?

DO123455 =A1
DO123455 =A1
DO223344 = A2
DO223344 = A2
DO567890 = A3

Appreciate if you can assist on my problem.

Thank you

YT Kong
This comment was minimized by the moderator on the site
Hi, i want some help, i need my data right this:

A 1
A 2
A 3
B 1
B 2
C 1
D 1
C 1
C 2
B 1
E 1
E 2
A 1
I need taht when it finds a new value starts since 1, every time. Is it posible ?
This comment was minimized by the moderator on the site
=COUNTIF(G$2:G2,G2)
=COUNTIF(G$2:G3,G3)
This comment was minimized by the moderator on the site
I want serial number start from 1 when it encounter new series
Like
AA - 1
BB - 1
AA - 2
CC -1
DD -1
AA - 3
BB - 2

Is this possible?
This comment was minimized by the moderator on the site
possible, simple guys=IF(COUNTIF(A$2:A7;A7)>=1;COUNTIF(A$2:A7;A7);VLOOKUP(A7;A$2:W6;23;0)+1)
This comment was minimized by the moderator on the site
=COUNTIF(G$2:G2,G2)
=COUNTIF(G$2:G3,G3)
This comment was minimized by the moderator on the site
Is it possible to do this with power query, and not with the vlookup formula?
This comment was minimized by the moderator on the site
Is it possible to assign such serial numbers within the same cell? I have a sheet that does this using a macro, but I cannot access the macro (password protected) to see how they did it.
Disclaimer: I have permission to access the macros, but it is an old sheet and the passwords are lost.
This comment was minimized by the moderator on the site
hai pls help

i have a series of data and i want this type of results
item product sequence number
a powder 1
a juice 2
b preprocess 2
b process 3
b jucie 1
c powder 1
c juice 2
c preprocess 3
c procss 4


want sequence number based on item and product column
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