Saltar al contenido principal

¿Cómo convertir la fecha en formato de texto o cadena numérica en Excel?

En este tutorial, presentaré varios métodos para resolver diferentes casos sobre la conversión de fecha a formato de número o texto en Excel.
doc fecha al texto numérico 1


1. Convertir la fecha en texto

Esta sección proporciona los métodos para convertir la fecha en texto en Excel.

Para convertir la fecha en texto, solo necesita una fórmula.

Fórmula: = TEXTO (fecha, "formato_fecha")

Referencia: fecha: la celda con la fecha que desea convertir a texto
formato de fecha: el formato que desea mostrar después de convertir la fecha en texto

En los siguientes casos, le diré cómo utilizar esta fórmula.

1.1 Convertir fecha a texto en formato mm / dd / aaaa

Por ejemplo, convierta la fecha en la celda A3 a mm / dd / aaaa, use la fórmula
= TEXTO (A3, "mm / dd / aaaa")
prensa Participar clave
doc fecha al texto numérico 2

Si desea convertir la fecha en la celda A8 a dd / mm / aaaa, use esta fórmula
= TEXTO (A8, "dd / mm / aaaa")
prensa Participar clave
doc fecha al texto numérico 3

1.2 Convertir fecha en texto en formato mmddyyyy o ddmmyyyy

Si desea convertir la fecha en la celda A13 a texto, pero en formato mmddyyyy, escriba esta fórmula
= TEXTO (A13, "mmddyyyy")
prensa Participar clave
doc fecha al texto numérico 4

Si desea convertir la fecha en la celda A18 a texto en formato ddmmyyyy, escriba esta fórmula
= TEXTO (A18, "ddmmyyyy")
prensa Participar clave
doc fecha al texto numérico 5

1.3 Convertir fecha a texto en otros formatos

En realidad, sea cual sea el formato de texto al que desee convertir la fecha, simplemente escriba el formato que desee entre comillas en la fórmula.

Fecha (A3) 12/23/2019
Fórmula = TEXTO (A3, "mm-dd-aaaa") = TEXTO (A3, "mm / dd") = TEXTO (A3, "dd") = TEXTO (A3, "d / m / y")
Resultado 23-12-2019 23/12 23 23/12/19

¡Nuevo!
herramientas de fecha

16 nuevas funciones y características de fecha resuelven el 90% de las tareas sobre el procesamiento de fechas en Excel.

◆ Sumar o restar año / meses / días / semanas hasta la fecha, haga clic para obtener detalles.

◆ Sumar o restar segundos / minutos / horas hasta la fecha, contactos y la información.

◆ Cuente los fines de semana / días de la semana entre dos fechas. contactos y la información.

◆ Eliminar la hora de la fecha. haga clic para obtener detalles.

◆ Convierta el tiempo en segundos decimales / munites / horas. haga clic para obtener detalles.

◆ Convierta varios formatos de fecha al formato de fecha estándar de EE. UU. haga clic para obtener detalles.

Prueba gratuita de 30 días con todas las funciones, Reembolso de 30 días sin motivo.


2. Convertir la fecha en número

En esta sección, proporciono métodos para convertir la fecha en número en formato de 5 dígitos en formato mmddyyyy.

2.1 Convertir fecha en número en formato de 5 dígitos

Si desea convertir la fecha en un número en formato de 5 dígitos, simplemente haga lo siguiente:

1. Haga clic con el botón derecho en la celda que contiene la fecha que desea convertir en número y, en el menú contextual, seleccione Formato de celdas común.
doc fecha al texto numérico 6

2. en Formato de celdas diálogo, debajo de Número pestaña, seleccione General desde el panel de Categoría.
doc fecha al texto numérico 7

3. Hacer clic en OK. La fecha en la celda seleccionada se ha convertido en una cadena de números en formato mmddyyyy.
doc fecha al texto numérico 8

2.2 Convertir fecha en número en formato mmddyyyy o ddmmyyyy

Si desea convertir la fecha en una cadena numérica en formato mmddyyyy o ddmmyyyy, también puede aplicar la función Formato de celdas.

1. Haga clic con el botón derecho en la celda que contiene la fecha que desea convertir en número y, en el menú contextual, seleccione Formato de celdas común.

2. En el Formato de celdas diálogo, bajo Número seleccione Personalizado del desplegable Categoría panel, luego vaya a la sección derecha, ingrese mmddyyyy en el Tipo de Propiedad caja de texto.
doc fecha al texto numérico 9

3. Hacer clic en OK. La fecha en la celda seleccionada se ha convertido en una cadena numérica en formato mmddyyyy
doc fecha al texto numérico 10

Si desea convertir la fecha en una cadena de números en otro formato, puede tomar la siguiente lista como referencia.

Fecha 2/23/2019
Dar formato a celda como personalizado ddmmaaaa ddmmaa mmaaaa aaaammdd
Pantalla 23022019 230219 022019 20190223

3. Convierta la fecha en mes / día / año u otros formatos de fecha con clics.

Si desea convertir la fecha a mes, día, año u otros formatos de fecha rápidamente, el Aplicar formato de fecha utilidad de Kutools for Excel será una buena opción para usar.

Diga adiós a la mano del ratón y a la espondilosis cervical ahora

300 herramientas avanzadas de Kutools para resolver Excel 80% Tareas de Excel en segundos, sáquelo de los miles de clics del mouse.

Maneje fácilmente 1500 escenarios de trabajo, no necesita perder tiempo buscando soluciones, tenga mucho tiempo para disfrutar de su vida.

Mejore la productividad del 80% para más de 110000 personas altamente efectivas todos los días, por supuesto incluyéndolo a usted.

Ya no debe ser atormentado por fórmulas dolorosas y VBA, dele a su cerebro un descanso y un estado de ánimo de trabajo alegre.

Prueba gratuita de 30 días con todas las funciones, devolución de dinero de 30 días sin motivos.

Un cuerpo mejor crea una vida mejor.

Después instalación gratuita de Kutools para Excel, haz lo siguiente:

1. Seleccione las celdas que contienen las fechas que desea convertir a otros formatos de fecha.

2. Hacer clic en Kutools > Formato > Aplicar formato de fecha.
doc fecha al texto numérico 11

3. En el Aplicar formato de fecha cuadro de diálogo, seleccione el formato de fecha que desea utilizar en Formato de fecha panel, mientras tanto, el resultado convertido se previsualizará en la derecha Vista previa cristal.
doc fecha al texto numérico 12

4. Hacer clic en Ok, las fechas que seleccionó se han convertido al formato de fecha que seleccionó.
doc fecha al texto numérico 13

Convierta la fecha en formato de fecha de individualidad múltiple con clics

aplicar formato de fecha

Más consejos sobre la conversión de fechas


Descargar archivo de muestra

muestra


Herramientas de productividad recomendadas

Pestaña de Office: exploración, edición y administración de documentos con pestañas en Microsoft Office 2019-2003 y Office 365


pestaña de oficina

Kutools para Excel: combina más de 300 funciones y herramientas avanzadas para Microsoft Excel


pestaña kutools
pestaña kutoolsp
Comments (40)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi, I would very much appreciate your help with this formula.How can I switch month, date ,year “030624”in to a number 306042 and put the number in sequential order after the number 306042 like: 3060421
This comment was minimized by the moderator on the site
Hi, I would very much appreciate your help with this formula.How can I switch month, date ,year “030624”in to a number 306042 and put the number in sequential order after the number 306042 like: 3060421
This comment was minimized by the moderator on the site
Hello, how i convert 13.09.2023 to 13.9 my numbers change into dates
This comment was minimized by the moderator on the site
I want to know how many times I went to check the inspection. which I recorded by days.
This comment was minimized by the moderator on the site
Hello. I would very much appreciate your help with this formula. I am wishing to enter the customer's date of birth in cell I3 (custom formatting mm/dd/yy) and would like that date of birth to automatically populate in A3 cell as mmddyy along with adding the First letter from First name cell F3 and First letter from Last name cell G3 in order to have it auto-populate an ID# for our customers in our database.

A3 F3 G3 I3
ID# First Name Last Name Date of Birth
030199AS Adam Smith 03/01/1999

Thank you so much for any help. You have no idea how much I appreciate it. I have been wracking my brain all night to no avail. :(
Shena Bruno
This comment was minimized by the moderator on the site
Hi, Shena, Bruno, in A3, please use the formula =TEXT(I3, mmddyyyy")&LEFT(F3,1)&LEFT(G3,1).
In the formula, it can be explained as two parts:
TEXT(I3, mmddyyyy") will change the value in I3 to this format mmddyyyy
LEFT(F3,1)&LEFT(G3,1) will extract the first character from left side of the strings in cell F3 and G3.
Hope it is helpful.
This comment was minimized by the moderator on the site
I want to convert the day (Tuesday) which is showing up as 1/3/1900 when you click on it because I added a formula on the original data to provide me with Day values. Now I want to use a pivot table to show me the actual days. How do I convert the 1/3/1900 which shows up at Tuesday to just Tuesday? 
This comment was minimized by the moderator on the site
Hi, Cathey, do you want to convert the formula to an actual value? If so, you can use the Paste as Value Only feature in Excel to copy and paste the formulas as values only, or you can use Kutools for Excel's To Actual feature to convert formulas to values.
This comment was minimized by the moderator on the site
Hi, I was trying to copy and past the value but its still showing the date as opposed to the day. 
This comment was minimized by the moderator on the site
Hi, Cathey, do you choose the Paste as Value option in right-click context menu? If you have choosed, try to press Ctrl +1 keys to enable format cells feature and change the cell format to mm/dd/yyyy in Date section.
This comment was minimized by the moderator on the site
Hello. I have the date 26.01.2021 in the cell A1 and in another cell I have the formula: =RIGHT(A1,4) to take the year from that date, and it returns “4526” instead of “2021”. Do you know how to solve it? Thank you very much!
This comment was minimized by the moderator on the site
try to change the format on cell A1 to general or number and then enter the values that you want again to see if it helps. I think your problem is the format issue.
This comment was minimized by the moderator on the site
Hi, I want to convert month to number. For exp: 8 months (date format) ---> "8" as a number or value. I've change its format but I can't count it.Because I want to put it to math format, for exp: 8-2 = 6 (8 from the months). But the 8 doesn't work.Hope you get it. Thank you for helping!
This comment was minimized by the moderator on the site
Hi i have a date in "13/02/2020 11:42:09" format and i want in MM/DD/YYYY format
This comment was minimized by the moderator on the site
Hi, just select the cell then apply the Text to Columns, in the Text to Columns, choose Delimiter > Space > Date(in the Date format, choose DMY) > Finish.
This comment was minimized by the moderator on the site
There is another way, it returns exactly the numeric format that represents the date abbreviated by (/), it would be: '=Substitute(A1;"/";"")
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations