Google Sheets: A Formula for LEFT Until Specific Character

Google Sheets is a powerful tool for managing data and creating complex spreadsheets. One of its most useful features is the ability to use formulas to manipulate data. One particular formula, LEFT, can be used to extract data from a cell up until a specific character. This makes it an incredibly useful and versatile tool for data analysis. In this article, we’ll explain how to use the LEFT formula in Google Sheets to extract data up until a specific character. We’ll also explain some of the advantages and disadvantages of using this formula, and provide examples of how it can be used. By the end, you’ll be well-equipped to make the most of the LEFT formula in Google Sheets.


You can use the LEFT function in Google Sheets to extract a certain number of characters from the left side of a string.

However, you can use the following formula to use the LEFT function to extract all characters from the left side of a string until a specific character is encountered: 

=LEFT(cell, FIND("specific_character", cell)-1)

For example, you can use the following formula to extract all of the characters on the left side of the string in cell A2 until an underscore is encountered:

=LEFT(A2, FIND("_", A2)-1)

The following example shows how to use this formula in practice.

Example: Using LEFT Until Specific Character in Google Sheets

Suppose we have the following list of basketball team names in Google Sheets:

We can type the following formula into cell B2 to extract all of the characters in the team name of cell A2 until an underscore is encountered:

=LEFT(A2, FIND("_", A2)-1)

We can then click and drag this formula down to each remaining cell in column B:

Google Sheets LEFT until specific character

Column B now displays all of the characters in each team name until an underscore is encountered in the name.

It’s worth noting that if no underscore is found in the Team name, the formula will return #VALUE! as a result.

To return a different value, simply use the IFERROR() function.

For example, we can use the following IFERROR() function to return “None Found” if an underscore is not found in a given team name:

=IFERROR(LEFT(A2,FIND("_", A2)-1),"None Found")

The following screenshot shows how to use this formula in practice:

Notice that cell B9 returns “None Found” since the name name had no underscore.

Also note that you can also return a different value by simply replacing “None Found” with some other value in the IFERROR() function.


x