As I have commented above to explain this more clearly, I am posting it here with some screenshots.

  1. If the cells are not formatted as text then, use INT()


• Formula used in cell B1

=INT(A1)

  1. Or, If the cells are not formatted as text or if formatted as text then, use TEXTBEFORE() or TEXTSPLIT()


• Formula used in cell B1

=TEXTBEFORE(A1,".")/1

Or, in cell B2

=@TEXTSPLIT(A1,".")+0

  1. Or, If the cells are not formatted as text or if formatted as text then then, use LEFT() with FIND()


• Formula used in cell B1

=LEFT(A1,FIND(".",A1)-1)*1

Now, here comes the question, why you shouldn't be using the RIGHT() to extract the date,

As in Excel’s Date and Time values are stored as floating-point numbers, with the whole number representing the number of days since 1st January 1900 and the fractional part representing the time of day as a fraction of 24 hours. This allows Excel to perform various calculations with ease, making it highly useful for business and scientific purposes.


Here is what you are getting using RIGHT() which should be avoided as INT() function dedicatedly extracts the date, bt there are other functions like I have shown which can be used. From the screenshot below you can see when you select the cell A2 and hit CTRL+SHIFT+~ or click CTRL+1 to open format cells and select as Category Number it turns into a floating point numbre, so it is clear they are not stored as text, if its in TEXT format, then you can use one of the formulas as shown above.


Also note: When using those TEXT functions like LEFT or TEXTSPLIT() or TEXTBEFORE() i have either added with 0 or multiplied with 1 or divided by 1 so as to convert them to a number as the return is a text, also you can add double unary -- before the formula, which does the same. Hope it explains well !


Edit : In addition to the Clause if formatted as text then:


• In cell B1

=TEXTBEFORE(A1," ")+0

Or, in cell B2

=@TEXTSPLIT(A2," ")/1

Or, in cell B3

=LEFT(A3,FIND(" ",A3)-1)*1

Notes: Solutions posted above assumes the cells or the range of cells do not have any non-printable characters, in that scenarios the formulas may differ slightly to parse those characters. Usually the non-printable offending characters codes are 160, 127 etc which can be removed using SUBSTITUTE() function. That said, then

=INT(SUBSTITUTE(A1,CHAR(160),)/1)

Or,

=TEXTBEFORE(SUBSTITUTE(A1,CHAR(160),),".")+0

Answer from Mayukh Bhattacharya on Stack Overflow
🌐
Microsoft Support
support.microsoft.com › en-us › excel › functions › right-function
RIGHT function | Microsoft Support
RIGHT returns the last character or characters in a text string, based on the number of characters you specify. RIGHTB returns the last character or characters in a text string, based on the number of bytes you specify.
🌐
Exceljet
exceljet.net › home › functions › right function
Excel RIGHT function | Exceljet
February 22, 2024 - To test if a cell ends with specific text, you can use a formula based on the RIGHT function. In the example shown, the formula in cell D5, copied down, is: =RIGHT(B5,3)="jwb" This formula returns TRUE when the value in column B ends with "jwb" and FALSE if not. Note that this formula is not … · To parse a text string that represents a time into a proper Excel time, you can use a formula based on the RIGHT, LEFT, MID, and TIME functions.
🌐
Corporate Finance Institute
corporatefinanceinstitute.com › home › resources › right function
RIGHT Function - Formula, Examples, How to Use RIGHT Function
July 11, 2019 - The function will return a specified number of characters from the end of a given text string. In doing financial analysis, the RIGHT function can be useful if we wish to extract characters from the right side of a text string.
Top answer
1 of 1
2

As I have commented above to explain this more clearly, I am posting it here with some screenshots.

  1. If the cells are not formatted as text then, use INT()


• Formula used in cell B1

=INT(A1)

  1. Or, If the cells are not formatted as text or if formatted as text then, use TEXTBEFORE() or TEXTSPLIT()


• Formula used in cell B1

