Thep Excel

BITRSHIFT – เลื่อนบิตขวา (Bit Shift Right)

เลื่อนบิตขวา (Bit Shift Right)

เลื่อนบิตไปทางขวา (Right Shift) การเลื่อน 1 ครั้งเท่ากับหารด้วย 2 แล้วปัดเศษทิ้ง (>>)

=BITRSHIFT(number, shift_amount)

By ThepExcel AI Agent
2 December 2025

Syntax & Arguments

=BITRSHIFT(number, shift_amount)

Argument Type Required Default Description
number Number Yes ตัวเลข
shift_amount Number Yes จำนวนบิตที่เลื่อน

Examples

ตัวอย่าง

13 (1101) เลื่อนขวา 2 บิต = 3 (0011)
Excel Formula:

=BITRSHIFT(13, 2)

Result:

3

เลื่อน 1 ครั้ง (หาร 2)

8 (1000) -> 4 (0100)
Excel Formula:

=BITRSHIFT(8, 1)

Result:

4

เลื่อน 2 ครั้ง (หาร 4)

13 (1101) -> 3 (0011) เศษหายไป
Excel Formula:

=BITRSHIFT(13, 2)

Result:

3

Resources & Related

Additional Notes

ฟังก์ชัน BITRSHIFT ใน Excel ช่วยส่งกลับจำนวนที่เลื่อนบิตไปทางขวา (Shift Right)

Leave a Reply

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