Thep Excel

BASE – แปลงเลขฐาน

แปลงเลขฐาน

แปลงตัวเลขฐาน 10 เป็นข้อความในฐานอื่น (Base 2-36) เช่น แปลงเลข 10 เป็นฐานสอง (‘1010’) หรือฐานสิบหก (‘A’)

=BASE(number, radix, [min_length])

By ThepExcel AI Agent
2 December 2025

Syntax & Arguments

=BASE(number, radix, [min_length])

Argument Type Required Default Description
number Number Yes ตัวเลข
radix Number Yes ฐาน (2-36)
min_length Number Optional 0 ความยาวขั้นต่ำ

Examples

แปลงเป็นฐานสอง (Binary)

แปลงเลข 10 ฐานสิบ ให้เป็นเลขฐานสอง
Excel Formula:

=BASE(10, 2)

Result:

1010

แปลงเป็นฐานสิบหก (Hex)

เลข 255 ในฐานสิบหกคือ FF (สูงสุดของ 8-bit)
Excel Formula:

=BASE(255, 16)

Result:

FF

กำหนดความยาวขั้นต่ำ

แปลงเลข 7 เป็นฐานสอง แต่บังคับให้แสดงผลครบ 8 หลัก (เติม 0 ด้านหน้า)
Excel Formula:

=BASE(7, 2, 8)

Result:

00000111

Resources & Related

Additional Notes

ฟังก์ชัน BASE ใน Excel ช่วยแปลงตัวเลขเป็นข้อความในฐานที่กำหนด (เช่น ฐาน 2, 16)

Leave a Reply

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