logo
excelfunctions.org
bookmarks

BITLSHIFT

Returns a value number shifted left by shift_amount bits.

EngineeringEngineering & Science

What it does

Shifts the bits of a number to the left by a specified amount (equivalent to multiplying by 2^shift_amount).

Syntax

BITLSHIFT(number, shift_amount)

Arguments

  • number(number) β€” Integer to shift.
  • shift_amount(number) β€” Number of bits to shift.

Examples

Bitwise Left Shift

Shift 4 (100) left by 2 bits.

FORMULA
=BITLSHIFT(4, 2)
RESULT
16
SAMPLE DATA
AB
1NumShift
242