<< Go back to all functions

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

  1. Using LEFTB to extract a specific number of bytes from a string:
    • Example: =LEFTB("Google Sheets", 5)
    • Result: "Googl"

Use Cases and Scenarios

  1. Multilingual Text Extraction: Extract a certain number of bytes from multilingual strings.
  2. Limited Character Display: Display a fixed number of bytes on a display with limited character capacity.
  3. Byte-Level Data Manipulation: Perform byte-level manipulations on data strings.

Related Articles