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

วิธีจัดเรียงคอลัมน์ของตัวเลขตามจุดทศนิยมใน Excel

บางครั้งเราจำเป็นต้องจัดเรียงตัวเลขตามจุดทศนิยมในคอลัมน์ในแผ่นงานเพื่อให้ตัวเลขมีความเรียบร้อยและสวยงามมากขึ้นตามภาพหน้าจอต่อไปนี้

doc-align-number-1

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

จัดแนวคอลัมน์ของตัวเลขตามจุดทศนิยมใน Excel


ลูกศรสีฟ้าฟองขวา จัดแนวคอลัมน์ของตัวเลขตามจุดทศนิยมใน Excel

ในการจัดแนวคอลัมน์ของตัวเลขตามจุดทศนิยมใน Excel โปรดทำดังนี้:

1. เลือกรายการตัวเลขของคุณที่คุณต้องการจัดเรียงตามจุดทศนิยม

2. คลิกขวาและเลือก จัดรูปแบบเซลล์ จากเมนูบริบทดูภาพหน้าจอ:

doc-align-number-1

3. จากนั้นใน จัดรูปแบบเซลล์ คลิกตกลง ประเพณี ภายใต้ จำนวน และป้อนสิ่งนี้ 0. ???? into ชนิดภาพเขียน ดูภาพหน้าจอ:

doc-align-number-1

หมายเหตุ: ? หมายถึงจำนวนหลักทศนิยมของคุณขึ้นอยู่กับตัวเลขทศนิยมที่ใหญ่ที่สุดของคุณ หากตำแหน่งทศนิยมสูงสุดคือ 5 คุณต้องป้อนเครื่องหมายคำถามห้าตัวตามที่คุณต้องการ

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

doc-align-number-1

หมายเหตุ: หากข้อมูลของคุณมีจำนวนเต็มข้อมูลเหล่านั้นจะถูกเพิ่มเครื่องหมายจุดไว้หลังจำนวนเต็ม

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

🤖 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 (10)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
how do i line up decimals in numbers 519.7 and 4.093.. lol
This comment was minimized by the moderator on the site
Hello, moran,
Select the number cells, and then, you just need to enter 0.??? into the Format Cells dialog box.
Please try, thank you!
This comment was minimized by the moderator on the site
Has anyone found the answer to zylstra's question (how to get rid of the decimal point while keeping the alignment)?
This comment was minimized by the moderator on the site
Yes. I've done this. Although my post keeps getting removed.
This comment was minimized by the moderator on the site
Although not pixel-strict alignment, but almost indistinguishable from that:
Step 1:
Format Cells -> Number -> Custom -> "0.????"
Step 2:
Conditional Format ->
New Rule -> Use a formula -> "=B2=TRUNC(B2)"
Format... -> Number -> Custom -> "0 ________"
Applies to -> "=$B$2:$B$18"

Note 1: Number of '_'s is twice of number of '?'s.
Note 2: Symbol between '0' and '_' is U+2009 THIN SPACE
This comment was minimized by the moderator on the site
Although not pixel-strict alignment, but almost indistinguishable from that:
imgur: Y5DPdfS
Step 1:
Format Cells -> Number -> Custom -> "0.????"
imgur: 94q7vJH
Step 2:
Conditional Format ->
New Rule -> Use a formula -> "=B2=TRUNC(B2)"
imgur: LaTwE2Z
Format... -> Number -> Custom -> "0 ________"
imgur: GOcuE9M
Applies to -> "=$B$2:$B$18"
imgur: 953EWYh

Note 1: Number of '_'s is twice of number of '?'s.
Note 2: Symbol between '0' and '_' is U+2009 THIN SPACE (' ')
This comment was minimized by the moderator on the site
Any way to get rid of the decimal for whole numbers?
This comment was minimized by the moderator on the site
I've been looking for an answer to that question for a good while. I need a way to do this with custom number formatting and haven't found a solution. I don't have to say that often with Excel, but I don't think it's possible.
This comment was minimized by the moderator on the site
use "0.0???", to force a 0 after the decimal. "2." becomes "2.0"
This comment was minimized by the moderator on the site
Doesn't eliminate the decimal point for whole numbers.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations