ExcelCSE.com

Menu
  • Excel 101
  • Excel Functions
  • Excel Formula
  • Contact Us
How to Use Excel > Excel Functions > Excel RIGHT Function

Excel RIGHT Function

How to Use the Excel RIGHT Function
Table of contents :
  • What is the Excel RIGHT Function?
  • RIGHT Syntax
  • How to Use RIGHT Function in Excel
  • RIGHT Example

Excel RIGHT Function

What is the Excel RIGHT Function?

The excel RIGHT function takes a number of characters in the text from the right.

RIGHT Syntax

RIGHT(text, [num_chars])

text, required, the text from which to extract the characters.

num_chars, optional, specifies the number of characters to extract.

  • If the num_char argument omitted, it is assumed to be 1.
  • If the num_chars argument larger than the text length, the RIGHT function returns the text itself.
  • If the num_char argument is a negative number, the RIGHT function returns a #VALUE! error

How to Use RIGHT Function in Excel

The following are examples of the RIGHT function usage and the results.

Excel RIGHT Function

RIGHT Function #1

=RIGHT(A2,0)

The RIGHT function returns nothing if the num_char argument is equal to 0.

RIGHT Function #2

=RIGHT(A3,3)

You get three letters taken from the rightmost position of cell A3.

RIGHT Function #3

=RIGHT(A4,1000)

If the num_char argument contains a number and larger than the text length, the result is the text itself.

RIGHT Function #4

=RIGHT(A5,-1)

You get a #VALUE! error if you put a negative number on the num_char argument.

RIGHT Function #5

=RIGHT(A6,2)

The RIGHT function able to extract from alphanumeric values, because alphanumeric is a number stored as text.

RIGHT Function #6

=RIGHT(A7,2)

The RIGHT function able to extract data from a number and the result is an alphanumeric value.

RIGHT Function #7

=RIGHT(A8,2)

If a number has been formatted in a certain format, the RIGHT function only extracts the numbers and ignores the format.

RIGHT Function #8

=RIGHT(A9,2)

Why did the RIGHT function return the same result for date 2/29/2020 and number 43890? Because Excel stores date values in integer numbers. 2/29/2020 is the cell format. The actual data is number 43890.

As mentioned before the RIGHT function only takes the numbers and ignores the format.

To be clearer about how Excel stores date and time data, read the following article:

  • How does Excel Stores Dates and Times?

RIGHT Function #9

=RIGHT(A10,2)

Why the RIGHT function returns the different result for cell A9 and cell A10?

Look carefully at the date in cell A9, by default right aligned if you see in the formula bar, no quotes in front of it. It means cell A9 contains a date value.

While date in cell A10 by default left aligned, if you see in the formula bar, there is a single quote in front of the “date”. It means cell A10 contains a text value. The RIGHT function will extract two characters from the right; the result is 20.

RIGHT Function #10

=RIGHT(A11,3)

The RIGHT function can extract a decimal number and consider the decimal separator as one character, not a formatted cell that is ignored.

RIGHT Function #11

=RIGHT(A12,3)

4:29:17 PM returns the same result as number 0.687. Why? Because Excel stores times value as decimal numbers.

RIGHT Example

Another article using or explain about RIGHT Function
  • Excel RIGHT Function
  • Add and Remove Leading Zeros in Excel
  • How to Combine and Separate First and Last Name in Excel

Another Text Function

Another article about Text Function
  • Excel TEXTJOIN Function
  • Excel CONCAT Function
  • Excel CONCATENATE Function
  • Excel REPLACE Function
  • Excel SUBSTITUTE Function
  • Excel REPT Function
  • Excel FIND Function
  • Excel SEARCH Function
  • Excel MID Function
  • Excel RIGHT Function
Usefull links
  • Microsoft RIGHT, RIGHTB function documentation
Share
Tweet
Google+
Email
Prev Article
Next Article

Related Articles

Excel DATE Function
What is the Excel DATE Function? The DATE function returns …

Excel DATE Function

Excel REPLACE Function
What is the Excel REPLACE Function? The excel REPLACE function …

Excel REPLACE Function

Excel SEARCH Function
What is the Excel SEARCH Function? The excel SEARCH function …

Excel SEARCH Function

Excel SECOND Function
What is the Excel SECOND Function? The Excel SECOND function …

Excel SECOND Function

Excel TEXTJOIN Function
What is the Excel TEXTJOIN Function? The excel TEXTJOIN function …

Excel TEXTJOIN Function

Tags:Excel LEFT RIGHT Functions Excel LEFT RIGHT MID How to Use RIGHT Function in Excel LEFT and RIGHT Excel LEFT and RIGHT Function in Excel LEFT RIGHT Formula Excel RIGHT Function Text Functions

Categories

  • Excel 101
  • Excel Formula
  • Excel Functions

Recent Posts

  • Get the Original Price from Percentage Increase/Decrease
  • How to Add/Subtract Percentage in Excel
  • How to Extract Day, Month and Year from Date in Excel
  • How to Add Seconds, Minutes and Hours to a Time in Excel
  • How to Add Days, Weeks, Months and Years to a Date in Excel
  • How to Calculate Time Difference in Excel
  • Calculate Number of Days, Weeks, Months and Years Between Two Dates in Excel
  • Flash Fill Excel
  • Paste Special Excel
  • Excel TEXTJOIN Function
  • Excel CONCAT Function
  • Excel CONCATENATE Function
  • Excel REPLACE Function
  • Excel SUBSTITUTE Function
  • Excel REPT Function
  • Excel FIND Function
  • Excel SEARCH Function
  • Excel MID Function
  • Excel RIGHT Function
  • Excel LEFT Function

ExcelCSE.com

The Ultimate Guide How to Use Excel Better
Copyright © 2024 ExcelCSE.com
Contact Us - Privacy Policy - Sitemap | Theme by MyThemeShop.com

Ad Blocker Detected

Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Refresh