=TEXTBEFORE(A1,".")/1

Or, in cell B2

=@TEXTSPLIT(A1,".")+0

  1. Or, If the cells are not formatted as text or if formatted as text then then, use LEFT() with FIND()


• Formula used in cell B1

=LEFT(A1,FIND(".",A1)-1)*1

Now, here comes the question, why you shouldn't be using the RIGHT() to extract the date,

As in Excel’s Date and Time values are stored as floating-point numbers, with the whole number representing the number of days since 1st January 1900 and the fractional part representing the time of day as a fraction of 24 hours. This allows Excel to perform various calculations with ease, making it highly useful for business and scientific purposes.


Here is what you are getting using RIGHT() which should be avoided as INT() function dedicatedly extracts the date, bt there are other functions like I have shown which can be used. From the screenshot below you can see when you select the cell A2 and hit CTRL+SHIFT+~ or click CTRL+1 to open format cells and select as Category Number it turns into a floating point numbre, so it is clear they are not stored as text, if its in TEXT format, then you can use one of the formulas as shown above.


Also note: When using those TEXT functions like LEFT or TEXTSPLIT() or TEXTBEFORE() i have either added with 0 or multiplied with 1 or divided by 1 so as to convert them to a number as the return is a text, also you can add double unary -- before the formula, which does the same. Hope it explains well !


Edit : In addition to the Clause if formatted as text then:


• In cell B1

=TEXTBEFORE(A1," ")+0

Or, in cell B2

=@TEXTSPLIT(A2," ")/1

Or, in cell B3

=LEFT(A3,FIND(" ",A3)-1)*1

Notes: Solutions posted above assumes the cells or the range of cells do not have any non-printable characters, in that scenarios the formulas may differ slightly to parse those characters. Usually the non-printable offending characters codes are 160, 127 etc which can be removed using SUBSTITUTE() function. That said, then

=INT(SUBSTITUTE(A1,CHAR(160),)/1)

Or,

=TEXTBEFORE(SUBSTITUTE(A1,CHAR(160),),".")+0

