Engineering Excel 2013 ◉ 20 views

=BITLSHIFT()

Returns a number shifted left by the specified number of bits.

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=BITLSHIFT(number, shift_amount)
Hover argument names in the table for details.
Output typeNumber/Text
Popularity45 / 100
VolatileNo
Dynamic ArrayNo
Download sample .xlsx ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =BITLSHIFT() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
Download BITLSHIFT.xlsx ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
number Number Required Number must be an integer greater than or equal to 0.
shift_amount Number Required Shift_amount must be an integer.

▣ Examples

Shifts bits left for the number by adding zeros (0) to the right of the number represented in binary. The number returned is represented in decimal. =BITLSHIFT(4,2)
Result: 16

§ Remarks

  • Shifting a number left is equivalent to adding zeros (0) to the right of the binary representation of the number. For example, a 2-bit shift to the left on the decimal value 4 converts its binary value (100) to 10000, or 16 in decimal.
  • If either argument is outside their constraints, BITLSHIFT returns the #NUM! error value.
  • If Number is greater than (2^48)-1, BITLSHIFT returns the #NUM! error value.
  • If the absolute value of Shift_amount is greater than 53, BITLSHIFT returns the #NUM! error value.
  • If either argument is a non-numeric value, BITLSHIFT returns the #VALUE! error value.
  • A negative number used as the Shift_amount argument shifts the number of bits to the right.
  • A negative number used as the Shift_amount argument returns the same result as a positive shift_amount argument for the BITRSHIFT function.

✦ Tips

  • Shifting a number left is equivalent to adding zeros (0) to the right of the binary representation of the number. For example, a 2-bit shift to the left on the decimal value 4 converts its binary value (100) to 10000, or 16 in decimal.
  • A negative number used as the Shift_amount argument shifts the number of bits to the right.
  • A negative number used as the Shift_amount argument returns the same result as a positive shift_amount argument for the BITRSHIFT function.

⚠ Common Errors

#NUM! If either argument is outside their constraints, BITLSHIFT returns the #NUM! error value. If Number is greater than (2^48)-1, BITLSHIFT returns the #NUM! error value. If the absolute value of Shift_amount is greater than 53, BITLSHIFT returns the #NUM! error value.
Fix: Enter a non-negative value
#VALUE! If either argument is a non-numeric value, BITLSHIFT returns the #VALUE! error value.
Fix: هر دو آرگومان را به‌صورت عددی وارد کنید و مطمئن شوید سلول‌ها متن نیستند.

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.