Cookies help us deliver our services. By using our services, you agree to our use of cookies.
Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to convert date to number or text in Excel?

In this article, I will tell you how to convert date to number or text format in Excel.

Convert date to text in Excel

Convert date to number in Excel


Quickly convert nonstandard date to standard date formattiing(mm/dd/yyyy)

In some times, you may received a workhseets with multiple nonstandard dates, and to convert all of them to the standard date formatting as mm/dd/yyyy maybe troublesome for you. Here Kutools for Excel's Conver to Date can quickly convert these nonstandard dates to the standard date formatting with one click.  Click for free full featured trial in 60 days!
doc convert date
 
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 60 days.
 
 
 
 

arrow blue right bubble Convert date to text in Excel


As we know, if you directly format the date as text, the date will be shown as a number in the cell, but now you want to keep the date and format it as text, how can you solve it? Please do as below:

Select a cell next to your date data, and type this formula =TEXT(A1,"dd/mm/yyyy") into it, then press Enter key. If you need, you can drag the fill handle to apply this formula in a range.doc-convert-date-to-text-number-1

Tip:

1. You need to change the date format in the above formula =TEXT(A1,"dd/mm/yyyy") to meet your real date format.

2. If you need, you can copy the formula cells and then paste them as values only.


arrow blue right bubble Convert date to number in Excel

Case 1 Convert Date as Date format to number

This case is usually seen, you just need to select the cell or the range and right click to open the context menu, then click Format Cells, then in the Format Cells dialog, click Number under Number tab from the Category list, then specify the Decimal Places, and click OK. See screenshots:
doc-convert-date-to-text-number-2doc-convert-date-to-text-number-3
doc-convert-date-to-text-number-4

Case 2 Convert Date as Text format to number

If the cells filled with date are text format as below picture shown, how can you do?
doc-convert-date-to-text-number-5

Select a cell next to the date column and type this formula =DATEVALUE("08/24/2014"), and then press Enter key, the date will be converted to number.
doc-convert-date-to-text-number-6

Notes:

(1) You need to type the dates into the formula and convert them one by one. If the date is in a specific cell, let's say Cell A1, you can also apply the formula =DATEVALUE(A1), and then drag the Fill Handle to the range as you need.

(2) And this formula cannot work when the date format is dd/mm/yy.

Tip.If you want to convert dates to the other date formatting, you can try Kutools for Excel's Apply Date Formatting utility.


Quickly and easily convert date to other date formatting in Excel

The Apply Date Formatting of Kutools for Excel can quickly convert a standard date to the date formatting as you need as, such as only display month, day, or year, date format in yyyy-mm-dd, yyyy.mm.dd and so on. , click for full- featured  free trail in 60 days!
doc apply date format
 
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 60 days.
 
 
 
 

Relative Articles:



Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 300 New Features for Excel, Make Excel Much Easy and Powerful:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    jim · 1 months ago
    I am using a date 12 September 2018 I then convert it to 091218. I would like to use a concatenate function to add a 01 at the end, however when I do this the value keeps going to 43355. Is there any easy way to do this or is this even possible?? thanks in advance
    • To post as a guest, your comment is unpublished.
      Sunny · 16 days ago
      Sorry, Jim, I do not understand your problem, could you upload a screenshot to describe your question?
  • To post as a guest, your comment is unpublished.
    Kristina · 2 months ago
    Hello, I want to convert 1-Apr-20 to 20200401, how can i do it automatically? Thank you.
  • To post as a guest, your comment is unpublished.
    Sasi · 3 months ago
    Hi,

    I want to convert a date like 23/05/2018 to 23052018. Any formula to do that automatically?

    Thank you
    • To post as a guest, your comment is unpublished.
      Kiran · 1 months ago
      =SUBSTITUTE(A1,"/","")
    • To post as a guest, your comment is unpublished.
      Sunny · 2 months ago
      Just use Find and Replace function, in findwhat textbox, type /, leave blank in replacewith textbox, to remove all / from the dates.
  • To post as a guest, your comment is unpublished.
    Lothian · 9 months ago
    Hi,
    I'm trying to convert dates formated as yyyy-mm-dd (2018-01-06) and when entering this function, it displays yyyy-01-dd. I can't make sense of it, can anyone help?
    • To post as a guest, your comment is unpublished.
      Alfador · 3 months ago
      This happened to me as well. I kept getting yyyy-00-dd. It's because I'm in a different country and had to use the local format. =TEXT(A1;"vvvv-kk-pp") worked fine for me once I figured that out. If you right-click: Format Cells: Custom, you should find examples that use the local year, month, and day formats.
    • To post as a guest, your comment is unpublished.
      Sunny · 6 months ago
      You can try to format the date cells as custom, and type yyyy-mm-dd into the Type textbox in Format Cells dialog. If you want to know more detail, this is an article talk about three ways to convert dates to yyyy-mm-dd. https://www.extendoffice.com/documents/excel/3289-excel-convert-date-to-yyyy-mm-dd-format.html
  • To post as a guest, your comment is unpublished.
    Ravindra Kamble · 1 years ago
    want to convert 15/08/2015 into word (Fifteenth August Two Thousand Fifteen) format by using function in excel 2007