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

วิธีจัดเรียงแถวอย่างรวดเร็วเพื่อให้ตรงกับคอลัมน์อื่นใน Excel

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

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

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

1. เลือกเซลล์ว่างที่อยู่ถัดจากคอลัมน์ที่คุณต้องการใช้เช่น B1 จากนั้นป้อนสูตรนี้ = การจับคู่ (A1, C: C, FALSE)แล้วลากที่จับการป้อนอัตโนมัติลงเพื่อใช้สูตรนี้ ดูภาพหน้าจอ:
การจัดเรียง doc ตรงกับคอลัมน์อื่น 2

ปลาย: C: C คือคอลัมน์ที่คุณต้องการใช้และ A1 คือเซลล์แรกของคอลัมน์ที่คุณต้องการจัดเรียง

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

3. และใน ประเภท กล่องโต้ตอบเลือกคอลัมน์ที่มีสูตรจาก คอลัมน์ รายการแบบหล่นลงและเลือก ความคุ้มค่า และ เล็กที่สุดถึงใหญ่ที่สุด จาก จัดเรียงบน และ สั่งซื้อ รายการแบบหล่นลงแยกกัน ดูภาพหน้าจอ:
การจัดเรียง doc ตรงกับคอลัมน์อื่น 4

4 คลิก OK. และคอลัมน์ A ถูกจัดเรียงให้ตรงกับคอลัมน์ C
การจัดเรียง doc ตรงกับคอลัมน์อื่น 5

เคล็ดลับ: คุณสามารถลบคอลัมน์สูตรหลังจากจัดเรียงได้หากคุณไม่ต้องการอีกต่อไป


จัดเรียงหรือเลือกเซลล์ / แถว / คอลัมน์อย่างรวดเร็วแบบสุ่มจากการเลือกใน Excel

Kutools สำหรับ Excel's Sort Range แบบสุ่ม สามารถจัดเรียงหรือเลือกข้อมูลแบบสุ่มตามเซลล์หรือคอลัมน์หรือแถวได้อย่างรวดเร็ว คลิกเพื่อทดลองใช้งานฟรี 30 วันเต็มรูปแบบ!
doc เรียงลำดับแบบสุ่ม
doc เลือกแบบสุ่ม
 
 Kutools for Excel: มีโปรแกรมเสริม Excel ที่มีประโยชน์มากกว่า 300 รายการให้ทดลองใช้ฟรีโดยไม่มีข้อ จำกัด ใน 30 วัน

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

🤖 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 (25)
Rated 4.25 out of 5 · 2 ratings
This comment was minimized by the moderator on the site
Gracias, me ahorraste horas de trabajo y aprendí algo nuevo.
Rated 5 out of 5
This comment was minimized by the moderator on the site
Sorting data in rows to match respective column headers in excel.

A B C D E
---------
D
A C
C E
B D E
E
What I want it to look like:

A B C D E
---------
D
A C
C E
B D E
E
This comment was minimized by the moderator on the site
What it looks like:

A B C D E
---------
D
A C
C E
B D E
E
What I want it to look like:

A B C D E
---------
D
A C
C E
B D E
E

can we do this in Excel?
Rated 3.5 out of 5
This comment was minimized by the moderator on the site
Annn the formatting for that comment broke.

It would re-order it to:
0230
...........0231
...........0234
0236 0236
...........0240
0241
............0245
0250 0250
............0251

Is what I meant by insert empty cells as needed in each column
This comment was minimized by the moderator on the site
A lot of people are asking this question (on a 4 year old post) but I haven't found an answer.

I have 4 unique columns of time stamps from 4 sources. Not all the time stamps match up. I might have 0230, 0236, 0241, 0250 in one column and 0231, 0234, 0236, 0240, 0245, 0250, 0251 in another column. Is there away to have excel match the columns and insert empty cells as needed?
So instead of:
0230 0231
0236 0234
0241 0236 etc

It would re-order it to:
0230
0231
0234
0236 0236
0240
0241
0245
0250 0250
0251

I have about 13,000 rows I need to do this to across 4 columns so adding by hand or inserting rows is not feasible.
This comment was minimized by the moderator on the site
Hi, JOAT, you can use this formula:

=IFERROR(VLOOKUP(G1,$I$1:$I$8,1,FALSE)
See screenshot:
https://www.extendoffice.com/images/stories/comments/sun-comment/doc-lookup-formula-1.png
This comment was minimized by the moderator on the site
Hi, Great article!
I am wondering. If in the example above, column A does not have the value G2, this means that the sorting operation will be out of sync; 1,3,4,5,6,7,8. (missing a match for G2 on row index 2). Assuming that we want the rest of the data to line up, how can we resolve this without manually changing each line?
Is it possible to displace column A and use column B as a row index instead?
This comment was minimized by the moderator on the site
1 52 63 14 2 HOW CAN above two column data sort same data in one row
This comment was minimized by the moderator on the site
It doesn't help if the info is not exactly the same in both columns eg. column 1 has C,D,B, A and column 2 has B,D,C,A,G,R,T,H. When sorting column A to match column B, they won't match up. Any solution for this?
This comment was minimized by the moderator on the site
Sorry, the method only work while two columns have same numuber rows and same data but in different order.
This comment was minimized by the moderator on the site
Please share some way to sort if the info is not exactly the same in both columns eg. column 1 has C,D,B, A and column 2 has B,D,C,A,G,R,T,H.
This comment was minimized by the moderator on the site
Hey Sujith,

Did you find a solution because I have this exact problem. Please help
This comment was minimized by the moderator on the site
Daniella/Sujith,
How would the unique members of the resorted column be ordered? If they are numeric or alpha entries, then the ordering is simple; otherwise, it is less intuitive. May be easiest to isolate the 1-1 matching rows between the ref column and subject column, apply the ordering approach detailed above on that subset, then utilize a custom sort on the entire column as a final step. All of this is highly dependent on what type of data you have and ordering you expect to achieve.
-MH
This comment was minimized by the moderator on the site
Thanks a lot for this post.. made my work a lot easier :)
This comment was minimized by the moderator on the site
Anyone can help how to sort like below:

Column A is having and column B is having

1 1

1 2

2 1

2 2

But I need both column as


1

1

2

2
This comment was minimized by the moderator on the site
I do not understand your problem, can you give me more details?
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