![]() |
Leading the way in Microsoft Office Development |
| Home | | | Excel | | | Word | | | PowerPoint | | | Consultancy | | | Feedback | | | Contact |
| Microsoft Excel > Functions > Text > RIGHT |
RIGHT(text [,num_chars]) |
| The last or right most character (or characters) in a text string. |
| text | The text string that contains the characters you want to extract. | |
| num_chars | The number of characters you want to extract. |
| REMARKS |
| If "num_chars" < 0, then #VALUE! is returned. | ||
| If "num_chars" > the length of the "text", then "text" is returned. | ||
| If "num_chars" is left blank, then 1 is used. | ||
| Any blank spaces are counted as individual characters. | ||
| If the text contains any leading or trailing spaces it may be worth using the TRIM() function to ensure you get the expected result. | ||
| There is also a RIGHTB() function which can be used with languages that use the double-byte character set. |
| EXAMPLES |
|
| Functions - R | Index - R | Text Manipulation | Office Online |
| Copyright © 2004-2007 Better Solutions Limited. All Rights Reserved. | Top |