LEFT(string, [number_of_characters])One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
string:
The text string from which you want to extract the leftmost characters.
number_of_characters:
The number of characters you want to extract from the left side of the string. This parameter is optional; if omitted, it defaults to 1.
The LEFT function in Google Sheets is a simple yet effective tool used to extract a specified number of characters from the beginning of a text string. This function is particularly useful when you need to isolate a portion of text for analysis or reporting purposes.
In simpler terms, the LEFT function allows you to pull out the first few characters from a string, making it easier to manipulate and analyze text data.
Imagine you have a list of product codes in a Google Sheets document:
| ProductCode |
|---|
| ABC123 |
| DEF456 |
| GHI789 |
You want to extract the first three characters from each product code to categorize them.
To achieve this, you would use the LEFT function as follows:
=LEFT(A2, 3)In this formula:
A2 is the cell containing the ProductCode from the Product Codes Table.3 is the number of characters you want to extract from the left side of the string.When you apply the LEFT formula to the Product Codes Table, the output would look like this:
| ProductCode | Category |
|---|---|
| ABC123 | ABC |
| DEF456 | DEF |
| GHI789 | GHI |
In this case, the LEFT function extracts the first three characters from each product code, allowing you to categorize them easily.
The LEFT function is beneficial because it simplifies the process of text manipulation in Google Sheets. It allows you to quickly extract relevant portions of text without the need for complex formulas. This can be particularly useful in data cleaning, categorization, and reporting tasks.
The LEFT function is an essential tool for anyone working with text data in Google Sheets, providing a powerful way to enhance data analysis and reporting capabilities.
Happy spreadsheeting!
You have a list of product codes in Column A, and you want to extract the first three characters to identify the product category. Using the LEFT formula, you can quickly create a new column that displays just the category code for easier sorting and analysis.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.