Text All versions ◉ 6 views

=LEFTB()

Returns a specified number of characters from the beginning of a text in bytes

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=LEFTB(text, [num_bytes])
Hover argument names in the table for details.
Output typeText
Popularity17 / 100
VolatileNo
Dynamic ArrayNo
📥 Download sample .xlsx — Coming soon ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =LEFTB() 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 LEFTB.xlsx — Coming soon ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

🧠 🧠 Quiz this function

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

◧ Arguments

ArgumentTypeRequiredDescription
text Text Required Text from which characters are extracted
num_bytes Number Optional Number of bytes — optional, default 1

▣ Examples

Ex =LEFTB("Excel",2)
Sala — 4 bytes = 2 Persian letters =LEFTB("Hello",4)

✦ Tips

  • For English it is equivalent to LEFT.

💬 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.