Google Sheets RIGHT Function

This post will guide you how to use Google Sheets RIGHT function with syntax and examples.

Description


The Google Sheets RIGHT function returns a substring (a specified number of the characters) from a text string, starting from the rightmost character.

The RIGHT function can be used to extract a given number of characters from the rightmost of a text string in google sheets. It returns a substring from the beginning of a specified string.  It’s purpose is to extract text from the right of a text string.

The RIGHT function is a build-in function in Google Sheets and it is categorized as a Text Function.

Syntax


The syntax of the RIGHT function is as below:

=RIGHT(text,[num_chars])

Where the RIGHT function arguments are:

  • Text -This is a required argument. The text string that you want to extract from.
  • num_chars -This is an optional argument. It will specify the number of characters that you want to extract from Text string.

Note: 

  • The Num_chars value must be greater than or equal to zero. If Num_chars is greater that the length of text string, it will return all of text string. If Num_chars value is omitted, it is set to be 1 by default.
  • If Num_chars is equal to 0, it will cause RIGHT function to extract the empty string.
  • The RIGHT function takes two arguments, text and num_chars. The first argument, text is the string from which the right portion will be returned. And the second argument, num_chars is the number of characters to return from the right side of text.

Google Sheets RIGHT Function Examples


The below examples will show you how to use google sheets RIGHT Text function to extract the rightmost substring from a text string.

#1 To extract the rightmost 4 characters in the B1 cell, just using formula:

=RIGHT(B1,4) //it returns “ogle”

google sheets right function

#2 If you do not provide num_chars argument, it will use the default value as 1, using the following formula:

=RIGHT(“google”) //it returns “e”

google sheets right function

#3 If Num_chars value exceeds the text string length, the RIGHT function will return the entire string:

=RIGHT("google",200)  //it returns “google”

google sheets right function

#4 If Text value is a numeric value, and the RIGHT function will return a text value:

= RIGHT(1234,2) //it returns “34”

google sheets right function

#5 You can also use the RIGHT function in combination with the FIND function to create a complex formula to extract a specific text string. The FIND function will get the position of the given charcter in text string, and the RIGHT function returns all text characters to the right of that position in google sheets.

= RIGHT ("google",FIND("l","google")-1)  //it returns “ogle”

google sheets right function

Note:

You can use the LEFT function to extract substring from the left side of a text string in Google Sheets. And you can also use another function called RIGHT function to extract a substring starting from the right side of the text string. And if you wish to extract a substring starting from the middle position of text string, you can use the MID function.

Related Functions


  • Google Sheets FIND Function
    The Google Sheets FIND function returns the position of the first text string (sub string) within another text string.The syntax of the FIND function is as below:= FIND(find_text, within_text,[start_num]) …
  • Google Sheets MID Function
    The Google Sheets MID function returns a substring (a specified number of the characters) starting from the middle of a text string. The syntax of the MID function is as below:= MID (text, start_num, num_chars)…
Related Posts

Google Sheets DEGREES Function
google sheets degrees function1

This post will guide you how to use Google Sheets DEGREES function with syntax and examples. Description The Google Sheets DEGREES function converts radians into degrees. And it will return a numeric value. For examples, if you pass the PI() function into ...

Google Sheets COSH Function
google sheets cosh function1

This post will guide you how to use Google Sheets COSH function with syntax and examples. Description The Google Sheets COSH function returns the hyperbolic cosine of a given angle. The purpose of this function is used to get hyperbolic ...

Google Sheets COS Function
google sheets cos function1

This post will guide you how to use Google Sheets COS function with syntax and examples. Description The Google Sheets COS function returns the cosine of a given angle. If you want to supply an angle to COS function in ...

Google Sheets COMBINA Function
google sheets combina function1

This post will guide you how to use Google Sheets COMBINA function with syntax and examples. Description The Google Sheets COMBINA function returns the number of combinations for a given number of items and it includes repetitions. You can use ...

Google Sheets COMBIN Function
google sheets combin function1

This post will guide you how to use Google Sheets COMBIN function with syntax and examples. Description The Google Sheets COMBIN function returns the number of combinations for a given number of items. And you can use the COMBIN function ...

Google Sheets CEILING.PRECISE Function
google sheets ceiling.precise function1

This post will guide you how to use Google Sheets CEILING.PRECISE function with syntax and examples. Description The Google Sheets CEILING.PRECISE function returns a given number rounded up to the nearest multiple of a given number of significance or returns ...

Google Sheets CEILING Function
google sheets ceiling function1

This post will guide you how to use Google Sheets CEILING function with syntax and examples. Description The Google Sheets CEILING function returns a given number rounded up to the nearest multiple of a given number of significance. You can ...

Google Sheets ATANH Function
google sheets atanh function1

This post will guide you how to use Google Sheets ATANH function with syntax and examples. Description The Google Sheets ATANH function returns the inverse hyperbolic tangent of a given number. So you can use the ATANH function to calculate ...

Google Sheets ATAN Function
google sheets atan function3

This post will guide you how to use Google Sheets ATAN function with syntax and examples. Description The Google Sheets ATAN function returns the arctangent of a number. So this function can be used to calculates the arctangent of a ...

Google Sheets ASINH Function
google sheets ASINH function1

This post will guide you how to use Google Sheets ASINH function with syntax and examples. Description The Google Sheets ASINH function returns the inverse hyperbolic sine of a number. The ASINH function is a build-in function in Google Sheets ...

Sidebar