1. Home
  2. Functions
  3. Engineering
  4. BITLSHIFT

BITLSHIFT function

Returns a number shifted left by a number of bits (multiplied by a power of 2).

Syntax

=BITLSHIFT(number, shift_amount)

Arguments

ArgumentRequiredDescription
numberRequiredA whole number from 0 up to 2^48
shift_amountRequiredBits to shift (negative shifts right)

How to use BITLSHIFT

BITLSHIFT takes 2 required arguments. Type =BITLSHIFT( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=BITLSHIFT(4, 2)Result 16
=BITLSHIFT(16, -2)Result 4

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.