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

วิธีการเรียงหมายเลขคอลัมน์โดยอัตโนมัติตามค่าของเซลล์ในคอลัมน์อื่นใน Excel

doc-number-column-based-on-value-1
ตัวอย่างเช่นคุณมีช่วงของข้อมูลใน Excel และคุณต้องการให้หมายเลขคอลัมน์ A ตามค่าในคอลัมน์ B ตามภาพด้านล่างที่แสดง ตอนนี้บทช่วยสอนนี้จะบอกสูตรในการแก้ปัญหานี้ใน Excel
หมายเลขคอลัมน์โดยอัตโนมัติตามค่าในคอลัมน์อื่น

ลูกศรสีฟ้าฟองขวา หมายเลขคอลัมน์โดยอัตโนมัติตามค่าในคอลัมน์อื่น

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

1. พิมพ์ 1 ลงในเซลล์แรกของคอลัมน์ที่คุณต้องการใส่หมายเลข ดูภาพหน้าจอ:

doc-number-column-based-on-value-2

2. ในเซลล์ที่สองของคอลัมน์ที่คุณต้องการใส่หมายเลขให้พิมพ์สูตรนี้ =IF(B1:B13="Total","",COUNTIF($A$1:A1,">0")+1)แล้วกดปุ่ม Enter

doc-number-column-based-on-value-3

ปลาย: ในสูตรข้างต้น B1: B13 คือช่วงคอลัมน์ที่คุณต้องการให้เป็นตัวเลขและ A1 คือเซลล์ที่คุณพิมพ์ 1 เข้าไปและ "ผลรวม" คือค่าที่คุณไม่ต้องการนับ

3. จากนั้นลากที่จับการป้อนอัตโนมัติไปยังช่วงคอลัมน์ที่คุณต้องการใส่หมายเลข ดูภาพหน้าจอ:

doc-number-column-based-on-value-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 (11)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi Sir,

When Cell 1 is Number this FT20240001 and Next need to auto calculate FT20240002 ( FT20240001 +1) in If function.

Thanks
This comment was minimized by the moderator on the site
How do i take set values and add different varying values to it for projection.
This comment was minimized by the moderator on the site
Sales data and applying a sequential job number that grows by 1 for each entry?As sales data is entered into a table, at the time of the client acceptance a date stamp is applied to the relevant cell in that rowAcceptance is random and the row (client) to be next accepted is also random.
I have a Column of cells (Column A) partially populated by a numerical date range that increases as per the date
Without sorting the table.
How do I write a formula that will calculate a sequential whole number starting at 1 in the corresponding cellegcell A32020 Nov 15th 13:17:50 (time stamp)(equates to) 44150.5540549768
A10 next entry 2020 Nov 15th 11:48:16 (time stamp)44150.4918552083
A13 next entry
2020 Nov 15th 11:48:26 (time stamp)
44150.4919619213
etc
In the corresponding cellsC3 needs to return a value of 3C10 needs to return a value of 1C13 a value of 2etcgrowing by 1 each time
Any ideas?
This comment was minimized by the moderator on the site
This formula works but my first number based on the criteria is starting with 2 and then 3,4,5 onwards. How can I get it to start at 1?
This comment was minimized by the moderator on the site
Hi, you can change the last argument 1 in the formula to 2, like =IF(B1:B13="Total","",COUNTIF($A$1:A1,">0")+2).
This comment was minimized by the moderator on the site
Yo necesito hacer lo mismo que este ejemplo, pero en mi caso es requerido que me de un consecutivo segun un numero X en una columna, pero que si me varia el numero X en esa columna, me de un consecutivo diferente ej...

A B
1 1
2 1
3 1
1 2
2 2

Algo asi....
This comment was minimized by the moderator on the site
In cell A3 paste the following

=IF(B3=B2,"",COUNTIF($A$2:A2,">0")+1)
This comment was minimized by the moderator on the site
How do i autonumber based on a value but in my case there is no "TOTAL". This is how my data is: UNKNOWN UNKNOWN UNKNOWN SEG034-PI-012.038 SEG034-PI-012.039 SEG034-PI-012.038 SEG034-PI-012.038 SEG034-PI-012.038 SEG034-PI-001.019 SEG034-PI-001.019 UNKNOWN UNKNOWN SEG034-PI-001.019 SEG034-PI-001.019 SEG034-PI-001.019 SEG034-PI-001.021 SEG034-PI-001.021 SEG034-PI-001.021 UNKNOWN UNKNOWN UNKNOWN UNKNOWN UNKNOWN UNKNOWN UNKNOWN UNKNOWN UNKNOWN UNKNOWN UNKNOWN UNKNOWN UNKNOWN UNKNOWN CT0034.0202.004 CT0034.0202.004 So i basically want to put number (ID), if the value repeats itll get the same value if it already has assigned (in the example data unknown repeats randomly). Please help.
This comment was minimized by the moderator on the site
Hi there,
Hope this works. =IF(A3="";"";IF(IFERROR(VLOOKUP(A3;$A$2:B2;2;FALSE);"N/A")="N/A";MAX($B$2:B2+1);VLOOKUP(A3;$A$2:B2;2;FALSE)))
REMEMBER TO MAKE YOUR FIRST CELL ex. "B1", 1 THEN BELOW IT ADD THE FORMULA ex. "B2".


This comment was minimized by the moderator on the site
Did you ever get an answer to this? I have the same question.
This comment was minimized by the moderator on the site
Hi, I have similar question. I have a alphanumeric values of Column A, some times repeating some time unique.. So Base on the numerical values available in the Column A, I want the a serial number auto assigned in Column B as shown below.Can any help please?

COLUMN# A COLUMN# BWO/20-21/001 001-01WO/20-21/001 001-02
WO/20-21/001 001-03
WO/20-21/002 002-01
WO/20-21/002 002-02
WO/20-21/002 002-03
WO/20-21/002 002-04
WO/20-21/003 003-01


There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations