All in One Bundle

RIGHT Function In Google Sheets

Written by ExcelMojo Team ExcelMojo Editorial Team Editorial Team The ExcelMojo Editorial Team creates and improves practical Excel, VBA, Power BI, analytics, and AI spreadsheet resources for learners, analysts, teams, and business professionals. Excel VBA Power BI View Full Bio
Reviewed by Dheeraj Vaidya, CFA, FRM Dheeraj Vaidya, CFA, FRM Co-Founder & Course Director Dheeraj is the founder of ExcelMojo and leads the learning direction across Excel, analytics, financial modeling, valuation, and AI spreadsheet workflows. A former J.P. Morgan and CLSA equity... Financial Modeling Valuation Investment Banking View Full Bio
Updated Apr 27, 2026
Read Time 7 min

What Is RIGHT Function In Google Sheets?

RIGHT function in Google sheets, as the name suggests, gives the values in the data from the right side. It is a default function available in Excel and Google sheets.

Using Google sheets RIGHT function, we can extract characters from the data string. The function requires two arguments and can be used to extract not just text, but also numeric values and special characters. For example, consider the below table showing data and result in columns A and B, respectively.

RIGHT Function In Google Sheets - Intro

Now, we need to extract the last 3 characters using the RIGHT function. To begin with, select cell B2 and insert the RIGHT function formula with the arguments. So, the complete formula is =RIGHT(A2,3). Next, press Enter key. We will be able to see the result in cell B2, as shown in the below image.

RIGHT Function In Google Sheets - Intro - Output

In this article, let us learn how to use the RIGHT function to extract the characters.

Download FREE RIGHT Function In Google Sheets Template and Follow Along!

Use this RIGHT Function In Google Sheets Template to follow along with the examples in this article.

Download Excel Template

