LEFTB
The LEFTB
function in Google Sheets is a powerful tool to return the left portion of a string up to a certain number of bytes. It allows you to extract a specific number of bytes from the beginning of a string. Dive into our comprehensive guide to understand its syntax and master its application.
Function Syntax and Parameters
Syntax: LEFTB(string, num_of_bytes)
Parameters:
string
: The string you want to extract from.num_of_bytes
: The number of bytes to extract from the left side of the string.
Step-by-Step Tutorial
- Using
LEFTB
to extract a specific number of bytes from a string:- Example:
=LEFTB("Google Sheets", 5)
- Result:
"Googl"
- Example:
Use Cases and Scenarios
- Multilingual Text Extraction: Extract a certain number of bytes from multilingual strings.
- Limited Character Display: Display a fixed number of bytes on a display with limited character capacity.
- Byte-Level Data Manipulation: Perform byte-level manipulations on data strings.