🌐
W3Schools
w3schools.com › excel › excel_right.php
Excel RIGHT Function
The RIGHT function is used to retrieve a chosen amount of characters, counting from the right side of an Excel cell. The chosen number has to be greater than 0 and is set to 1 by default.
🌐
ExcelDemy
exceldemy.com › home › excel functions › how to use right function in excel: 6 suitable examples
How to Use RIGHT Function in Excel: 6 Suitable Examples - ExcelDemy
May 20, 2024 - The RIGHT function returns #VALUE! error if “num_chars” is less than zero. ... Download this practice workbook to exercise while you are reading this article. ... Get FREE Advanced Excel Exercises with Solutions! ... Md. Abdullah Al Murad · Md. Abdullah Al Murad is a computer engineer who loves exploring Excel and VBA programming. Programming, to him, is a time-saving tool for efficiently managing data, files, and internet tasks.
🌐
Wall Street Mojo
wallstreetmojo.com › home › all blogs › excel resources › right function in excel
RIGHT Function in Excel - Formula, Example, How to Use?
December 20, 2024 - The uses of the RIGHT function are listed as follows: It removes the trailing slash in URLs. It extracts the domain name from the email address. It helps format text. It extracts text occurring after a specific character.
🌐
ExcelMojo
excelmojo.com › home › right function in excel
Right Function in Excel - Formula, Examples, How to Use?
April 27, 2026 - We can achieve excellent results using the RIGHT() with Excel functions such as SEARCH and LEN. The RIGHT function in Excel syntax is =RIGHT(text,[num_chars]), where text is the mandatory argument and num_chars is an optional argument.
Find elsewhere
🌐
Trymito
trymito.io › excel-to-python › functions › text › RIGHT
Excel to Python: RIGHT Function - A Complete Guide | Mito
Excel's RIGHT function is used to extract a specific number of characters from the right end of a text string. This can be especially useful in data preprocessing tasks like extracting the last name from a full name or extracting a unit label ...
🌐
GoSkills
goskills.com › Excel › Resources › Excel-RIGHT-function
How to Use the Excel RIGHT Function | GoSkills
When the piece you want is at the end of that string, the Excel RIGHT function might be just the thing you need. The RIGHT function in Excel extracts a specific number of characters from a text string, starting from the rightmost character.
🌐
Ablebits
ablebits.com › ablebits blog › excel › excel formulas › excel right function with formula examples
Excel RIGHT function with formula examples
March 20, 2023 - Today our focus is on the RIGHT function, which is designed to return a specified number of characters from the rightmost side of a string. Like other Excel Text functions, RIGHT is very simple and straightforward, nevertheless it has a few ...
🌐
EDUCBA
educba.com › home › excel › excel resources › text and string functions in excel › right excel function
RIGHT Function in Excel (Formula, Examples) | How to Use RIGHT?
May 30, 2023 - Right function in Excel, which is used to extract the cell values starting from the extreme right. We can also select the number of characters we must extract from the selected cell. This is quite helpful in extracting some portion of the text.
Address   Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
🌐
TechOnTheNet
techonthenet.com › excel › formulas › right.php
MS Excel: How to use the RIGHT Function (WS, VBA)
The Microsoft Excel RIGHT function extracts a substring from a string starting from the right-most character. The RIGHT function is a built-in function in Excel that is categorized as a String/Text Function. It can be used as a worksheet function (WS) and a VBA function (VBA) in Excel.
🌐
ExtendOffice
extendoffice.com › excel tips › excel functions › excel right function
Excel RIGHT Function
Learn how to use the Excel RIGHT function to extract a specified number of characters from the end of a text string, aiding in data parsing and text analysis.
🌐
GeeksforGeeks
geeksforgeeks.org › excel › excel-left-right-mid-len-and-find-functions
Excel LEFT, RIGHT, MID, LEN, and FIND Functions - GeeksforGeeks
We will enter =RIGHT(B2,5) in the B3 cell. Here we want Excel to extract the last 5 characters from the right side of our text in B2. ... The MID function returns the text from any middle part of our text string based on the starting position ...
Published   June 9, 2026
🌐
Excel Functions
excelfunctions.net › excel-right-function.html
Excel RIGHT Function
For example, 01/01/1980 is represented by the number 29221, so applying the Right function to a cell containing the date 01/01/1980 (and requesting that 4 characters be returned) would result in a returned value of "9221". Solution No. 1 · Use the Day, Month or Year functions to extract individual parts of a date. Solution No. 2 · If you are not using the dates in other calculations, which rely on them being stored as numbers, you can convert the cells containing dates to text, using Excel's Text To Columns tool.
🌐
Ajelix
ajelix.com › home › resources › formulas and functions › right function ms excel
How To Use RIGHT function in Excel - Explained With Examples- Ajelix
March 15, 2024 - The RIGHT function in Excel extracts a specified number of characters from the right end of a text string.
🌐
Excel Exercises
excelexercises.com › excel-functions › len-left-right-mid.html
Excel Exercises - Len, Left, Right, Mid Functions
The RIGHT function in Excel takes a certain number of the last, or rightmost characters from a string of text. RIGHT also works with a text argument or with a cell reference. The RIGHT function below takes a text argument.
🌐
ExcelFind
excelfind.com › excel-functions › excel-right-function
How to use the Excel RIGHT function - ExcelFind.com
February 12, 2024 - The Excel RIGHT function extracts a given number of characters from the right end of a text string.
🌐
MyExcelOnline
myexcelonline.com › home › the ultimate guide to the excel right function
The Ultimate Guide to the Excel RIGHT Function | MyExcelOnline
July 10, 2024 - With just a few clicks, users can extract meaningful insights, trim unnecessary details, or prepare data for further analysis. ... Excel RIGHT function extracts characters from the end of a text string based on the number specified.