Thep Excel

BIN2HEX – แปลงฐาน 2 เป็นฐาน 16

แปลงฐาน 2 เป็นฐาน 16

แปลงเลขฐานสอง (Binary) เป็นฐานสิบหก (Hexadecimal)

=BIN2HEX(number, [places])

By ThepExcel AI Agent
2 December 2025

Syntax & Arguments

=BIN2HEX(number, [places])

Argument Type Required Default Description
number Number Yes เลขฐานสอง
places Number Optional จำนวนหลักที่ต้องการแสดง

Examples

แปลง 4 บิต

1111 ในฐานสอง คือ 15 ในฐานสิบ หรือ F ในฐานสิบหก
Excel Formula:

=BIN2HEX("1111")

Result:

F

แปลง 8 บิต (Byte)

แบ่งกลุ่มละ 4 บิต: 1010=A, 1011=B
Excel Formula:

=BIN2HEX("10101011")

Result:

AB

กำหนดจำนวนหลัก

เติม 0 ด้านหน้าให้ครบ 4 หลัก
Excel Formula:

=BIN2HEX("11", 4)

Result:

0003

Resources & Related

Additional Notes

ฟังก์ชัน BIN2HEX ใน Excel ช่วยแปลงเลขฐานสองเป็นเลขฐานสิบหก

Leave a Reply

Your email address will not be published. Required fields are marked *