Key Takeaways

  • RIGHT function in Google sheets enables users extract the data from the right end of the string.
  • The syntax of RIGHT function is =RIGHT(string,[number_of_characters] where both the arguments are mandatory.
  • The string shows the cell value with the data and the number of characters shows the number of digits we want to extract from the data.
  • Remember, using RIGHT function in Google sheets, we can extract not just numeric data but also non-numeric values but also punctuations and special characters.

RIGHT() Google Sheets Formula

RIGHT Function In Google Sheets - Formula

The formula or syntax of RIGHT function is =RIGHT(string,[number_of_characters])

where

  • String shows the cell reference containing the data
  • Number of characters shows the number of digits we want to extract from the data

Both the arguments are mandatory to extract values from the right.

How To Use RIGHT Function In Google Sheets?

We can use the RIGHT function in two methods.

They are:

  • Selecting the formula with Insert tab
  • Manually type the formula

Method #1: Selecting The Formula With Insert Tab

Step 1: To begin with, we need to insert the data in the spreadsheet. Next, select the cell where we want to find the result.

Step 2: Next, click on the Insert tab and select Function. Then, select Text from the list of options and click on RIGHT function formula.

RIGHT Function In Google Sheets - Method 1 - Step 2

We can then choose the arguments to find the result.

Method #2: Manually type the formula

Step 1: To begin with, we need to insert the data in the spreadsheet. Next, select the cell where we want to find the result.

Step 2: Type =RIGHT or =R and select RIGHT in the pop-up option.

RIGHT Function In Google Sheets - Formula

Now, we can choose the arguments to find the result.

Examples

Let us learn how to use RIGHT function with detailed examples.

Example #1 – Extract Specific Characters From A String

For example, consider the below table showing data and result in columns A and B, respectively.

RIGHT Function In Google Sheets - Example 1

Now, we need to extract the last 1 special character using the RIGHT function.

The steps are:

Step 1: To begin with, we need to insert the data in the Google sheets. In this example, the data is available in the cell range A1:B5. Next, we need to select the cell where we want to find the result. So, in this example, we need to select cell B2.

Step 2: Next, insert the RIGHT function formula.

RIGHT Function In Google Sheets - Example 1 - Step 1

So, the complete formula is =RIGHT(A2,1).

RIGHT Function In Google Sheets - Example 1 - Step 1 - Formula

Step 3: Next, press Enter key.

We will be able to see the result in cell B2, as shown in the below image.

RIGHT Function In Google Sheets - Example 1 - Step 2

Now, we need to use the AutoFill option to find the result in the cell range B3:B5, as shown in the below image.

RIGHT Function In Google Sheets - Example 1 - Step 1 - AutoFill

Likewise, we can use RIGHT function to extract specific characters from a string from right side.

Example #2 – Extract The Last Two Digits Of A Year

For example, consider the below table showing data and result in columns A and B, respectively.

Example 2

Now, we need to extract the last two digits of a year using the RIGHT function.

The steps are:

Step 1: To begin with, we need to insert the data in the Google sheets. In this example, the data is available in the cell range A1:B5. Next, we need to select the cell where we want to find the result. So, in this example, we need to select cell B2.

Step 2: Next, insert the RIGHT function formula.

Example 2 - Step 2

So, the complete formula is =RIGHT(A2,1).

RIGHT Function In Google Sheets - Example 2 - Step 2 - Formula

Step 3: Next, press Enter key.

We will be able to see the result in cell B2, as shown in the below image.

RIGHT Function In Google Sheets - Example 2 - Step 3

Now, we need to use the AutoFill option to find the result in the cell range B3:B5, as shown in the below image.

RIGHT Function In Google Sheets - Example 2 - Step 3 - AutoFill

Likewise, we can use RIGHT function to extract the last two digits of a year from right side.

Example #3 – Extract The Last Few Digits Of ID Numbers

For example, consider the below table showing data and result in columns A and B, respectively.

Example 3

Now, we need to extract the last few digits of ID numbers using the RIGHT function.

The steps are:

Step 1: To begin with, we need to insert the data in the Google sheets. In this example, the data is available in the cell range A1:B5. Next, we need to select the cell where we want to find the result. So, in this example, we need to select cell B2.

Step 2: Next, insert the RIGHT function formula.

Example 3 - Step 2

So, the complete formula is =RIGHT(A2,1).

RIGHT Function In Google Sheets - Example 3 - Step 2 - Formula

Step 3: Next, press Enter key.

We will be able to see the result in cell B2, as shown in the below image.

RIGHT Function In Google Sheets - Example 3 - Step 3

Now, we need to use the AutoFill option to find the result in the cell range B3:B5, as shown in the below image.

RIGHT Function In Google Sheets - Example 3 - Step 3 - AutoFill

Likewise, we can use RIGHT function in Google sheets to extract the last few digits of ID numbers from right side.

Example #4 – Extract The File Extension From A Filename

For example, consider the below table showing data and result in columns A and B, respectively.

Example 4

Now, we need to extract the file extension from a filename using the RIGHT function in Google sheets.

The steps are:

Step 1: To begin with, we need to insert the data in the Google sheets. In this example, the data is available in the cell range A1:B5. Next, we need to select the cell where we want to find the result. So, in this example, we need to select cell B2.

Step 2: Next, insert the RIGHT function formula in Google sheets.

Example 4 - Step 2

So, the complete formula is =RIGHT(A2,1).

RIGHT Function In Google Sheets - Example 4 - Step 2 - Formula

Step 3: Next, press Enter key.

We will be able to see the result in cell B2, as shown in the below image.

RIGHT Function In Google Sheets - Example 4 - Step 3

Now, we need to use the AutoFill option to find the result in the cell range B3:B5, as shown in the below image.

RIGHT Function In Google Sheets - Example 4 - Step 3 - Autofill

Likewise, we can use RIGHT function in Google sheets to extract the file extension from a filename from right side.

Important Things To Note

  • RIGHT Google sheets function extracts the data from the right side of the string.
  • One of the reasons why RIGHT function wont work is because of the trailing spaces in the original data.
  • 0

Frequently Asked Questions

1. Explain how to use RIGHT function in Google sheets with detailed example.

For example, consider the below table showing data and result in columns A and B, respectively.

FAQ 1

Now, we need to extract the last 1 special character using the RIGHT function in Google sheets.

The steps are:

Step 1: To begin with, we need to insert the data in the Google sheets. In this example, the data is available in the cell range A1:B2. Next, we need to select the cell where we want to find the result. So, in this example, we need to select cell B2.

Step 2: Next, insert the RIGHT function formula in Google sheets.

So, the complete formula is =RIGHT(A2,1).

Step 3: Next, press Enter key.

We will be able to see the result in cell B2, as shown in the below image.

FAQ 1 - Step 3
Likewise, we can use RIGHT function in Google sheets to extract specific characters from a string from right side.

2. What is the difference between the RIGHT function and RIGHTB function in Google sheets?

The RIGHT function in Google sheets helps users extract the string from the right end of the data string. But Google sheets RIGHTB function finds the data from the end of a specified string.

3. Can we extract string from the left side of the data string?

RIGHT Google sheets function extracts the data from the right side. But to extract string from the left side of the data string, we need to use the LEFT Google sheets function formula.

Download FREE RIGHT Function In Google Sheets Template and Follow Along!

Use this RIGHT Function In Google Sheets Template to follow along with the examples in this article.

Download Excel Template