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

วิธีการเรียงลำดับแต่ละแถวตามตัวอักษรและทีละรายการในครั้งเดียว?

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

เรียงลำดับแต่ละแถวตามตัวอักษรทีละรายการด้วยฟังก์ชัน Sort

เรียงลำดับแต่ละแถวตามตัวอักษรอย่างรวดเร็วด้วยสูตร


ลูกศรสีฟ้าฟองขวา เรียงลำดับแต่ละแถวตามตัวอักษรทีละรายการด้วยฟังก์ชัน Sort

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

1. เลือกแถวแรกที่คุณต้องการจัดเรียงตามตัวอักษรแล้วคลิก ข้อมูล > ประเภทและใน popping คำเตือนการเรียงลำดับ โต้ตอบตรวจสอบ ต่อ ด้วยตัวเลือกการเลือกปัจจุบันแล้วคลิกไฟล์ ประเภท ปุ่ม. ดูภาพหน้าจอ:
doc จัดเรียงแต่ละแถว 2

2. จากนั้นใน ประเภท โต้ตอบคลิก Options เพื่อเปิด ตัวเลือกการเรียง โต้ตอบและตรวจสอบ เรียงจากซ้ายไปขวา. ดูภาพหน้าจอ:
doc จัดเรียงแต่ละแถว 3

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

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

5. ทำซ้ำข้างต้น 1-4 ขั้นตอนเพื่อจัดเรียงแถวอื่น ๆ ทีละแถว และตอนนี้แต่ละแถวได้รับการจัดเรียงตามตัวอักษรและทีละแถว


ลูกศรสีฟ้าฟองขวา เรียงลำดับแต่ละแถวตามตัวอักษรอย่างรวดเร็วด้วยสูตร

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

1. เลือกเซลล์ว่างถัดจากแถวที่คุณต้องการจัดเรียงเช่น F2 ป้อนสูตรนี้ = เล็ก ($ B2: $ D2,1)และกด เข้าสู่ สำคัญ. ดูภาพหน้าจอ:
doc จัดเรียงแต่ละแถว 6

2. จากนั้นไปที่เซลล์ถัดไป G2 ป้อนสูตรนี้ =ขนาดเล็ก ($ B2: $ D2,2) และกด เข้าสู่ สำคัญ. ดูภาพหน้าจอ:
doc จัดเรียงแต่ละแถว 7

3. ในเซลล์ M2 ให้ป้อนสูตร = เล็ก ($ B2: $ D2,3) และกด เข้าสู่ ตอนนี้แถวแรกเรียงลำดับจากน้อยที่สุดไปหามากที่สุด ดูภาพหน้าจอ:
doc จัดเรียงแต่ละแถว 8

เคล็ดลับ: ในสูตรด้านบน B2: D2 คือเซลล์คอลัมน์ในแถวที่คุณต้องการจัดเรียงและ 1, 2,3 ระบุว่ามีขนาดเล็กที่สุดอันดับแรกเล็กที่สุดอันดับที่สองเล็กที่สุดในสามคุณสามารถเปลี่ยนแปลงได้ตามที่คุณต้องการ

4. และเลือกเซลล์ F2: H2 (เซลล์สูตร) ​​แล้วลากจุดจับเติมอัตโนมัติบนเซลล์ที่คุณต้องการใช้เพื่อเรียงลำดับเซลล์คอลัมน์ที่เกี่ยวข้อง ดูภาพหน้าจอ:
doc จัดเรียงแต่ละแถว 9

ตอนนี้แต่ละแถวได้รับการจัดเรียงทีละรายการคุณสามารถคัดลอกเซลล์สูตรและวางเป็นค่าแทนค่าเดิมในช่วงข้อมูลได้ตามที่คุณต้องการ
doc จัดเรียงแต่ละแถว 10

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

🤖 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 (7)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
instead of using small function, you can use sort function.
ex. =SORT(C2:E2,1,1,TRUE)
and than you can drag and copy per row.
C2:E2 --> column to be sort
1 --> index
1 --> ascending
True --> sort by column
This comment was minimized by the moderator on the site
I cannot thank you enough for this. I've watched youtube videos, read posts, and none of them seemed to understand how I needed to sort each row individually and instantly without also rearranging the others. I gathered two years worth of numeral data for a personal project and it was a big mess! Tens of thousands of rows! I needed the numbers separate in individual cells (originally they weren't, but thats a whole other story!), and now I also needed them in order per row! First I tried simply going row by row, copying, deleting, retyping, pasting; but it was TEDIOUS. Then I tried transposing the tables, sorting-by-ascending column, one by one copying the column, and repasting into a blank chart, then transposing the new chart and copying all, and then pasting back into the original chart; but again - TEDIOUS. Now I will just create an adjacent chart using the formula, copy, paste, DONE!!!!!!!!!!! YAY!!!!!!!! :) THANK YOUUUU :)
This comment was minimized by the moderator on the site
AHA! - right! - I know WHAT i need to do - now I just need to learn how to write the blimming macro to: set up a do-while loop to trip down the rows until a blank entry is found (end of range):for each populated cell found; select first cell to be processed:Assign value of target cell to a variable: Insert temporary new first row>insert temp new column 'a': copy and paste value into cell A1; convert text to columns; select generated values; cut and paste special (transpose) into temp column A; sort column a in ascending order; insert a concatenation formula into the original cell to capture values in A1&A2&A3 etc; (probably using another loop to capture populated cell values) copy and paste special (values) into original cell; remove temp column: remove temp Row A: select next cell and repeat the loop. Sounds simple enough ...
This comment was minimized by the moderator on the site
Great - now then: How can I sort multiple rows of TEXT values alphabetically - (something akin to the 'Small' function that will work with text values? - The sorting each row individually method works - but since I have over 6 thousand rows - and zero boredom threshold - I'm hoping that someone has managed to put together a formula solution (ideally) of a maco tool?
This comment was minimized by the moderator on the site
Did you got the solution for particular issue, You are asking?
This comment was minimized by the moderator on the site
Says you're going to show us how to sort alphabetically then you only use numbers.
This comment was minimized by the moderator on the site
The first method Sort each row alphabetically one by one with Sort function can sort each row alphabetically, the second one only work for numbers, thank u for ur message.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations